31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Derogation.php';
|
|
require_once 'Modele/Prestataire.php';
|
|
|
|
class ControleurAjaxderogations extends Controleur {
|
|
private $derogation;
|
|
|
|
public function __construct() {
|
|
$this->derogation = new Derogation();
|
|
$this->prestataire = new Prestataire();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
$codeDerogation = $this->requete->getParametreFormulaire("codeDerogation");
|
|
$codeReponseDerogation = $this->requete->getParametreFormulaire("codeReponseDerogation");
|
|
|
|
$_SESSION['codePrestataire_C'] = $codePrestataire;
|
|
|
|
$prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']);
|
|
|
|
$debut = $this->requete->getParametreDate("debut");
|
|
$fin = $this->requete->getParametreDate("fin");
|
|
|
|
$derogations = $this->derogation->getderogations($codePrestataire, $codeDerogation, $codeReponseDerogation, $debut, $fin);
|
|
|
|
$this->genererVueAjax(array('derogations' => $derogations));
|
|
}
|
|
} |