Import initial du projet garant
This commit is contained in:
28
Controleur/ControleurConsultationlab.php
Normal file
28
Controleur/ControleurConsultationlab.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurConsultationlab extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Consultationlab');
|
||||
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codePrestataire = $_SESSION['codePrestataire_C'];
|
||||
$d1 = $_SESSION['d1_C'];
|
||||
$d2 = $_SESSION['d2_C'];
|
||||
|
||||
$factures = $this->facture->getfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$totalfactures = $this->facture->gettotalfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVue(array('factures' => $factures, 'totalfactures' => $totalfactures));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user