diff --git a/html/ajoutBanc.php b/html/ajoutBanc.php
new file mode 100644
index 0000000..abb4596
--- /dev/null
+++ b/html/ajoutBanc.php
@@ -0,0 +1,36 @@
+
+
+
+
+ Page principale
+
+
+
+
+ ";
+ }
+ include("connexion.php");
+ if(isset($_GET['banc'])){
+ $banc = $_GET['banc'];
+ echo "banc = ".$banc."
";
+ $requete = "INSERT INTO banc VALUES($banc)";
+ $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
index 3646b93..83f1337 100644
--- a/html/gestionAppareil.php
+++ b/html/gestionAppareil.php
@@ -2,7 +2,7 @@
- Mes réservations
+ Gestion des appareils
+
+
+
+ Gestion des bancs
+
+
+
+
+
+ ";
+ }
+ include("connexion.php");
+ $requete = "SELECT * FROM banc";
+ $exec_requete = mysqli_query($db,$requete);
+ $banc = mysqli_fetch_all($exec_requete);
+ $requete = "SELECT count(*) FROM banc";
+ $exec_requete = mysqli_query($db,$requete);
+ $nb_banc = mysqli_fetch_all($exec_requete);
+ $nouv_banc = $nb_banc[0][0]+1;
+ /* Affichage des appareils */
+ echo "";
+ echo "";
+ echo "";
+ echo "Banc | ";
+ echo "Nombre d'appareil | ";
+ echo " | ";
+ echo "
";
+ echo "";
+ echo "";
+ foreach($banc as $value){
+ echo "";
+ echo "".$value[0]." | ";
+ $requete = "SELECT count(*) FROM equipement WHERE num=$value[0]";
+ $exec_requete = mysqli_query($db,$requete);
+ $reponse = mysqli_fetch_all($exec_requete);
+ echo "".$reponse[0][0]." | ";
+ echo "";
+ if($value[0]==$nouv_banc-1){
+ echo "";
+ }
+ echo " | ";
+ echo "
";
+ }
+ /* Ajout appareil */
+ echo "";
+ echo "
";
+ echo "";
+ mysqli_close($db);
+ ?>
+
+
+
+
diff --git a/html/menu.php b/html/menu.php
index 724007f..592af18 100644
--- a/html/menu.php
+++ b/html/menu.php
@@ -40,6 +40,9 @@
";
+ echo "";
+ echo "";
echo "";
diff --git a/html/supprBanc.php b/html/supprBanc.php
new file mode 100644
index 0000000..82920a9
--- /dev/null
+++ b/html/supprBanc.php
@@ -0,0 +1,13 @@
+";
+ mysqli_close($db);
+}
+?>
--
libgit2 0.21.2