removeSensor.php
923 Bytes
<?php
$capteurs = getSensors();
?>
<div class="row">
<div class="col-6 col-md-6 offset-md-3 offset-3">
<br/>
<h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="far fa-minus-square"></i> Suppression d'un capteur</h1>
<form action="remove.php" method="post">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td><label for="nom">Nom du capteur : </label></td>
<td>
<select id="nom" name="nom" required>
<option> </option>
<?php
foreach($capteurs as $capteur)
{
?><option><?php echo $capteur['nom'];?></option><?php
}
?>
</select>
</td>
</tr>
</tbody>
</table>
<input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="Supprimer le capteur"/>
<br/>
</form>
</div>
</div>