a
This commit is contained in:
parent
a1e6a37b0b
commit
9b42b477db
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user