33 lines
784 B
PHP
Executable File
33 lines
784 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Adherent.php';
|
|
|
|
class ControleurAjaxfiltreadherentcollege extends Controleur
|
|
{
|
|
private $adherent;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->adherent = new Adherent();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idCollegePolice = $this->requete->getParametreFormulaire("idCollegePolice");
|
|
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
|
|
if($idCollegePolice > "0"){
|
|
$adherents = $this->adherent->getlisteassurescollegeabasculer($idPolice, $idCollegePolice);
|
|
|
|
}else{
|
|
|
|
$adherents = $this->adherent->getlisteassuresabasculer($idPolice);
|
|
}
|
|
|
|
$_SESSION["idCollegePolice"] = $idCollegePolice;
|
|
|
|
$this->genererVueAjax(array('adherents' => $adherents));
|
|
}
|
|
}
|