Import initial du projet Production
This commit is contained in:
29
Controleur/ControleurSyntheseconsopolice.php
Normal file
29
Controleur/ControleurSyntheseconsopolice.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSyntheseconsopolice extends Controleur {
|
||||
private $menuvue;
|
||||
private $sppolice;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Syntheseconsopolice");
|
||||
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Syntheseconsopolice');
|
||||
|
||||
$this->genererVue(array('sppoliceentete' => $sppoliceentete, 'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user