menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Pagetmadherentprestataire'); $this->ad = new Adherent(); } public function index() { $idAdherent = isset($_SESSION['idAdherent_C'])? $_SESSION['idAdherent_C']:"0"; if($idAdherent > "0") { $adh = $this->ad->trouverAdherentId($idAdherent); $_SESSION['numeroAdherent_C'] = $adh['numero']; $_SESSION['adherent_C'] = $adh['adherent']; $_SESSION['nomPolice_C'] = $adh['nomPolice']; $_SESSION['nomCollege_C'] = $adh['nomCollege']; $_SESSION['codeLienParente_C'] = $adh['codeLienParente']; } $numeroAdherent = (isset($_SESSION['numeroAdherent_C']) && $idAdherent > "0")? $_SESSION['numeroAdherent_C']:""; $adherent = (isset($_SESSION['adherent_C']) && $idAdherent > "0")? $_SESSION['adherent_C']:""; $nomPolice = (isset($_SESSION['nomPolice_C']) && $idAdherent > "0")? $_SESSION['nomPolice_C']:""; $nomCollege = (isset($_SESSION['nomCollege_C']) && $idAdherent > "0")? $_SESSION['nomCollege_C']:""; $codeLienParente = (isset($_SESSION['codeLienParente_C']) && $idAdherent > "0")? $_SESSION['codeLienParente_C']:""; $tmadherent = $this->ad->getTmadherentprestataire(); $chemin = $this->menuvue->getChemin('Pagetmadherentprestataire'); $this->genererVue(array( 'idAdherent' => $idAdherent, 'numeroAdherent' => $numeroAdherent, 'adherent' => $adherent, 'nomPolice' => $nomPolice, 'nomCollege' => $nomCollege, 'codeLienParente' => $codeLienParente, 'tmadherent' => $tmadherent ,'chemin' => $chemin )); } }