production/Controleur/ControleurIncorporationgarantie.php
2025-12-02 11:29:44 +00:00

37 lines
951 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Police.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurIncorporationgarantie extends Controleur {
private $menuvue;
private $police;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Incorporationgarantie');
$this->police = new Police();
}
public function index()
{
$idPolice = $_SESSION['idPolice_C'];
$dateAvenant = $_SESSION['dateAvenant_C'];
$this->police->initincorporationgarantie($idPolice);
$emission = $this->police->getEmissionTemp($idPolice);
$avenant = $this->police->getAvenantTemp($idPolice);
$collegesPolice = $this->police->getListeCollegePolice($idPolice);
$this->genererVue(array('collegesPolice' => $collegesPolice,
'emission' => $emission, 'avenant' => $avenant));
}
}