Initial commit for radiantrh project
This commit is contained in:
27
Controleur/ControleurFactures.php
Executable file
27
Controleur/ControleurFactures.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurFactures extends Controleur {
|
||||
private $menuvue;
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Factures');
|
||||
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$d1 = $_SESSION['dUneSemaineAvant_C'];
|
||||
$d2 = date('Y-m-d');
|
||||
|
||||
$factures = $this->facture->getfactures($idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVue(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user