29 lines
823 B
PHP
Executable File
29 lines
823 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
require_once 'Modele/Avenant.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurListeavenant extends Controleur {
|
|
private $menuvue;
|
|
private $police;
|
|
private $avenant;
|
|
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Listeavenant");
|
|
|
|
$this->police = new Police();
|
|
$this->avenant = new Avenant();
|
|
}
|
|
public function index() {
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
$this->police->getContextePoliceId($idPolice);
|
|
$police = $this->police->getPoliceId($idPolice);
|
|
|
|
$avenants = $this->avenant->getAvenant($idPolice);
|
|
|
|
$this->genererVue(array('police' => $police, 'avenants' => $avenants));
|
|
}
|
|
} |