34 lines
1.1 KiB
PHP
Executable File
34 lines
1.1 KiB
PHP
Executable File
<?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['p_idAdherent_C'];
|
|
|
|
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
|
$garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent);
|
|
// $totalgarantieadherent = $this->garantieadherent->getTotalGarantieAdherent($idAdherent);
|
|
|
|
/*
|
|
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents,
|
|
'totalgarantieadherent' => $totalgarantieadherent));
|
|
*/
|
|
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents));
|
|
}
|
|
} |