25 lines
546 B
PHP
25 lines
546 B
PHP
<?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));
|
|
}
|
|
|
|
} |