33 lines
919 B
PHP
Executable File
33 lines
919 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Statistique.php';
|
|
|
|
class ControleurAjaxetatcumultypeprestataire extends Controleur
|
|
{
|
|
private $cumulprestataire;
|
|
|
|
public function __construct() {
|
|
$this->cumulprestataire = new Statistique();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$debutStat = $this->requete->getParametreDate("debutStat");
|
|
$finStat = $this->requete->getParametreDate("finStat");
|
|
|
|
$_SESSION['debutStat'] = $debutStat;
|
|
$_SESSION['finStat'] = $finStat;
|
|
|
|
$cumulprestataires = $this->cumulprestataire->etatcumultypeprestataire($debutStat, $finStat) ;
|
|
|
|
$cumulprestataires_total = null;
|
|
|
|
if(count($cumulprestataires)>"0")
|
|
{
|
|
$cumulprestataires_total = $cumulprestataires['0'];
|
|
}
|
|
|
|
|
|
$this->genererVueAjax(array('cumulprestataires' => $cumulprestataires, 'cumulprestataires_total' => $cumulprestataires_total));
|
|
}
|
|
} |