menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Compositiontarifactesadherentprestataire'); $this->tarif = new Tarifsactes(); $this->ad = new Adherent(); } public function index() { $codeTypeTarifActe = "TADHP"; $tarifs = $this->tarif->getTarifActeByTypeParticulier($codeTypeTarifActe); $codeTarifActe = isset($_SESSION['codeTarifActe_C'])? $_SESSION['codeTarifActe_C']: ""; $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']:""; $chemin = $this->menuvue->getChemin('Compositiontarifactesadherentprestataire'); $this->genererVue(array('tarifs' => $tarifs, 'codeTarifActe' => $codeTarifActe, 'idAdherent' => $idAdherent, 'numeroAdherent' => $numeroAdherent, 'adherent' => $adherent, 'nomPolice' => $nomPolice, 'nomCollege' => $nomCollege, 'codeLienParente' => $codeLienParente, 'chemin' => $chemin )); } }