prestation/Controleur/ControleurFacturesansboncso.php
2025-12-05 10:42:46 +00:00

35 lines
1.0 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Facturesansbon.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Ouinon.php';
class ControleurFacturesansboncso extends Controleur {
private $menuvue;
private $facture;
public function __construct()
{
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Facturesansboncso');
$this->facture = new Facturesansbon();
$this->ouinonhospit = (new Ouinon())->getListe();
}
public function index()
{
$codePrestataire = $_SESSION['p_codePrestataire_C'];
$this->facture->init_facture_sans_bon();
$facture = $this->facture->getfacture_sans_bon_temp();
$prestations = $this->facture->getprestations_sans_bon_temp();
$garantieadherent_temp = $this->facture->afficher_garantieadherent_temp();
$this->genererVue(array('facture' => $facture, 'prestations' => $prestations,
'garantieadherent_temp' => $garantieadherent_temp, 'ouinonhospit' => $this->ouinonhospit));
}
}