Commit b284256b77a4f9fdd168dceb516901445adb3f3d

Authored by grouille
1 parent 8d03531f

MAJ

Showing 1 changed file with 30 additions and 30 deletions   Show diff stats
site/values.php
... ... @@ -2,38 +2,38 @@
2 2 <div class="col-6 col-md-6 offset-md-3 offset-3">
3 3 <br/>
4 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   - <form action="stop.php" method="POST">
6   - <table class="table table-striped table-bordered">
7   - <tbody>
  5 + <table class="table table-striped table-bordered">
  6 + <tbody>
  7 + <th>
  8 + <td>Nom</td>
  9 + <td>Raspberry</td>
  10 + <td>Type</td>
  11 + <td>Valeur</td>
  12 + <td>Unité</td>
  13 + <td>Arrêt</td>
  14 + </th>
  15 +
  16 + <?php
  17 + $sensors = getSensors();
  18 + foreach($sensors as $sensor){
  19 + ?>
8 20 <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   - <?php
18   - $sensors = getSensors();
19   - foreach($sensors as $sensor){
20   - ?>
21   - <tr>
22   - <td><?php echo $sensor['nom'];?></td>
23   - <td><?php echo $sensor['raspberry'];?></td>
24   - <td><?php echo $sensor['type'];?></td>
25   - <td><?php echo $sensor['value'];?></td>
26   - <td><?php echo $sensor['unite'];?></td>
27   - <td>
  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 + <td>
  27 + <form action="stop.php" method="POST">
28 28 <input type="hidden" name="nom" value="<?php echo $sensor['nom'];?>">
29 29 <input type="submit" name="stop" value="Arrêter">
30   - </td>
31   - </tr>
32   - <?php
33   - }
34   - ?>
35   - </tbody>
36   - </table>
37   - </form>
  30 + </form>
  31 + </td>
  32 + </tr>
  33 + <?php
  34 + }
  35 + ?>
  36 + </tbody>
  37 + </table>
38 38 </div>
39 39 </div>
... ...