67 lines
2.6 KiB
PHP
Executable File
67 lines
2.6 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
|
|
|
|
class ControleurPagetmbeneficiaireacteprestataire extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $ben;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Pagetmbeneficiaireacteprestataire');
|
|
|
|
$this->ben = new Beneficiaire();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idBeneficiaire = isset($_SESSION['idBeneficiaire_C'])? $_SESSION['idBeneficiaire_C']:"0";
|
|
|
|
if($idBeneficiaire > "0")
|
|
{
|
|
$benef = $this->ben->trouverBeneficiaireId($idBeneficiaire);
|
|
|
|
$_SESSION['numeroBeneficiaire_C'] = $benef['numero'];
|
|
$_SESSION['beneficiaire_C'] = $benef['beneficiaire'];
|
|
$_SESSION['nomPolice_C'] = $benef['nomPolice'];
|
|
$_SESSION['nomCollege_C'] = $benef['nomCollege'];
|
|
$_SESSION['codeLienParente_C'] = $benef['codeLienParente'];
|
|
$_SESSION['numeroAdherent_C'] = $benef['numeroAdherent'];
|
|
$_SESSION['adherent_C'] = $benef['adherent'];
|
|
}
|
|
|
|
$numeroBeneficiaire = (isset($_SESSION['numeroBeneficiaire_C']) && $idBeneficiaire > "0")? $_SESSION['numeroBeneficiaire_C']:"";
|
|
$beneficiaire = (isset($_SESSION['beneficiaire_C']) && $idBeneficiaire > "0")? $_SESSION['beneficiaire_C']:"";
|
|
|
|
$nomPolice = (isset($_SESSION['nomPolice_C']) && $idBeneficiaire > "0")? $_SESSION['nomPolice_C']:"";
|
|
$nomCollege = (isset($_SESSION['nomCollege_C']) && $idBeneficiaire > "0")? $_SESSION['nomCollege_C']:"";
|
|
$codeLienParente = (isset($_SESSION['codeLienParente_C']) && $idBeneficiaire > "0")? $_SESSION['codeLienParente_C']:"";
|
|
|
|
$noAdherent = (isset($_SESSION['numeroAdherent_C']) && $idBeneficiaire > "0")? $_SESSION['numeroAdherent_C']:"";
|
|
$nomAdherent = (isset($_SESSION['adherent_C']) && $idBeneficiaire > "0")? $_SESSION['adherent_C']:"";
|
|
|
|
$tmbeneficiaire = $this->ben->getTmbeneficiaireacteprestataire();
|
|
|
|
$codeGarantie = "HOS";
|
|
$garanties = $this->ben->getgarantiehospit($codeGarantie);
|
|
|
|
$chemin = $this->menuvue->getChemin('Pagetmbeneficiaireacteprestataire');
|
|
|
|
$this->genererVue(array(
|
|
'idBeneficiaire' => $idBeneficiaire,
|
|
'numeroBeneficiaire'=> $numeroBeneficiaire,
|
|
'beneficiaire' => $beneficiaire,
|
|
'nomPolice' => $nomPolice,
|
|
'nomCollege' => $nomCollege,
|
|
'codeLienParente' => $codeLienParente,
|
|
'noAdherent' => $noAdherent,
|
|
'nomAdherent' => $nomAdherent,
|
|
'tmbeneficiaire' => $tmbeneficiaire,
|
|
'garanties' => $garanties ,'chemin' => $chemin
|
|
|
|
));
|
|
}
|
|
} |