Import initial du projet Production
This commit is contained in:
41
Controleur/ControleurChambrecons.php
Normal file
41
Controleur/ControleurChambrecons.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurChambrecons extends Controleur {
|
||||
private $menuvue;
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Chambrecons');
|
||||
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C'];
|
||||
|
||||
$chambres = $this->prestation->getchambresfeuille($numeroFeuilleMaladie);
|
||||
|
||||
//var_dump($chambres);
|
||||
|
||||
$totalchambres = $this->prestation->gettotalchambresfeuille($numeroFeuilleMaladie);
|
||||
|
||||
$hospit_total = $this->prestation->gethospitalisation_total($numeroFeuilleMaladie);
|
||||
|
||||
|
||||
|
||||
$prestations = $this->prestation->gettousactesmedicauxhospitalisation($numeroFeuilleMaladie);
|
||||
$prestations_total = $this->prestation->gettousactesmedicauxhospitalisation_total($numeroFeuilleMaladie);
|
||||
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Chambrecons');
|
||||
|
||||
$this->genererVue(array('chambres' => $chambres, 'totalchambres' => $totalchambres, 'prestations' => $prestations,
|
||||
'prestations_total' => $prestations_total, 'chemin' => $chemin
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user