This commit is contained in:
KANE LAZENI 2026-04-05 14:26:49 +00:00
parent a1e6a37b0b
commit 9b42b477db
2 changed files with 16 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class ControleurFicheadherent extends Controleur {
public function index() {
$idPolice = $_SESSION['idPolice_C'];
// $idPolice = $_SESSION['idPolice_C'];
$idPolice = $this->adherent->getIdPoliceAdherent($idAdherent);
$this->adherent->getNbassure($idPolice);
$idAdherent = $this->requete->getParametre("id");
@ -38,6 +39,8 @@ class ControleurFicheadherent extends Controleur {
$beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent);
$totalbeneficiaires = $this->beneficiaire->getTotalBeneficiairesId($idAdherent);
$idPolice = $this->adherent->getIdPoliceAdherent($idAdherent);
$garantieadherents = null;

View File

@ -1219,4 +1219,16 @@ class Adherent extends Modele {
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getIdPoliceAdherent($idAdherent)
{
$sql = 'SELECT idPolice from adherent where id=? limit 1;';
$resultat = $this->executerRequete($sql, array($idAdherent));
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
return $ligne['idPolice'];
}
}