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

76 lines
2.3 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Detailtarifacte.php';
class ControleurAjaxlisteexamenspossibles extends Controleur {
private $acte;
public function __construct() {
$this->acte = new Detailtarifacte();
}
public function index($nomsearch="")
{
if ($this->requete->existeParametre("valid"))
{
$idAdherent = $_SESSION['p_idAdherent_C'];
$codeTarifActe = $this->acte->getTarifActeAdherent($idAdherent);
$_SESSION['p_codeTarifActe_C'] = $codeTarifActe;
//$codeTarifActe = $_SESSION['p_codeTarifActe_C'];
//var_dump($codeTarifActe);
$codeTypePrestation = "EXAM";
$codeFamilleActe = "FA011";
$libelleActeSearch = $this->requete->getParametreFormulaire("libelleActeSearch");
$actes_pop = $this->acte->getexamenspossibleslikeprescription($codeTarifActe, $libelleActeSearch, $codeFamilleActe) ;
}
elseif ($this->requete->existeParametre("bio"))
{
$idAdherent = $_SESSION['p_idAdherent_C'];
$codeTarifActe = $this->acte->getTarifActeAdherent($idAdherent);
$_SESSION['p_codeTarifActe_C'] = $codeTarifActe;
//$codeTarifActe = $_SESSION['p_codeTarifActe_C'];
//var_dump($codeTarifActe);
$codeTypePrestation = "EXAM";
$codeFamilleActe = "FA003";
$libelleActeSearch = $this->requete->getParametreFormulaire("libelleActeSearch");
$actes_pop = $this->acte->getexamenspossibleslikeprescription($codeTarifActe, $libelleActeSearch, $codeFamilleActe) ;
}elseif ($this->requete->existeParametre("ima"))
{
$idAdherent = $_SESSION['p_idAdherent_C'];
$codeTarifActe = $this->acte->getTarifActeAdherent($idAdherent);
$_SESSION['p_codeTarifActe_C'] = $codeTarifActe;
//$codeTarifActe = $_SESSION['p_codeTarifActe_C'];
//var_dump($codeTarifActe);
$codeTypePrestation = "EXAM";
$codeFamilleActe = "FA002";
$libelleActeSearch = $this->requete->getParametreFormulaire("libelleActeSearch");
$actes_pop = $this->acte->getexamenspossibleslikeprescription($codeTarifActe, $libelleActeSearch, $codeFamilleActe) ;
}else
{
$actes_pop = $this->acte->getactesvide();
}
$this->genererVueAjax(array('actes_pop' => $actes_pop, 'libelleActeSearch' => $libelleActeSearch));
}
}