Import initial du projet Production
This commit is contained in:
39
Controleur/ControleurRetraitgarantie.php
Normal file
39
Controleur/ControleurRetraitgarantie.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurRetraitgarantie extends Controleur {
|
||||
private $menuvue;
|
||||
private $police;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Retraitgarantie');
|
||||
|
||||
$this->police = new Police();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dateAvenant = $_SESSION['dateAvenant_C'];
|
||||
|
||||
$this->police->initretraitgarantie($idPolice);
|
||||
|
||||
$emission = $this->police->getEmissionTemp($idPolice);
|
||||
$avenant = $this->police->getAvenantTemp($idPolice);
|
||||
|
||||
$collegesPolice = $this->police->getListeCollegePolice($idPolice);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Retraitgarantie');
|
||||
|
||||
$this->genererVue(array('collegesPolice' => $collegesPolice,
|
||||
'emission' => $emission, 'avenant' => $avenant, 'chemin' => $chemin));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user