diff --git a/bdd.sql b/bdd.sql
index 313a248..531c3aa 100644
--- a/bdd.sql
+++ b/bdd.sql
@@ -40,6 +40,7 @@ create table reservation
/* Insertions des donnees dans la BDD */
insert into utilisateur values ('lwadbled','Louis');
+insert into utilisateur values ('admin','glopglop');
/* insert into creneau values ('01/12/2021'); */
diff --git a/html/ajoutAppareil.php b/html/ajoutAppareil.php
new file mode 100644
index 0000000..dcc497f
--- /dev/null
+++ b/html/ajoutAppareil.php
@@ -0,0 +1,39 @@
+
+
+
+
+ Page principale
+
+
+
+
+ ";
+ }
+ include("connexion.php");
+ if(isset($_POST['banc']) && isset($_POST['ip']) && isset($_POST['name']) && isset($_POST['type'])){
+ $banc = $_POST['banc'];
+ $ip = $_POST['ip'];
+ $name = $_POST['name'];
+ $type = $_POST['type'];
+ echo "banc = ".$banc." // ip = ".$ip." // name = ".$name."// type = ".$type."
";
+ $requete = "INSERT INTO equipement VALUES($banc,'$ip','$name','$type')";
+ $exec_requete = mysqli_query($db,$requete);
+ echo "";
+ }else{
+ //echo "L'ajout n'a pas fonctionné";
+ echo "";
+ }
+ mysqli_close($db);
+ ?>
+
+
diff --git a/html/gestionAppareil.php b/html/gestionAppareil.php
new file mode 100644
index 0000000..3646b93
--- /dev/null
+++ b/html/gestionAppareil.php
@@ -0,0 +1,75 @@
+
+
+
+
+ Mes réservations
+
+
+
+
+
+ ";
+ }
+ include("connexion.php");
+ $requete = "SELECT * FROM equipement";
+ $exec_requete = mysqli_query($db,$requete);
+ $reponse = mysqli_fetch_all($exec_requete);
+ $requete = "SELECT * FROM banc";
+ $exec_requete = mysqli_query($db,$requete);
+ $banc = mysqli_fetch_all($exec_requete);
+ mysqli_close($db);
+ /* Affichage des appareils */
+ echo "";
+ echo "";
+ echo "";
+ echo "Banc | ";
+ echo "IP | ";
+ echo "Nom de l'appareil | ";
+ echo "Type d'appareil | ";
+ echo " | ";
+ echo "
";
+ echo "";
+ echo "";
+ for($i=0;$i";
+ echo "".$reponse[$i][0]." | ";
+ echo "".$reponse[$i][1]." | ";
+ echo "".$reponse[$i][2]." | ";
+ echo "".$reponse[$i][3]." | ";
+ echo "";
+ echo "";
+ }
+ /* Ajout appareil */
+ echo " | ";
+ echo "
";
+ echo "";
+ ?>
+
+
+
+
diff --git a/html/menu.php b/html/menu.php
index 7911f43..724007f 100644
--- a/html/menu.php
+++ b/html/menu.php
@@ -38,6 +38,13 @@
+ ";
+ echo "";
+ echo "";
+ }
+ ?>