pagination gestion fiche

This commit is contained in:
2024-01-11 15:55:07 +01:00
parent af3771e786
commit c990aed3d3
5 changed files with 62 additions and 8 deletions

View File

@@ -19,5 +19,4 @@ if ($_SESSION["typeU"] == "comptable") {
$lesFiches = $gestionFiche->get_ficheAvalider();
include("vues/v_fichesAvalider.php");

View File

@@ -16,6 +16,17 @@ if ($_SESSION["typeU"] == "comptable") {
$userId = $_SESSION['uId'];
}
//Pagination
if(isset($_GET['page']) && !empty($_GET['page'])){
$currentPage = (int) strip_tags($_GET['page']);
}else{
$currentPage = 1;
}
$pages = ceil($gestionFiche->get_nbRemboursement($userId) / 12);
$lesFiches = $gestionFiche->get_ListesFiches($userId);