Skip to content

Commit

Permalink
🔧 Ajout du pdo de façon optimiser
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
Lurius-Kitsune committed Oct 29, 2023
1 parent a6fe011 commit 0a2f383
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/Vues/v_validerFiches.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,26 @@
* @link http://www.reseaucerta.org Contexte « Laboratoire GSB »
*/

use Modeles\PdoGsb;

/**
* @var PdoGsb $pdo
*/

?>

<div>
<form action="" method="get" class="form-inline">
<div>
<div class="form-group">
<label for="visiteurInput">Choisir le visiteur : </label>
<select class="form-control" id="visiteurInput">
<option>Large select</option>
<?php
$utilisateurs = $pdo->getNomsVisiteurs();
for ($i = 0; $i < count($utilisateurs); $i++) {
echo "<option value=\"" . $i + 1 . "\">" . $utilisateurs[$i]["prenom"] . " " . $utilisateurs[$i]["nom"] . "</option>;";
}
?>
</select>
</div>
<div class="form-group">
Expand Down Expand Up @@ -90,7 +102,7 @@
<form class="form-inline">
<div class="form-group">
<label for="inputNbJustificatif" class="control-label">Forfait Etape :</label>
<input type="number" name="nbJustificatif" class="form-control" id="inputNbJustificatif" style="width: 20% !important;">
<input type="number" name="nbJustificatif" class="form-control" id="inputNbJustificatif" style="width: 20% !important;">
</div>
</form>
<br>
Expand Down

0 comments on commit 0a2f383

Please sign in to comment.