avenant = new Police(); $this->college_temp = new College_temp(); } public function index() { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; $dateAvenant = $_SESSION['dateAvenant_C']; $emission = $this->avenant->getEmissionTemp($idPolice); $avenant = $this->avenant->getAvenantTemp($idPolice); $colleges = $this->college_temp->getCollegeTempPoliceAju($idPolice, $user); $Totauxcollege = $this->college_temp->getCollegeTempPoliceTotalAju($idPolice, $user) ; $this->genererVueAjax(array('colleges' => $colleges, 'emission' => $emission, 'avenant' => $avenant, 'Totauxcollege' => $Totauxcollege)); } public function majprime() { $idCollege = $this->requete->getParametreFormulaire("idCollege"); $prime = $this->requete->getParametreFormulaire("prime"); $codeLienParente = $this->requete->getParametreFormulaire("codeLienParente"); $user = $_SESSION['login']; $this->college_temp->majprimeajustee($idCollege, $prime, $codeLienParente, $user); } public function recapituler() { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; $this->college_temp->recapitulerprimesajustees($idPolice, $user); $this->executerAction("index"); } public function enregistrer() { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; $this->college_temp->enregisterprimesajustees($idPolice, $user); //$this->executerAction("index"); } }