Blame view

site/capteurs.php 1.62 KB
19ae2416   jnduwamu   MAJ du site
1
2
3
4
5
6
7
  <?php 
  $sensors = getSensors();
  ?>
  
  <div class="row">
  	<div class="col-6 col-md-6 offset-md-3 offset-3">
  		<br/>
39579493   root   MAJ Site
8
  		<h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-bars"></i> Choix du capteur</h1>
705b4085   root   MAJ Site
9
  		<form action="reception.php" method="post" enctype="multipart/form-data">
19ae2416   jnduwamu   MAJ du site
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  			<table class="table table-striped table-bordered">
  				<tbody>
  					<tr>
  						<td>Sélection</td>
  						<td>Nom</td>
  						<td>Raspberry</td>
  						<td>Type</td>
  					</tr>
  					
  					<?php
  					$count = 0;
  					foreach($sensors as $sensor){
  						$count = $count +1;
  						?>
  						<tr>
7622b5db   root   Correction formul...
25
  							<td><div class="form-check"><input class="form-check-input position-static" type="checkbox" name="sensor[<?php echo $count;?>]" id="sensor1" value="<?php echo $sensor['raspberry'].":".$sensor['numero'].":".$sensor['type'];?>" aria-label="..."></div>
19ae2416   jnduwamu   MAJ du site
26
27
28
29
30
31
32
33
34
35
36
  							<td><?php echo $sensor['nom'];?></td>
  							<td><?php echo $sensor['raspberry'];?></td>
  							<td><?php echo $sensor['type'];?></td>
  						</tr>
  						<?php
  					}
  					?>
  					
  				</tbody>
  			</table>
  			
705b4085   root   MAJ Site
37
38
  			<h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-file-upload"></i> Uploader un fichier</h1>
  		      	<div class="panel panel-default">
19ae2416   jnduwamu   MAJ du site
39
40
  			
  				<div class="form-group">
705b4085   root   MAJ Site
41
  				    	<label for="fichier">Charger un fichier</label>
cd85989d   root   Correction formul...
42
  				    	<input type="file" name="fichier" class="form-control-file" id="fichier" required>
19ae2416   jnduwamu   MAJ du site
43
44
45
  				</div>
  			
  			</div>
705b4085   root   MAJ Site
46
47
  			<input type="submit" class="btn btn-dark btn-lg btn-block"style="margin-top:20px;" value="Envoyer"/>
  			<br/>
19ae2416   jnduwamu   MAJ du site
48
49
  		</form>
  	</div>
705b4085   root   MAJ Site
50
  </div>