This commit is contained in:
2026-01-03 09:53:56 +00:00
parent 7595e84797
commit a5dcddc4f7
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?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 $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));
}
}