32 lines
792 B
PHP
Executable File
32 lines
792 B
PHP
Executable File
<?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));
|
|
}
|
|
|
|
} |