From ea3cd0938991a323f9b5bbd42a6717e133db82a6 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sun, 4 Jan 2026 17:42:34 +0000 Subject: [PATCH] a --- Controleur/ControleurAjaximporterlisteassure.php | 3 ++- Modele/Avenant.php | 11 +++++++++++ Vue/gabarit.php | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurAjaximporterlisteassure.php b/Controleur/ControleurAjaximporterlisteassure.php index e30a649..50cdaf7 100644 --- a/Controleur/ControleurAjaximporterlisteassure.php +++ b/Controleur/ControleurAjaximporterlisteassure.php @@ -26,7 +26,8 @@ class ControleurAjaximporterlisteassure extends Controleurrequete public function initimportermodele() { $idPolice = $_SESSION['idPolice_C']; - $avenants = $this->avenant->getAvenant($idPolice); + // $avenants = $this->avenant->getAvenant($idPolice); + $avenants = $this->avenant->getAvenantIncorporation($idPolice); $this->genererVueAjax(array('avenants' => $avenants)); } diff --git a/Modele/Avenant.php b/Modele/Avenant.php index d09bd73..53ab7bc 100644 --- a/Modele/Avenant.php +++ b/Modele/Avenant.php @@ -85,4 +85,15 @@ class Avenant extends Modele { $liste = $this->executerRequete($sql, array($idPolice)); return $liste->fetchAll(PDO::FETCH_ASSOC); } + + public function getAvenantIncorporation($idPolice) + { + $sql = 'call sp_avenants_police_client(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + } diff --git a/Vue/gabarit.php b/Vue/gabarit.php index c34099b..9662d19 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +