adherent_temp = new Adherent_temp(); } public function index() { $user = $_SESSION['login']; $idCollege = $this->requete->getParametreFormulaire("idCollege"); $prorata = $this->requete->getParametreFormulaire("prorata"); $dateEntree = $this->requete->getParametreDate("dateEntree"); $adherent_temp = $this->adherent_temp->getAdherent_temp($idCollege, $dateEntree, $user, $prorata) ; $codeModeCalculPrime = $this->adherent_temp->getModeCalculPrimeAdherent($idCollege); $this->genererVueAjax(array('adherent_temp' => $adherent_temp, 'codeModeCalculPrime' => $codeModeCalculPrime)); } public function calculprime() { $user = $_SESSION['login']; $idCollege = $this->requete->getParametreFormulaire("idCollege"); $prorata = $this->requete->getParametreFormulaire("prorata"); $dateEntree = $this->requete->getParametreDate("dateEntree"); $dateNaissance = $this->requete->getParametreDate("dateNaissance"); $adherent_temp = $this->adherent_temp->calculprime($idCollege, $dateNaissance, $dateEntree, $user, $prorata) ; $this->genererVueAjax(array('adherent_temp' => $adherent_temp)); } }