39 lines
1.1 KiB
PHP
Executable File
39 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Collegepolice_d.php';
|
|
require_once 'Modele/Beneficiaire_d.php';
|
|
|
|
class ControleurAjaxfiltreadherentparcollegedevis extends Controleur
|
|
{
|
|
private $adherent;
|
|
private $college;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->adherent = new Beneficiaire_d();
|
|
$this->college = new Collegepolice_d();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idCollegePolice = $this->requete->getParametreFormulaire("idCollegePolice");
|
|
|
|
$_SESSION["idCollegePolice_d"] = $idCollegePolice;
|
|
|
|
$idPolice = $_SESSION['idPolice_d_C'];
|
|
$numeroOptionTarif = $_SESSION['numeroOptionTarif'];
|
|
|
|
$colleges = $this->college->getListeOptionTarifLong($idPolice, $numeroOptionTarif);
|
|
|
|
if($idCollegePolice > "0"){
|
|
$adherents = $this->adherent->getlisteassuresparcollegedevis($idPolice, $numeroOptionTarif, $idCollegePolice);
|
|
|
|
}else{
|
|
$adherents = $this->adherent->getlisteadherentdevis($idPolice, $numeroOptionTarif);
|
|
}
|
|
|
|
|
|
$this->genererVueAjax(array('adherents' => $adherents, 'colleges' => $colleges));
|
|
}
|
|
}
|