diff --git a/Controleur/ControleurRequetes.php b/Controleur/ControleurRequetes.php index 19d3006..167d976 100644 --- a/Controleur/ControleurRequetes.php +++ b/Controleur/ControleurRequetes.php @@ -1,21 +1,33 @@ menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Requetes'); $this->requetes = (new Requetes())->getListe(); + $this->sppolice = new Police(); } public function index() { - $this->genererVue(array('requetes' => $this->requetes)); + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVue(array( + 'requetes' => $this->requetes, + 'sppoliceentete' => $sppoliceentete + )); } } \ No newline at end of file