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 | 4 | <div class="row"> |
2 | 5 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
3 | 6 | <br/> |
... | ... | @@ -7,7 +10,17 @@ |
7 | 10 | <tbody> |
8 | 11 | <tr> |
9 | 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 | 24 | </tr> |
12 | 25 | </tbody> |
13 | 26 | </table> | ... | ... |