PSR et commentaires

This commit is contained in:
pierre renaudot
2024-02-01 11:01:11 +01:00
parent 1a7e420d20
commit 9d9b7bf38c
15 changed files with 41 additions and 172 deletions

View File

@@ -7,9 +7,10 @@
} else { ?>
<form action="index.php?direction=gestionFiche" method="POST">
<?php
echo '<h3>Gérer les fiches de frais de :</h3>';
echo '<select class="form-select" name="selVisiteur" id="">';
<h3>Gérer les fiches de frais de :</h3>
<select class="form-select" name="selVisiteur" id="">
<?php
foreach ($LesUtilisateurs as $key => $value) {
$id = $value['uId'];
$prenom = $value['uPrenom'];
@@ -24,8 +25,7 @@
echo '</select>'; ?>
<button type="submit" class="btn btn-dark m-2">Selectionner</button>
<!-- Fin du formulaire -->
<?php }
?>
<?php } ?>
</div>
@@ -42,7 +42,7 @@
</tr>
</thead>
<tbody>
<?php foreach ($lesFiches as $uneFiche) { ?>
<?php foreach ($lesFiches as $uneFiche): ?>
<tr>
<th scope="row">
<?= $gestionFiche->dateComplete($uneFiche['rMois']) ?>
@@ -57,7 +57,7 @@
href="index.php?direction=nouvelleFiche&userId=<?= $userId ?>&dateListing=<?= $uneFiche['rMois'] ?>">voir</a>
</td>
</tr>
<?php } ?>
<?php endforeach ?>
</tbody>
</table>
</div>
@@ -66,7 +66,7 @@
PAGINATION:
-->
<?php if ($pages > 1) { ?>
<?php if ($pages > 1): ?>
<div class="col-4 d-flex mx-auto">
<nav>
<ul class="pagination">
@@ -92,6 +92,4 @@
</ul>
</nav>
</div>
<?php
};
?>
<?php endif ?>