31 lines
900 B
PHP
Executable File
31 lines
900 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
|
|
class ControleurAjaxfiltrelistetarifacte extends Controleur {
|
|
private $autrestables;
|
|
|
|
public function __construct() {
|
|
$this->tarif = new Tarifsactes();
|
|
}
|
|
|
|
public function index() {
|
|
$numero = $this->requete->getParametreFormulaire('numero');
|
|
|
|
if($numero=="1"){
|
|
$tarifs = $this->tarif->getListeTarif();
|
|
}elseif($numero=="2"){
|
|
$tarifs = $this->tarif->getListeTarifClassique();
|
|
}elseif($numero=="3"){
|
|
$tarifs = $this->tarif->getListeTarifMutuelle();
|
|
}elseif($numero=="4"){
|
|
$tarifs = $this->tarif->getListeTarifCentre();
|
|
}elseif($numero=="5"){
|
|
$tarifs = $this->tarif->getListeTarifPolice();
|
|
}else{
|
|
$tarifs = $this->tarif->getListeTarif();
|
|
}
|
|
|
|
$this->genererVueAjax(array('tarifs' => $tarifs));
|
|
}
|
|
} |