menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Creercollege'); $this->college_temp = new College_temp(); $this->tarif = new Tarif(); $this->produit = (new Produit())->getListe(); $this->rachattm = (new Rachattm())->getListe(); $this->ouinonimposerplafond = (new Ouinon())->getListe(); $_SESSION['modeDevis'] = "0"; } public function index() { $idPolice = $_SESSION['idPolice_C']; $idCollegeTemp = $_SESSION['idCollegeTemp']; $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); $tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp); $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond)); } public function initcollege() { $idPolice = $_SESSION['idPolice_C']; $user = $this->requete->getSession()->getAttribut('login'); $idCollegeTemp = $this->college_temp->initCollege($idPolice, $user); $this->rediriger("Creercollege"); } public function enregistrer() { $idCollegeTemp = $_SESSION['idCollegeTemp']; $codeProduit = $this->requete->getParametre("codeProduit"); $libelleCollege = $this->requete->getParametre("libelleCollege"); $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); $rachatTm = $this->requete->getParametre("rachatTm"); $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond); if($this->requete->existeParametre("btn_recap")) { $this->rediriger("Creercollege"); } else { $this->college_temp->enregistrer($idCollegeTemp); $this->rediriger("Collegepolice"); } } }