29 lines
876 B
PHP
Executable File
29 lines
876 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
require_once 'Modele/Collegepolice.php';
|
|
require_once 'Modele/Avenant.php';
|
|
|
|
class ControleurFacturerpolice extends Controleur
|
|
{
|
|
private $beneficiaire;
|
|
private $avenant;
|
|
|
|
private $menuvue;
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Facturerpolice");
|
|
|
|
$this->beneficiaire = new Beneficiaire();
|
|
$this->college = (new Collegepolice())->getListe($_SESSION['idPolice_C']);
|
|
|
|
$this->avenant = (new Avenant())->getListeEnCours($_SESSION['idPolice_C']);
|
|
}
|
|
public function index()
|
|
{
|
|
$this->beneficiaire->initfacturationpolice();
|
|
|
|
$this->genererVue(array('college' => $this->college, 'avenant' => $this->avenant));
|
|
}
|
|
} |