prestation/Controleur/ControleurAjaxetatrapportsp.php
2025-12-05 10:42:46 +00:00

25 lines
546 B
PHP
Executable File

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