Blame view

site/hist.php 2.76 KB
19ae2416   jnduwamu   MAJ du site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?php
  $today = date("Y-m-d");
  
  $min = date_min();
  $mins = explode(" ", $min['min']);
  $date_min = $mins[0];
  
  $max = date_max();
  $maxs = explode(" ", $max['max']);
  $date_max = $maxs[0];
  ?>
  <div class="row">
  	<div class="col-4 col-md-4 offset-md-4 offset-4">
  	<br/>
eaabaab4   root   Graphes ok
15
  		<h1 style="margin-bottom:20px; margin-top:20px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-search"></i> Recherche</h1>
19ae2416   jnduwamu   MAJ du site
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  		<form action="recherche.php" method="post">
  			<table class="table table-striped table-bordered">
  				<tbody>
  					<tr>
  						<td><label for="names">Nom du capteur : </label></td>
  						<td>
  							<div class="form-group my-1 mr-sm-2">
  							     <select class="custom-select my-1 mr-sm-2" id="names" name="nom">
  							     	     <option></option>
  							     	     <?php
  								     $names = get(nom);
  								     foreach($names as $name)
  								     { ?>
  								       <option><?php echo $name['nom'];?></option>
  								     <?php }?>
  							     </select>
  							</div>
  						</td>
  					</tr>
  
  					<tr>
  						<td><label for="types">Type de capteur : </label></td>
  						<td>
  							<div class="my-1 mr-sm-2">
  							     <select class="custom-select my-1 mr-sm-2" id="types" name="type">
  							     	     <option></option>
  							     	     <?php
  								     $types = get(type);
  								     foreach($types as $type)
  								     { ?>
  								       <option><?php echo $type['type'];?></option>
  								     <?php }?>
  							     </select>
  							</div>
  						</td>
  					</tr>
  
  					<tr>
  						<td><label for="raspberrys">Raspberry Pi : </label></td>
  						<td>
  							<div class="my-1 mr-sm-2">
  							     <select class="custom-select my-1 mr-sm-2" id="raspberrys" name="raspberry">
  							     	     <option></option>
  							     	     <?php
  								     $raspberrys = get(raspberry);
  								     foreach($raspberrys as $raspberry)
  								     { ?>
  								       <option><?php echo $raspberry['raspberry'];?></option>
  								     <?php }?>
  							     </select>
  							</div>
  						</td>
  					</tr>
  					
  					<tr>
  						<td><label for="start">Date de début :</label></td>
  						<td><input type="date" id="start" name="start-date" min="<?php echo $date_min; ?>" max="<?php echo $date_max; ?>" /></td>
  					</tr>
  					<tr>
  						<td><label for="end">Date de fin :</label></td>
  						<td><input type="date" id="end" name="end-date" min="<?php echo $date_min; ?>" max="<?php echo $date_max; ?>" /></td>
  					</tr>
  
  					<tr>
  						<td><label for"nombre">Nombre de résultats (entre 1 et 100) :</label></td>
  						<td><input type="text" id="nombre" name="nombre" min="1" max="100" value="10" /></td>
  					</tr>
19ae2416   jnduwamu   MAJ du site
83
84
  				</tbody>
  			</table>
fb84723e   Guillaume   MAJ site ajout Rpi
85
  			<input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="Lancer la recherche"/>
19ae2416   jnduwamu   MAJ du site
86
87
88
  		</form>
  	</div>
  </div>