diff --git a/Controleur/ControleurAjaxfraisfuneraires.php b/Controleur/ControleurAjaxfraisfuneraires.php new file mode 100644 index 0000000..404fc4e --- /dev/null +++ b/Controleur/ControleurAjaxfraisfuneraires.php @@ -0,0 +1,27 @@ +frais = new Fraisfuneraire(); + } + + public function index() + { + $idPolice = $this->requete->getParametreFormulaire("idPolice"); + + $_SESSION['idPolice_C'] = $idPolice; + + $valide = $this->requete->getParametreFormulaire("valide"); + $debut = $this->requete->getParametreDate("debut"); + $fin = $this->requete->getParametreDate("fin"); + + $demandes = $this->mouvementassure->getfraisfunerairePolice($idPolice, $debut, $fin, $valide); + + $this->genererVueAjax(array('demandes' => $demandes)); + } + +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 6d09d2f..412c6d7 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -7303,4 +7303,53 @@ function confirmer_correction(idMvt, idBeneficiaire) } }); -} \ No newline at end of file +} + +function liste_frais_funeraires_assures_client() +{ + idPolice=$("#idPolice").val(); + + if (idPolice<=" ") + { + v_msg="Veuillez sélectionner une police!"; + v_msgEng="Please select a policy!"; + + alert_ebene(v_msg, v_msgEng).then(() => { + // Ce code ne s’exécute qu’après clic sur OK + return; + }); + return; + } + + valide=$("#valide").val(); + debut=$("#debut").val(); + fin=$("#fin").val(); + + donnees = 'idPolice='+idPolice; + donnees += '&valide='+valide; + donnees += '&debut='+debut+'&fin='+fin; + + $("#div_mvt").html(` +
| = _("N° Demande") ?> | += _("Date Saisie") ?> | += _("Bénéficiaire") ?> | += _("Lien Parenté") ?> | += _("État") ?> | += _("Observations") ?> | +
|---|---|---|---|---|---|
| + + | ++ = dateheureLang($dateSysteme, $_SESSION['lang']) ?> + | +
+ = $this->nettoyer($v['beneficiaire']) ?>
+ = $this->nettoyer($v['numeroBeneficiaire']) ?>
+ |
+ + = $v['lienbeneficiaire'] ?> + | ++ + + = _("Accordée")?> + + + + = _("En attente")?> + + + + = _("Refusée")?> + + + | ++ = $v['observations'] ? $this->nettoyer($v['observations']) : '-' ?> + | +