39 lines
988 B
PHP
Executable File
39 lines
988 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Client.php';
|
|
|
|
|
|
class ControleurCompositiontarifactesclientprestataire extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $tarif;
|
|
private $client;
|
|
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Compositiontarifactesclientprestataire');
|
|
|
|
$this->tarif = new Tarifsactes();
|
|
$this->client = new Client();
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codeTypeTarifActe = "TCLIP";
|
|
|
|
$tarifs = $this->tarif->getTarifActeByTypeParticulier($codeTypeTarifActe);
|
|
|
|
$clients = $this->client->getListeClient();
|
|
|
|
$chemin = $this->menuvue->getChemin('Compositiontarifactesclientprestataire');
|
|
|
|
$this->genererVue(array('tarifs' => $tarifs,
|
|
'clients' => $clients,
|
|
'chemin' => $chemin
|
|
));
|
|
}
|
|
} |