commit ad7dbe167a8e7e2263d0f0506eed5457246b6bde Author: barraux.a Date: Tue Oct 19 21:16:18 2021 +0200 le premier d'une longue série diff --git a/Bon d'intervention général.odt b/Bon d'intervention général.odt new file mode 100644 index 0000000..ea9ea91 Binary files /dev/null and b/Bon d'intervention général.odt differ diff --git a/champ.php b/champ.php new file mode 100644 index 0000000..71b4a0f --- /dev/null +++ b/champ.php @@ -0,0 +1,39 @@ + +

',$titre,' : point_int

+
+
+ check + exclamation +
+ Error: ',$error,' + '; +} +elseif ($balise == 'select') { + echo '

',$titre,' :

+
+ + check + exclamation +
+ Error: ',$error,''; +} +elseif ($balise == 'textarea') { + echo '
+

',$titre,' :

+
+
+ check + exclamation +
+ Error: ',$error,' +
'; +} +?> diff --git a/cible.php b/cible.php new file mode 100644 index 0000000..ec6a4c9 --- /dev/null +++ b/cible.php @@ -0,0 +1,20 @@ +prepare('INSERT INTO pannes(dates, details, lieu, salle, pos, materiel, marque, model, nserie, demandeur) VALUES(:dates, :details, :lieu, :salle, :pos, :materiel, :marque, :model, :nserie, :demandeur)'); + +$req->execute(array( + 'dates' => $_POST['dates'], + 'details' => $_POST['details'], + 'lieu' => $_POST['lieu'], + 'salle' => $_POST['salle'], + 'pos' => $_POST['pos'], + 'materiel' => $_POST['materiel'], + 'marque' => $_POST['marque'], + 'model' => $_POST['model'], + 'nserie' => $_POST['nserie'], + 'demandeur' => $_POST['demandeur'] + )); + +echo 'Votre ticket à bien été pris en compte'; +?> diff --git a/img/check.png b/img/check.png new file mode 100644 index 0000000..80504fc Binary files /dev/null and b/img/check.png differ diff --git a/img/excla.png b/img/excla.png new file mode 100644 index 0000000..75c81eb Binary files /dev/null and b/img/excla.png differ diff --git a/img/int.png b/img/int.png new file mode 100644 index 0000000..4461492 Binary files /dev/null and b/img/int.png differ diff --git a/img/logo_PC.png b/img/logo_PC.png new file mode 100644 index 0000000..f9c6783 Binary files /dev/null and b/img/logo_PC.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..defcf52 --- /dev/null +++ b/index.php @@ -0,0 +1,107 @@ + + + + + Tickets de panne + + + + + +

+ Formulaire de panne informatique +

+
+
+ +
+

hello

+
+
+ + + + + + + + + +
+
+
+ +
+
+ +
+ + diff --git a/script.js b/script.js new file mode 100644 index 0000000..e0a9d71 --- /dev/null +++ b/script.js @@ -0,0 +1,63 @@ +const image = document.getElementById('int'); +const button = document.getElementById('submit'); +const page = document.getElementById('page'); + +const check = document.getElementsByClassName('check'); +const excla = document.getElementsByClassName('excla'); +const entry = document.getElementsByClassName('entry'); +const help = document.getElementsByClassName('help'); + +page.addEventListener('click', function() { + console.log('hello'); + for (let i=0; i