formGraphe.php 1.59 KB
<div class="row">
	<div class="col-4 col-md-4 offset-md-4 offset-4">
	<br/>
		<h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Affichage un graphe</h1>
		<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">
							     	     <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="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 points (entre 4 et 100) :</label></td>
						<td><input type="text" id="nombre" name="nombre" min="4" max="100" value="10" /></td>
					</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>