50 lines
1.1 KiB
PHP
Executable File
50 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
|
|
class ControleurAjaxsppolice extends Controleur
|
|
{
|
|
private $sppolice;
|
|
|
|
public function __construct() {
|
|
$this->sppolice = new Police();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function police()
|
|
{
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
|
|
$dj = date("Y-m-d");
|
|
|
|
$sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj);
|
|
|
|
$this->genererVueAjax(array('sppolice' => $sppolice));
|
|
}
|
|
|
|
public function categorie()
|
|
{
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
|
|
$dj = date("Y-m-d");
|
|
|
|
$sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj);
|
|
|
|
$this->genererVueAjax(array('sppolices' => $sppolices));
|
|
}
|
|
|
|
public function college()
|
|
{
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
|
|
$dj = date("Y-m-d");
|
|
|
|
$sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj);
|
|
|
|
$this->genererVueAjax(array('sppolices' => $sppolices));
|
|
}
|
|
} |