corec bug

This commit is contained in:
pierre renaudot 2024-01-12 11:16:29 +01:00
parent 2438e20db2
commit 6d57767987
2 changed files with 17 additions and 0 deletions

View File

@ -16,7 +16,15 @@ if ($_SESSION["typeU"] == "comptable") {
$userId = $_SESSION['uId']; $userId = $_SESSION['uId'];
} }
//Pagination
if(isset($_GET['page']) && !empty($_GET['page'])){
$currentPage = (int) strip_tags($_GET['page']);
}else{
$currentPage = 1;
}
$pages = ceil($gestionFiche->get_nbFicheAvalider() / $gestionFiche::$NB_LIGNES_FICHEAVALIDER);
$lesFiches = $gestionFiche->get_ficheAvalider($currentPage);
include("vues/v_fichesAvalider.php"); include("vues/v_fichesAvalider.php");

View File

@ -18,7 +18,16 @@ if ($typeU == "comptable") {
$userId = $_SESSION['uId']; $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) / $gestionFiche::$NB_LIGNES_PAGINATION);
$lesFiches = $gestionFiche->get_Page($currentPage, $userId);
include("vues/v_gestionFiches.php"); include("vues/v_gestionFiches.php");