Blame view

capteurs.php 1.58 KB
f3564fdb   grouille   Ajout des fichier...
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
45
46
47
48
  <?php 
  $sensors = getSensors();
  ?>
  
  <div class="row">
  	<div class="col-6 col-md-6 offset-md-3 offset-3">
  		<br/>
  		<h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-bars"></i> Choix du capteur</h1>
  		<form action="envoiFichiers.php" method="post" enctype="multipart/form-data">
  			<table class="table table-striped table-bordered">
  				<tbody>
  					<tr>
  						<td>Sélection</td>
  						<td>Nom</td>
  						<td>Raspberry</td>
  						<td>Type</td>
  					</tr>
  					
  					<?php 
  					foreach($sensors as $sensor){
  						?>
  						<tr>
  							<td><div class="form-check"><input class="form-check-input position-static" type="radio" name="sensor" id="sensor1" value="<?php echo $sensor['raspberry'];?>" aria-label="..."></div>
  							<td><?php echo $sensor['nom'];?></td>
  							<td><?php echo $sensor['raspberry'];?></td>
  							<td><?php echo $sensor['type'];?></td>
  						</tr>
  						<?php
  					}
  					?>
  					
  				</tbody>
  			</table>
  			
  			<h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-file-upload"></i> Uploader un fichier</h1>
              <div class="panel panel-default">
  			
  				<div class="form-group">
  				    <label for="exampleFormControlFile1">Charger un fichier</label>
  				    <input type="file" name="fichier" class="form-control-file" id="fichier">
  					<input type="hidden" name="MAX_FILE_SIZE" value="1048576" />
  				</div>
  			
  			</div>
  			<input type="submit" class="btn btn-dark btn-lg btn-block"style="margin-top:50px;" value="Envoyer"/>
  		</form>
  	</div>
  </div>