Blame view

site/values.php 1.05 KB
19ae2416   jnduwamu   MAJ du site
1
2
3
  <div class="row">
  	<div class="col-6 col-md-6 offset-md-3 offset-3">
  		<br/>
39579493   root   MAJ Site
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>
3722a6bb   grouille   MAJ
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
  		<form action="stop.php" method="POST">
  			<table class="table table-striped table-bordered">
  				<tbody>
  					<tr>
  						<td>Nom</td>
  						<td>Raspberry</td>
  						<td>Type</td>
  						<td>Valeur</td>
  						<td>Unité</td>
  						<td> </td>
  					</tr>
  					
  					<div id="sensors">
  						<?php 
  							$sensors = getSensors();
  						foreach($sensors as $sensor){
  							?>
  							<tr>
  								<td><?php echo $sensor['nom'];?></td>
  								<td><?php echo $sensor['raspberry'];?></td>
  								<td><?php echo $sensor['type'];?></td>
  								<td><?php echo $sensor['value'];?></td>
  								<td><?php echo $sensor['unite'];?></td>
  								<td>
  									<input type="submit" name="stop" value="<?php echo $sensor['nom'];?>">
  								</td>
  							</tr>
  							<?php
  						}
19ae2416   jnduwamu   MAJ du site
34
  						?>
3722a6bb   grouille   MAJ
35
36
37
38
  					</div>
  				</tbody>
  			</table>
  		</form>
19ae2416   jnduwamu   MAJ du site
39
40
  	</div>
  </div>