app ajout ficheAvalider

This commit is contained in:
2024-01-11 11:41:51 +01:00
parent 8aafdf565b
commit af3771e786
3 changed files with 19 additions and 31 deletions

View File

@@ -1,38 +1,9 @@
<center>
<div class="col-3 mb-4">
<br>
<?php
if ($_SESSION['typeU'] != 'comptable') {
echo '<h3>Valider les fiches de frais</h3>';
}?>
<form action="index.php?direction=ficheAvalider" method="POST">
<?php
echo '<select class="form-select" name="selVisiteur" id="">';
foreach ($LesUtilisateurs as $key => $value) {
$id = $value['uId'];
$prenom = $value['uPrenom'];
$nom = $value['uNom'];
if ($id == $userId) {
echo '<option value="' . $id . '" selected>' . $nom . " " . $prenom . "</option>";
} else {
echo '<option value="' . $id . '">' . $nom . " " . $prenom . "</option>";
}
}
echo '</select>';
?>
<button type="submit" class="btn btn-dark m-2" >Selectionner</button>
<!-- Fin du formulaire -->
</div>
</center>
<div class="col-11 d-flex mx-auto">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Mois</th>
<th scope="col">Nom Fiche</th>
<th scope="col">Total</th>
<th scope="col">Statut</th>
<th scope="col">Détails</th>
@@ -44,6 +15,10 @@
<th scope="row">
<?= $gestionFiche->dateComplete($uneFiche['rMois']) ?>
</th>
<td>
<?= $uneFiche['uNom'] ?>
<?= $uneFiche['uPrenom'] ?>
</td>
<td>
<?= $uneFiche['rMontantValide'] ?> €
</td>