f29c7852
Guillaume
Test Graphe
|
1
2
3
4
5
6
7
8
9
|
<?php
$min = date_min();
$mins = explode(" ", $min['min']);
$date_min = $mins[0];
$max = date_max();
$maxs = explode(" ", $max['max']);
$date_max = $maxs[0];
?>
|
6ddcfdb1
Guillaume
Test Graphe
|
10
|
<div class="row">
|
d1e19845
Guillaume
Test Graphe
|
11
|
<div class="col-6 col-md-6 offset-md-3 offset-3">
|
6ddcfdb1
Guillaume
Test Graphe
|
12
|
<br/>
|
39579493
root
MAJ Site
|
13
|
<h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Affichage d'un graphe</h1>
|
6ddcfdb1
Guillaume
Test Graphe
|
14
15
16
17
18
19
20
21
|
<form action="graphique.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">
|
6ddcfdb1
Guillaume
Test Graphe
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
$names = get(nom);
foreach($names as $name)
{ ?>
<option><?php echo $name['nom'];?></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>
|
0071f5d7
root
MAJ
|
44
45
|
<td><label for"nombre">Nombre de points :</label></td>
<td><input type="text" id="nombre" name="nombre" min="2" max="25" value="10" /></td>
|
6ddcfdb1
Guillaume
Test Graphe
|
46
47
48
49
50
51
52
|
</tr>
</tbody>
</table>
<input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="Afficher le graphe"/>
</form>
</div>
</div>
|