Ajaxfichepolice

This commit is contained in:
KONE SOREL 2025-12-26 19:49:01 +00:00
parent ea775d6cdd
commit 412128c076
3 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class ControleurFichepolice extends Controleur {
public function index() {
$id = $_SESSION['idPoliceAjax'];
$_SESSION['idPolice_C'] = $id;
$this->police->getContextePoliceId($id);
$police = $this->police->getPoliceId($id);

View File

@ -503,6 +503,8 @@ function ajax_context_police_afficher(idPolice) {
* Charge la liste des quittances pour une police sur une période donnée.
*/
function afficher_quittances_police_periode() {
debugger;
// 1. Récupération des paramètres
const racine = $("#racineWeb").val() || "/";
const idPolice = $("#idPolice_C").val();

View File

@ -20,6 +20,7 @@
$badgeClass = "bg-warning text-dark"; // Autre (Instance, etc.)
}
?>
<input type="hidden" id="idPolice_C" value="<?= $_SESSION['idPolice_C']?>">
<div id="div_police" class="container-fluid mt-0">
<h1 class="text-primary mb-1"><i class="bi bi-file-earmark-text"></i> <?= _('Fiche Police') ?></h1>