network.php
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
session_start();
include("head.php");
include("header.php");
require_once("accesBase.php");
$capteurs = getSensors();
$raspberrys = getRaspberrys();
?>
<div class="row">
<div class="col-4 col-md-4 offset-md-4 offset-4">
<br/>
<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>
<?php
foreach($raspberrys as $raspberry)
{
$ip = $raspberry['ip'];
?>
<table class="table table-striped table-bordered table-hover">
<thead class="thead-dark">
<th valign="middle" align="center" width="20%"><img src="img/pi.png" alt="Raspberry" style="width:auto; height:50px;"></th>
<th valign="middle" align="center" width="80%"><p style="font-size: 14px;"><?php echo $ip;?></p></th>
</thead>
<tbody>
<tr>
<td><label for="start">Date de début :</label></td>
<td>ok</td>
</tr>
<tr>
<td><label for="end">Date de fin :</label></td>
<td>ok</td>
</tr>
<tr>
<td><label for="nombre">Nombre de points :</label></td>
<td>ok</td>
</tr>
</tbody>
</table>
<?php
}
?>
</div>
</div>