From 67f2972ba161b199c9971db96a934028c4537717 Mon Sep 17 00:00:00 2001 From: "barraux.a" Date: Mon, 10 Jan 2022 16:45:06 +0100 Subject: [PATCH] fin --- README.md | 5 +++-- css/style.css | 5 ++--- css/style.css.map | 2 +- database/ticket_panne.db | Bin 16384 -> 16384 bytes prof/include/champ.php | 2 +- prof/index.php | 6 +++--- referant/cible/delete.php | 1 - referant/cible/export.php | 5 ++++- referant/js/edit.js | 2 +- sass/main.scss | 5 ++--- 10 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0c937b6..a61127c 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Site de tiquet de panne +Le mdp référant est: **3.1415926535** +Le mdp prof est: **1NSI** + C'est un site permettant de créer et gérer des tiquets de panne. Il est composé de **deux parties**: - Une partie *formulaire*, accessible à **tous**. - Une partie *gestion*, accessible seulement des référants. @@ -16,5 +19,3 @@ Cette partie est composée de 5 onglets: - liste - admin - export - - diff --git a/css/style.css b/css/style.css index cb8c367..702a903 100755 --- a/css/style.css +++ b/css/style.css @@ -95,8 +95,7 @@ form { position: relative; float: right; width: 20px; - bottom: 20px; - right: 20px; + top: 12px; } .container-field__field { background-color: inherit; @@ -134,7 +133,7 @@ form { } .hint__int { position: relative; - left: 35%; + left: 25%; } .hint__help { display: none; diff --git a/css/style.css.map b/css/style.css.map index 1385b68..5066464 100755 --- a/css/style.css.map +++ b/css/style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/main.scss"],"names":[],"mappings":"AAMA;EACI;EACA;;AAGJ;EACI;EACA;EACA,kBAbS;EAcT;EACA;;AACA;EACI;EACA;EACA;EACA;;AAEJ;EACI;;AAEJ;EACI;EACA;EACA;;AAEJ;EACI;EACA,OA9BE;EA+BF;EACA;;;AAOR;EACI;EACA;EACA;EACA,kBA9CQ;EA+CR;;AACA;EACI;EACA;EACA;;AACA;EACI;EACA;EACA;;AAGR;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI,kBAhEG;EAiEH;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;;;AAUhB;EACI;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;;;AAGJ;EACI;;AACA;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA,cAnIF;EAoIE;;AAEJ;EACI;EACA;EACA;;;AASZ;EACI;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EAII;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAzKK;EA0KL;;AAbA;EACI;;AAaJ;EACI;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAWZ;EACI;EACA;EACA;EACA;EACA,kBAzMQ;EA0MR;EACA;;AACA;EACI;;AAEJ;EACI,kBA/MK;EAiNL;EACA;EACA;EACA;EAEA;EACA;EACA,OAzNI;;AA0NJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA,OAnOA;EAoOA;;AACA;EACI;;AAEJ;EACI;EACA;;AAIZ;EACI,OA5OE;EA6OF;EACA;;AAEJ;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;;AACA;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAGR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAOhB;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;;;AAOhB;EACI;EACA,kBAtVS;EAuVT;EACA;EACA;;AACA;EACI,OA3VK;EA4VL,kBA1VE;;AA4VN;EACI;EACA;EACA;EACA;EACA,OApWI;;AAsWR;EACI,OApWE;EAqWF;EACA;EACA;EACA","file":"style.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../sass/main.scss"],"names":[],"mappings":"AAMA;EACI;EACA;;AAGJ;EACI;EACA;EACA,kBAbS;EAcT;EACA;;AACA;EACI;EACA;EACA;EACA;;AAEJ;EACI;;AAEJ;EACI;EACA;EACA;;AAEJ;EACI;EACA,OA9BE;EA+BF;EACA;;;AAOR;EACI;EACA;EACA;EACA,kBA9CQ;EA+CR;;AACA;EACI;EACA;EACA;;AACA;EACI;EACA;EACA;;AAGR;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI,kBAhEG;EAiEH;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;;;AAUhB;EACI;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;;;AAGJ;EACI;;AACA;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA,cAlIF;EAmIE;;AAEJ;EACI;EACA;EACA;;;AASZ;EACI;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EAII;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAxKK;EAyKL;;AAbA;EACI;;AAaJ;EACI;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAWZ;EACI;EACA;EACA;EACA;EACA,kBAxMQ;EAyMR;EACA;;AACA;EACI;;AAEJ;EACI,kBA9MK;EAgNL;EACA;EACA;EACA;EAEA;EACA;EACA,OAxNI;;AAyNJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA,OAlOA;EAmOA;;AACA;EACI;;AAEJ;EACI;EACA;;AAIZ;EACI,OA3OE;EA4OF;EACA;;AAEJ;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;;AACA;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAGR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAOhB;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;;;AAOhB;EACI;EACA,kBArVS;EAsVT;EACA;EACA;;AACA;EACI,OA1VK;EA2VL,kBAzVE;;AA2VN;EACI;EACA;EACA;EACA;EACA,OAnWI;;AAqWR;EACI,OAnWE;EAoWF;EACA;EACA;EACA","file":"style.css"} \ No newline at end of file diff --git a/database/ticket_panne.db b/database/ticket_panne.db index 7b84dd715ef7f3e0cdcbc941dc53c8387edc97ca..8841c48dc74cd17108e87f61967f38f332a3b2b7 100755 GIT binary patch delta 362 zcmZo@U~Fh$oFL5@Gf~EwF=k`JGJdujO#GkuZ)_GcIK%HD&crOMT9lfWT9lYqVytIq zVrXhIowyu1vGqRQH$!s3$R(i}zxMn<{@hPs9ZC8@lvq@hSXvR!0y0!l z*ji9j6JjXHL|r3eu%U@iGaVfb4b6=XugC?NTU3;pT9m4glc-RTUsRGB>gGMIYjSUy@IQmiJ?JqMq;KyL1M9!V^EM|XaxUR22(|0K|x7DQDI?W zP9p;&LtR4yT_fY-!W=i(l;S`acQ=>7Q0G8*7dN*+_u}-l;?y*A7NB)dP2%Dl$eJ9m zXbN ',$titre,' :

-
check exclamation +
',$error,''; ?> diff --git a/prof/index.php b/prof/index.php index 1a9182d..6ea9126 100755 --- a/prof/index.php +++ b/prof/index.php @@ -33,9 +33,9 @@ include '../sessions/session.php';

Détails :

-
check exclamation +
Error: Veuillez remplir ce champ
@@ -89,6 +89,8 @@ include '../sessions/session.php';

Matériel :

+ check + exclamation - check - exclamation test
diff --git a/referant/cible/delete.php b/referant/cible/delete.php index 90cc8a6..df862c1 100755 --- a/referant/cible/delete.php +++ b/referant/cible/delete.php @@ -4,5 +4,4 @@ $bdd = new SQLite3('../../database/ticket_panne.db', SQLITE3_OPEN_READWRITE); $request = $bdd->prepare('DELETE FROM pannes WHERE ID=:id'); $request->bindValue(':id', $_POST['id']); $request->execute(); -echo "Ticket supprimé veuillez actualiser la page"; ?> diff --git a/referant/cible/export.php b/referant/cible/export.php index 8febdd7..5b3e639 100755 --- a/referant/cible/export.php +++ b/referant/cible/export.php @@ -1,11 +1,14 @@ query('SELECT * FROM ' .$_POST['bdd']); -$title = array_keys($res->fetchArray(SQLITE3_ASSOC)); header('Content-Type: text/csv; charset=utf-8'); header('Content-Disposition: attachment; filename=' .$_POST['bdd'] .'.csv'); $output = fopen("php://output", "w"); + +$title = $res->fetchArray(SQLITE3_ASSOC); + +fputcsv($output, array_keys($title)); fputcsv($output, $title); while($row = $res->fetchArray(SQLITE3_ASSOC)) { diff --git a/referant/js/edit.js b/referant/js/edit.js index b8ed969..c1d41c3 100755 --- a/referant/js/edit.js +++ b/referant/js/edit.js @@ -81,7 +81,7 @@ function DelTicket(clas) { let xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { - alert(this.responseText); + location.reload(); } }; xhr.open('POST', 'cible/delete.php', true); diff --git a/sass/main.scss b/sass/main.scss index 10e1ecf..593ba45 100755 --- a/sass/main.scss +++ b/sass/main.scss @@ -110,8 +110,7 @@ form { position: relative; float: right; width: 20px; - bottom: 20px; - right: 20px; + top: 12px; } &__field { background-color: inherit; @@ -153,7 +152,7 @@ form { top: 0; &__int { position: relative; - left: 35%; + left: 25%; } &__help { &:hover {