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

40 lines
1.1 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Tarifsactes.php';
require_once 'Modele/Prestataire.php';
require_once 'Modele/Police.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurModifiertarifacte extends Controleur {
private $menuvue;
private $tarif;
private $prestataire;
private $police;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Modifiertarifacte');
$this->tarif = new Tarifsactes();
$this->police = new Police();
$this->prestataire = new Prestataire();
}
public function index()
{
$idTarif = $this->requete->getParametreFormulaire("id");
$tarif = $this->tarif->getunptarif($idTarif);
$typeTarif = $this->tarif->getTypeTarif();
$prestataires = $this->prestataire->getListePrestataireTarif();
$groupes = $this->prestataire->getListeGroupeTarif();
$police = $this->police->getListePoliceTarif();
$this->genererVue(array('tarif' => $tarif,'typeTarif' => $typeTarif, 'prestataires' => $prestataires, 'police' => $police, 'groupes' => $groupes));
}
}