Import initial du projet Production
This commit is contained in:
34
Controleur/ControleurPlafondadherent.php
Normal file
34
Controleur/ControleurPlafondadherent.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Garantieadherent.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurPlafondadherent extends Controleur {
|
||||
private $menuvue;
|
||||
private $adherent;
|
||||
private $garantieadherent;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Plafondadherent");
|
||||
|
||||
$this->adherent = new Adherent();
|
||||
$this->garantieadherent = new Garantieadherent();
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
||||
$exercieReference = $_SESSION['exercieReference_C'];
|
||||
$idEntetecontrat = $_SESSION['idEntetecontrat'];
|
||||
$entecontrats = $this->garantieadherent->getlisteentetecontratadherent($idAdherent);
|
||||
|
||||
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Plafondadherent');
|
||||
|
||||
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats, 'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user