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

53 lines
1.4 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Police.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurBasculeradherents extends Controleur {
private $menuvue;
private $adherent;
private $police;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Basculeradherents");
$this->adherent = new Adherent();
$this->police = new Police();
}
public function index()
{
$idPolice = $_SESSION['idPolice_C'];
//var_dump($idPolice);
$adherents = $this->adherent->getlisteassuresabasculer($idPolice);
$chemin = $this->menuvue->getChemin('Basculeradherents');
$_SESSION['idCollegePolice'] = "";
$garants = $this->police->getGarants();
$polices = array();
$adherentsBascules = array();
$colleges = array();
$produits = array();
$collegesPolice = $this->police->getListeCollegePolice($idPolice);
$options = $this->police->getOptionsBasculement();
$this->genererVue(array(
'adherents' => $adherents,
'garants' => $garants,
'polices' => $polices,
'adherentsBascules' => $adherentsBascules,
'colleges' => $colleges,
'options' => $options,
'produits' => $produits,
'collegesPolice' => $collegesPolice,
'chemin' => $chemin
));
}
}