30 lines
803 B
PHP
Executable File
30 lines
803 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsmedicaments.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurListeimporttarifmedicament extends Controleur {
|
|
private $menuvue;
|
|
private $tarif;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Listeimporttarifmedicament");
|
|
|
|
$this->tarif = new Tarifsmedicaments();
|
|
}
|
|
public function index()
|
|
{
|
|
$tarifs = $this->tarif->getListeMedicamentsImportes();
|
|
|
|
$tarifs_total = null;
|
|
$nb_ligne_med = count($tarifs);
|
|
|
|
if($nb_ligne_med>0)
|
|
{
|
|
$tarifs_total = $tarifs['0'];
|
|
}
|
|
|
|
$this->genererVue(array('tarifs' => $tarifs, 'tarifs_total' => $tarifs_total, 'nb_ligne_med' => $nb_ligne_med));
|
|
}
|
|
} |