Commit 8be7c44725bc1301618a75c31f8ffba4ae1c7aaa
1 parent
62c28743
Suppression RPI + capteur
Showing
1 changed file
with
14 additions
and
1 deletions
Show diff stats
site/removeSensor.php
1 | +<?php | ||
2 | +$capteurs = getSensors(); | ||
3 | +?> | ||
1 | <div class="row"> | 4 | <div class="row"> |
2 | <div class="col-6 col-md-6 offset-md-3 offset-3"> | 5 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
3 | <br/> | 6 | <br/> |
@@ -7,7 +10,17 @@ | @@ -7,7 +10,17 @@ | ||
7 | <tbody> | 10 | <tbody> |
8 | <tr> | 11 | <tr> |
9 | <td><label for="nom">Nom du capteur : </label></td> | 12 | <td><label for="nom">Nom du capteur : </label></td> |
10 | - <td><input type="text" id="nom" name="nom" /></td> | 13 | + <td> |
14 | + <select id="nom" name="nom" required> | ||
15 | + <option> </option> | ||
16 | + <?php | ||
17 | + foreach($capteurs as $capteur) | ||
18 | + { | ||
19 | + ?><option><?php echo $capteur['nom'];?></option><?php | ||
20 | + } | ||
21 | + ?> | ||
22 | + </select> | ||
23 | + </td> | ||
11 | </tr> | 24 | </tr> |
12 | </tbody> | 25 | </tbody> |
13 | </table> | 26 | </table> |