production/Controleur/ControleurChambrecons.php
2025-12-02 11:29:44 +00:00

41 lines
1.3 KiB
PHP
Executable File

<?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
));
}
}