Merge branch 'pagination-feature'

This commit is contained in:
2024-01-12 11:10:35 +01:00
5 changed files with 135 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ if ($_SESSION["typeU"] == "comptable") {
$userId = $_SESSION['uId'];
}
$lesFiches = $gestionFiche->get_ficheAvalider();
include("vues/v_fichesAvalider.php");

View File

@@ -16,8 +16,16 @@ if ($_SESSION["typeU"] == "comptable") {
$userId = $_SESSION['uId'];
}
$lesFiches = $gestionFiche->get_ListesFiches($userId);
//Pagination
if(isset($_GET['page']) && !empty($_GET['page'])){
$currentPage = (int) strip_tags($_GET['page']);
}else{
$currentPage = 1;
}
$pages = ceil($gestionFiche->get_nbRemboursement($userId) / $gestionFiche::$NB_LIGNES_PAGINATION);
$lesFiches = $gestionFiche->get_Page($currentPage, $userId);
include("vues/v_gestionFiches.php");