menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Detailfactureperiodiquegarant"); $this->facture = new Facturegarant(); $this->periodicite = new Periodicite; $this->exercice = (new Exercice())->getListe(); $this->garants = (new Gestionconfiee())->getListe(); $this->periode = new Periode(); } public function index() { $idEntetefacturegarant = $this->requete->getParametreFormulaire("id"); $_SESSION['idEntetefacturegarant_temp'] = $idEntetefacturegarant; $periodicites = $this->periodicite->getPeriodiciteFactureGarant(); $entetefacturegarant = $this->facture->getEnteteFactureGarantID_temp($idEntetefacturegarant); $codeGcAssureur = $entetefacturegarant['codeGcAssureur']; $codeTypeFacturationGarant = $entetefacturegarant['codeTypeFacturationGarant']; $_SESSION['codeGcAssureur_F'] = $codeGcAssureur; $_SESSION['codeTypeFacturationGarant_F'] = $codeTypeFacturationGarant; $moisDebut = $this->periode->getListe(); $moisFin = $this->periode->getListe(); /* $listeavenants = array(); $listepolices = array(); $listecolleges = array(); $listeassiettes = array(); */ $listeavenants = $this->facture->getListeAvenantsID_temp($idEntetefacturegarant); $listepolices = $this->facture->getListePolicesID_temp($idEntetefacturegarant); $listecolleges = $this->facture->getListeCollegesID_temp($idEntetefacturegarant); $listeassiettes = $this->facture->getListeAssiettesFactureGarant($codeTypeFacturationGarant); $this->genererVue(array( 'periodicites' => $periodicites, 'exercice' => $this->exercice, 'garants' => $this->garants, 'entetefacturegarant' => $entetefacturegarant, 'moisDebut' => $moisDebut, 'moisFin' => $moisFin, 'listeavenants' => $listeavenants, 'listepolices' => $listepolices, 'listecolleges' => $listecolleges, 'listeassiettes' => $listeassiettes )); } }