Commit dc1068d900efcce109d6213fd7611bf2aca9144a
1 parent
6db2c99e
Affichage du réseau
Showing
1 changed file
with
30 additions
and
21 deletions
Show diff stats
site/network.php
... | ... | @@ -4,32 +4,41 @@ include("head.php"); |
4 | 4 | include("header.php"); |
5 | 5 | require_once("accesBase.php"); |
6 | 6 | $capteurs = getSensors(); |
7 | +$raspberrys = getRaspberrys(); | |
7 | 8 | ?> |
8 | 9 | <div class="row"> |
9 | - <div class="col-6 col-md-6 offset-md-3 offset-3"> | |
10 | + <div class="col-4 col-md-4 offset-md-4 offset-4"> | |
10 | 11 | <br/> |
11 | 12 | <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-network-wired"></i> Le réseau</h1> |
12 | - <table class="table table-striped table-bordered table-hover"> | |
13 | - <thead class="thead-dark"> | |
14 | - <th valign="middle" align="center" width="25%"><img src="img/pi.png" alt="Raspberry" style="width:auto; height:50px;"></th> | |
15 | - <th valign="middle" align="center" width="75%"><p style="font-size: 14px;">172.26.145.114</p></th> | |
16 | - </thead> | |
17 | - <tbody> | |
18 | - <tr> | |
19 | - <td><label for="start">Date de début :</label></td> | |
20 | - <td>ok</td> | |
21 | - </tr> | |
13 | + <?php | |
14 | + foreach($raspberrys as $raspberry) | |
15 | + { | |
16 | + $ip = $raspberry['ip']; | |
17 | + ?> | |
18 | + <table class="table table-striped table-bordered table-hover"> | |
19 | + <thead class="thead-dark"> | |
20 | + <th valign="middle" align="center" width="15%"><img src="img/pi.png" alt="Raspberry" style="width:auto; height:50px;"></th> | |
21 | + <th valign="middle" align="center" width="85%"><p style="font-size: 14px;"><?php echo $ip;?></p></th> | |
22 | + </thead> | |
23 | + <tbody> | |
24 | + <tr> | |
25 | + <td><label for="start">Date de début :</label></td> | |
26 | + <td>ok</td> | |
27 | + </tr> | |
22 | 28 | |
23 | - <tr> | |
24 | - <td><label for="end">Date de fin :</label></td> | |
25 | - <td>ok</td> | |
26 | - </tr> | |
29 | + <tr> | |
30 | + <td><label for="end">Date de fin :</label></td> | |
31 | + <td>ok</td> | |
32 | + </tr> | |
27 | 33 | |
28 | - <tr> | |
29 | - <td><label for"nombre">Nombre de points :</label></td> | |
30 | - <td>ok</td> | |
31 | - </tr> | |
32 | - </tbody> | |
33 | - </table> | |
34 | + <tr> | |
35 | + <td><label for"nombre">Nombre de points :</label></td> | |
36 | + <td>ok</td> | |
37 | + </tr> | |
38 | + </tbody> | |
39 | + </table> | |
40 | + <?php | |
41 | + } | |
42 | + ?> | |
34 | 43 | </div> |
35 | 44 | </div> | ... | ... |