menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Ajustementprime"); $this->avenant = new Police(); $this->college_temp = new College_temp(); } public function index() { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; $dateEcheance = $_SESSION['dateEcheance_C']; $dateAvenant = $_SESSION['dateAvenant_C']; $this->avenant->initajustementprime($idPolice); $emission = $this->avenant->getEmissionTemp($idPolice); $avenant = $this->avenant->getAvenantTemp($idPolice); $sppolice = $this->avenant->getRapportSpPolice($idPolice, $dateEcheance); $colleges = $this->college_temp->getCollegeTempPoliceAju($idPolice, $user); $Totauxcollege = $this->college_temp->getCollegeTempPoliceTotalAju($idPolice, $user) ; $chemin = $this->menuvue->getChemin('Ficherenouvellement'); $this->genererVue(array('colleges' => $colleges, 'emission' => $emission, 'avenant' => $avenant, 'sppolice' => $sppolice, 'chemin' => $chemin, 'Totauxcollege' => $Totauxcollege)); } public function enregistrerrenouvellement() { $this->avenant->enregistrerrenouvellement(); $this->rediriger("Fichepolice"); } }