diff --git a/champ.php b/champ.php
index 71b4a0f..42c9dc4 100644
--- a/champ.php
+++ b/champ.php
@@ -1,14 +1,16 @@
-
',$titre,' :
+ echo ' ',$titre,' : ';
+ if ($help) {
+ echo '';
+ }
+ echo '
- Error: ',$error,'
- ';
+ Error: ',$error,'';
}
elseif ($balise == 'select') {
echo '',$titre,' :
@@ -22,18 +24,15 @@ elseif ($balise == 'select') {
-
- Error: ',$error,'';
+ ';
}
elseif ($balise == 'textarea') {
- echo '
-
',$titre,' :
+ echo '
',$titre,' :
-
Error: ',$error,'
-
';
+ Error: ',$error,'';
}
?>
diff --git a/index.php b/index.php
index defcf52..0920930 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
-
+
Tickets de panne
@@ -19,82 +19,113 @@
$type = 'date';
$balise = 'input';
$error = 'Veuillez saisir une date';
+ $help = false;
include("champ.php");
?>
-
+
+
+
+
+
+
+
Entrez le nom du bâtiment dans lequel se trouve le matériel
+
Exemple: bâtiment A
-
-
-
-
-
-
-
-
-
+
+
+
+
Entrez le nom de la salle dans lequel se trouve le matériel
+
Exemple: A 11 codage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/script.js b/script.js
index e0a9d71..0d83bb7 100644
--- a/script.js
+++ b/script.js
@@ -1,4 +1,3 @@
-const image = document.getElementById('int');
const button = document.getElementById('submit');
const page = document.getElementById('page');
@@ -7,33 +6,14 @@ 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