Commit 3722a6bb352913a2dad7cb1a9358a481279cab59
1 parent
294b1c6a
MAJ
Showing
2 changed files
with
36 additions
and
27 deletions
Show diff stats
site/values.php
@@ -2,33 +2,39 @@ | @@ -2,33 +2,39 @@ | ||
2 | <div class="col-6 col-md-6 offset-md-3 offset-3"> | 2 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
3 | <br/> | 3 | <br/> |
4 | <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Valeurs des capteurs</h1> | 4 | <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Valeurs des capteurs</h1> |
5 | - <table class="table table-striped table-bordered"> | ||
6 | - <tbody> | ||
7 | - <tr> | ||
8 | - <td>Nom</td> | ||
9 | - <td>Raspberry</td> | ||
10 | - <td>Type</td> | ||
11 | - <td>Valeur</td> | ||
12 | - <td>Unité</td> | ||
13 | - </tr> | ||
14 | - | ||
15 | - <div id="sensors"> | ||
16 | - <?php | ||
17 | - $sensors = getSensors(); | ||
18 | - foreach($sensors as $sensor){ | 5 | + <form action="stop.php" method="POST"> |
6 | + <table class="table table-striped table-bordered"> | ||
7 | + <tbody> | ||
8 | + <tr> | ||
9 | + <td>Nom</td> | ||
10 | + <td>Raspberry</td> | ||
11 | + <td>Type</td> | ||
12 | + <td>Valeur</td> | ||
13 | + <td>Unité</td> | ||
14 | + <td> </td> | ||
15 | + </tr> | ||
16 | + | ||
17 | + <div id="sensors"> | ||
18 | + <?php | ||
19 | + $sensors = getSensors(); | ||
20 | + foreach($sensors as $sensor){ | ||
21 | + ?> | ||
22 | + <tr> | ||
23 | + <td><?php echo $sensor['nom'];?></td> | ||
24 | + <td><?php echo $sensor['raspberry'];?></td> | ||
25 | + <td><?php echo $sensor['type'];?></td> | ||
26 | + <td><?php echo $sensor['value'];?></td> | ||
27 | + <td><?php echo $sensor['unite'];?></td> | ||
28 | + <td> | ||
29 | + <input type="submit" name="stop" value="<?php echo $sensor['nom'];?>"> | ||
30 | + </td> | ||
31 | + </tr> | ||
32 | + <?php | ||
33 | + } | ||
19 | ?> | 34 | ?> |
20 | - <tr> | ||
21 | - <td><?php echo $sensor['nom'];?></td> | ||
22 | - <td><?php echo $sensor['raspberry'];?></td> | ||
23 | - <td><?php echo $sensor['type'];?></td> | ||
24 | - <td><?php echo $sensor['value'];?></td> | ||
25 | - <td><?php echo $sensor['unite'];?></td> | ||
26 | - </tr> | ||
27 | - <?php | ||
28 | - } | ||
29 | - ?> | ||
30 | - </div> | ||
31 | - </tbody> | ||
32 | - </table> | 35 | + </div> |
36 | + </tbody> | ||
37 | + </table> | ||
38 | + </form> | ||
33 | </div> | 39 | </div> |
34 | </div> | 40 | </div> |