34 lines
1.0 KiB
PHP
Executable File
34 lines
1.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurFicheresiliation extends Controleur {
|
|
private $menuvue;
|
|
private $avenant;
|
|
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Ficheresiliation");
|
|
|
|
$this->avenant = new Police();
|
|
}
|
|
public function index() {
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
$dateAvenant = $_SESSION['dateAvenant_C'];
|
|
$this->avenant->initresiliation($idPolice);
|
|
|
|
$emission = $this->avenant->getEmissionTemp($idPolice);
|
|
$avenant = $this->avenant->getAvenantTemp($idPolice);
|
|
$sppolice = $this->avenant->getRapportSpPolice($idPolice, $dateAvenant);
|
|
|
|
$this->genererVue(array('emission' => $emission, 'avenant' => $avenant, 'sppolice' => $sppolice));
|
|
}
|
|
|
|
public function enregistrerresiliation()
|
|
{
|
|
$this->avenant->enregistrerresiliation();
|
|
$this->rediriger("Fichepolice");
|
|
}
|
|
} |