prestation/Controleur/ControleurAjaxetatrapportspperiode.php
2025-12-01 18:54:33 +00:00

32 lines
792 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Statistique.php';
class ControleurAjaxetatrapportspperiode extends Controleur
{
public function __construct() {
$this->rapportsp = new Statistique();
}
public function index()
{
$debutStat = $this->requete->getParametreDate("debutStat");
$finStat = $this->requete->getParametreDate("finStat");
$_SESSION['debutStat'] = $debutStat;
$_SESSION['finStat'] = $finStat;
$rapportsps = $this->rapportsp->etatrapportspperiode($debutStat, $finStat);
$rapportspsTotal = null;
if(count($rapportsps)>"0")
{
$rapportspsTotal = $rapportsps['0'];
}
$this->genererVueAjax(array('rapportsps' => $rapportsps, 'rapportsps' => $rapportsps));
}
}