33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Echeancier_temp.php';
|
|
require_once 'Modele/Typeecheancier.php';
|
|
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurEcheancier extends Controleur
|
|
{
|
|
private $echeancier;
|
|
private $typeecheancier;
|
|
|
|
private $menuvue;
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Echeancier");
|
|
|
|
$this->echeancier = new Echeancier_temp();
|
|
$this->typeecheancier = (new Typeecheancier())->getListe();
|
|
}
|
|
public function index() {
|
|
$user = $_SESSION['login'];
|
|
|
|
$entete_echeancier = $this->entete_echeancier->getEntete_echeancier_temp($user);
|
|
|
|
$echeanciers = $this->echeancier->getEcheancier_temp($user);
|
|
|
|
$total_echeancier = $this->echeancier->getTotalEcheancier_temp($user);
|
|
|
|
$this->genererVue(array('typeecheancier' => $this->typeecheancier, 'entete_echeancier' => $entete_echeancier,
|
|
'echeanciers' => $echeanciers, 'total_echeancier' => $total_echeancier));
|
|
}
|
|
} |