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