diff --git a/Controleur/ControleurAjaxbeneficiaireprimeadherent.php b/Controleur/ControleurAjaxbeneficiaireprimeadherent.php new file mode 100644 index 0000000..65887e1 --- /dev/null +++ b/Controleur/ControleurAjaxbeneficiaireprimeadherent.php @@ -0,0 +1,32 @@ +emission = new Emission(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $debutPeriode = $this->requete->getParametreDate("debutPeriode"); + $finPeriode = $this->requete->getParametreDate("finPeriode"); + + $beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode); + + $beneficiaires_total = null; + + if(count($beneficiaires)>"0") + { + $beneficiaires_total = $beneficiaires['0']; + } + + $this->genererVueAjax(array('beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurBeneficiaireprimeadherent.php b/Controleur/ControleurBeneficiaireprimeadherent.php new file mode 100644 index 0000000..58b8f8b --- /dev/null +++ b/Controleur/ControleurBeneficiaireprimeadherent.php @@ -0,0 +1,40 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Beneficiaireprimeadherent"); + + $this->adherent = new Adherent(); + $this->emission = new Emission(); + } + + public function index() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $adherent = $this->adherent->getAdherentId($idAdherent); + $debutPeriode = $adherent['dateEffetAdherent']; + $finPeriode = $adherent['dateFinPolice']; + + $beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode); + + $beneficiaires_total = null; + + if(count($beneficiaires)>"0") + { + $beneficiaires_total = $beneficiaires['0']; + } + + $this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total)); + } +} diff --git a/Vue/Beneficiaireprimeadherent/index.php b/Vue/Beneficiaireprimeadherent/index.php new file mode 100644 index 0000000..0265669 --- /dev/null +++ b/Vue/Beneficiaireprimeadherent/index.php @@ -0,0 +1,25 @@ +titre = "INTER-SANTE - Fiche Emission"; + +?> + + + +
| = _("Période du") ?> | ++ + | = _("au") ?> | ++ + | + |