33 lines
805 B
PHP
Executable File
33 lines
805 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurModifiertarifacte extends Controleur {
|
|
private $menuvue;
|
|
private $tarif;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Modifiertarifacte');
|
|
|
|
$this->tarif = new Tarifsactes();
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idTarif = $this->requete->getParametreFormulaire("id");
|
|
|
|
$tarif = $this->tarif->getunptarif($idTarif);
|
|
|
|
$typeTarif = $this->tarif->getTypeTarif();
|
|
$chemin = $this->menuvue->getChemin('Modifiertarifacte');
|
|
|
|
|
|
$this->genererVue(array('tarif' => $tarif,'typeTarif' => $typeTarif ,'chemin' => $chemin
|
|
));
|
|
}
|
|
|
|
|
|
} |