26 lines
749 B
PHP
Executable File
26 lines
749 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Derogation.php';
|
|
|
|
class ControleurAjaxderogation extends Controleur {
|
|
private $derogation;
|
|
|
|
public function __construct() {
|
|
$this->derogation = new Derogation();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
|
$d1 = $this->requete->getParametreDate("d1");
|
|
$d2 = $this->requete->getParametreDate("d2");
|
|
|
|
$_SESSION['p_d1_C'] = $d1;
|
|
$_SESSION['p_d2_C'] = $d2;
|
|
|
|
$derogations = $this->derogation->getderogations($codePrestataire, $idBeneficiaire, $d1, $d2);
|
|
|
|
$this->genererVueAjax(array('derogations' => $derogations));
|
|
}
|
|
} |