production/Controleur/ControleurCarteassures.php
2025-12-02 11:29:44 +00:00

43 lines
983 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Carteassure.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Gestionconfiee.php';
class ControleurCarteassures extends Controleur
{
private $menuvue;
private $carte;
private $garant;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Carteassures");
$this->carte = new Carteassure();
$this->garant = new Gestionconfiee();
//$_SESSION['modeDevis'] = "0";
}
public function index()
{
$cartes = $this->carte->getListeCartePolice();
/*
$statuts = $this->carte->getListeStatut();
$etats = $this->carte->getListeEtatCarte();
*/
$garants = $this->garant->getListe();
$polices = array();
$colleges = array();
$this->genererVue(array('garants' => $garants, 'polices' => $polices, 'colleges' => $colleges,
));
}
}