<?php $raspberrys = getRaspberrys(); ?> <div class="row"> <div class="col-6 col-md-6 offset-md-3 offset-3"> <br/> <h1 style="margin-bottom:20px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="far fa-plus-square"></i> Suppression d'une Raspberry</h1> <form action="removeRpi.php" method="post"> <table class="table table-striped table-bordered"> <tbody> <tr> <td><label for="ip">Raspberry : </label></td> <td> <div class="form-group my-1 mr-sm-2"> <select class="custom-select my-1 mr-sm-2" id="ip" name="ip" required> <option> </option> <?php foreach($raspberrys as $raspberry) { ?> <option><?php echo $raspberry['ip'];?></option> <?php }?> </select> </div> </td> </tr> </tbody> </table> <input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="Supprimer la Raspberry"/> <br/> </form> </div> </div>