diff --git a/Controleur/ControleurAjaxfraisfuneraires.php b/Controleur/ControleurAjaxfraisfuneraires.php index e6ccc6f..2242005 100644 --- a/Controleur/ControleurAjaxfraisfuneraires.php +++ b/Controleur/ControleurAjaxfraisfuneraires.php @@ -21,8 +21,6 @@ class ControleurAjaxfraisfuneraires extends Controleur { $demandes = $this->frais->getfraisfunerairePolice($idPolice, $debut, $fin, $valide); - //var_dump($demandes); die(); - $this->genererVueAjax(array('demandes' => $demandes)); } diff --git a/Controleur/ControleurFichefraisfuneraires.php b/Controleur/ControleurFichefraisfuneraires.php new file mode 100644 index 0000000..6f75de4 --- /dev/null +++ b/Controleur/ControleurFichefraisfuneraires.php @@ -0,0 +1,29 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Fichefraisfuneraires'); + + $this->fraisfuneraire = new Fraisfuneraire(); + $this->beneficiaire = new Pbeneficiaire(); + } + + public function index() + { + $idDemande = $this->requete->getParametreFormulaire("idDemande"); + + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $fraisfuneraire = $this->fraisfuneraire->getfraisfuneraire($idBeneficiaire); + + $this->genererVue(array('fraisfuneraire' => $fraisfuneraire)); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index df9c48a..9453241 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -7583,4 +7583,12 @@ function enregistrerdemandefraisfuneraire() } }); +} + +function afficher_demande_fraisfun(idDemande) +{ + if (idDemande > "0") + { + window.location.assign($("#racineWeb" ).val()+"Fichefraisfuneraires/"+idDemande+"/"); + } } \ No newline at end of file diff --git a/Vue/Ajaxfraisfuneraires/index.php b/Vue/Ajaxfraisfuneraires/index.php index 589c558..add44ba 100644 --- a/Vue/Ajaxfraisfuneraires/index.php +++ b/Vue/Ajaxfraisfuneraires/index.php @@ -38,7 +38,7 @@