Import initial du projet Production
This commit is contained in:
53
Controleur/ControleurBasculeradherents.php
Normal file
53
Controleur/ControleurBasculeradherents.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?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
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user