From 9a48a158bc0aec02d74bd184f9b1b85c52ae6441 Mon Sep 17 00:00:00 2001 From: "barraux.a" Date: Sun, 31 Oct 2021 12:11:08 +0100 Subject: [PATCH] V1 fonctionnel --- login/cible.php | 0 login/index.php | 0 referant/admin.php | 0 referant/cible/admin.php | 0 referant/cible/edit.php | 0 referant/cible/index.php | 0 referant/cible/search.php | 0 referant/export.php | 18 ++++++++++++++++++ referant/export/ticket.csv | 5 +++++ referant/include/line.php | 0 referant/include/menu.php | 0 referant/include/nav.php | 0 referant/js/admin.js | 0 referant/js/index.js | 0 referant/js/search.js | 0 referant/liste.php | 0 session.php | 0 session_restraintes.php | 0 stylepage.css | 0 ticket.sql | 0 20 files changed, 23 insertions(+) mode change 100644 => 100755 login/cible.php mode change 100644 => 100755 login/index.php mode change 100644 => 100755 referant/admin.php mode change 100644 => 100755 referant/cible/admin.php mode change 100644 => 100755 referant/cible/edit.php mode change 100644 => 100755 referant/cible/index.php mode change 100644 => 100755 referant/cible/search.php create mode 100755 referant/export.php create mode 100755 referant/export/ticket.csv mode change 100644 => 100755 referant/include/line.php mode change 100644 => 100755 referant/include/menu.php mode change 100644 => 100755 referant/include/nav.php mode change 100644 => 100755 referant/js/admin.js mode change 100644 => 100755 referant/js/index.js mode change 100644 => 100755 referant/js/search.js mode change 100644 => 100755 referant/liste.php mode change 100644 => 100755 session.php mode change 100644 => 100755 session_restraintes.php mode change 100644 => 100755 stylepage.css mode change 100644 => 100755 ticket.sql diff --git a/login/cible.php b/login/cible.php old mode 100644 new mode 100755 diff --git a/login/index.php b/login/index.php old mode 100644 new mode 100755 diff --git a/referant/admin.php b/referant/admin.php old mode 100644 new mode 100755 diff --git a/referant/cible/admin.php b/referant/cible/admin.php old mode 100644 new mode 100755 diff --git a/referant/cible/edit.php b/referant/cible/edit.php old mode 100644 new mode 100755 diff --git a/referant/cible/index.php b/referant/cible/index.php old mode 100644 new mode 100755 diff --git a/referant/cible/search.php b/referant/cible/search.php old mode 100644 new mode 100755 diff --git a/referant/export.php b/referant/export.php new file mode 100755 index 0000000..dd25e12 --- /dev/null +++ b/referant/export.php @@ -0,0 +1,18 @@ +query("SELECT DISTINCT * FROM `pannes`"); +$stream = fopen('export/ticket.csv', 'w'); + +while($line = $reponse->fetch()) { + print_r($line); + echo '
'; + fputcsv( + $stream, // file + $line, // arr + ); +} +$reponse->closeCursor(); +fclose($stream); +?> \ No newline at end of file diff --git a/referant/export/ticket.csv b/referant/export/ticket.csv new file mode 100755 index 0000000..1f8dcc0 --- /dev/null +++ b/referant/export/ticket.csv @@ -0,0 +1,5 @@ +1,1,2021-10-22,2021-10-22,"Bonjour de Bretagne","Bonjour de Bretagne","Bâtiment A","Bâtiment A",42,42,"au fond a gauche","au fond a gauche",pc,pc,alienware,alienware,"lattitude E6410","lattitude E6410",sefv-45-gd1,sefv-45-gd1,barraux,barraux,0,0 +4,4,2021-10-23,2021-10-23,sq@,sq@,FE,FE,ds,ds,QDGFDQ,QDGFDQ,UC,UC,QGDF,QGDF,FQG,FQG,QGZet,QGZet,qgqre,qgqre,0,0 +5,5,2021-10-23,2021-10-23,sq@,sq@,FE,FE,ds,ds,QDGFDQ,QDGFDQ,UC,UC,QGDF,QGDF,FQG,FQG,sgf,sgf,sef,sef,0,0 +6,6,2021-10-25,2021-10-25,"manque la dernière carte graphique","manque la dernière carte graphique",Locquirec,Locquirec,"Ma chambre","Ma chambre","Sur le lit","Sur le lit",UC,UC,Dell,Dell,"LATITTUDE E6410","LATITTUDE E6410","chai pas","chai pas",BARRAUX,BARRAUX,0,0 +7,7,2021-10-28,2021-10-28,"pas d'inspi","pas d'inspi",Locquirec,Locquirec,"chambre 6","chambre 6","pas bougé","pas bougé",UC,UC,Dell,Dell,flemme,flemme,"je sais pas","je sais pas","Le Cocotier des mers","Le Cocotier des mers",0,0 diff --git a/referant/include/line.php b/referant/include/line.php old mode 100644 new mode 100755 diff --git a/referant/include/menu.php b/referant/include/menu.php old mode 100644 new mode 100755 diff --git a/referant/include/nav.php b/referant/include/nav.php old mode 100644 new mode 100755 diff --git a/referant/js/admin.js b/referant/js/admin.js old mode 100644 new mode 100755 diff --git a/referant/js/index.js b/referant/js/index.js old mode 100644 new mode 100755 diff --git a/referant/js/search.js b/referant/js/search.js old mode 100644 new mode 100755 diff --git a/referant/liste.php b/referant/liste.php old mode 100644 new mode 100755 diff --git a/session.php b/session.php old mode 100644 new mode 100755 diff --git a/session_restraintes.php b/session_restraintes.php old mode 100644 new mode 100755 diff --git a/stylepage.css b/stylepage.css old mode 100644 new mode 100755 diff --git a/ticket.sql b/ticket.sql old mode 100644 new mode 100755