diff --git a/Controleur/ControleurAjaxlisteadherent.php b/Controleur/ControleurAjaxlisteadherent.php new file mode 100644 index 0000000..bd23970 --- /dev/null +++ b/Controleur/ControleurAjaxlisteadherent.php @@ -0,0 +1,21 @@ +adherent = new Adherent(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $adherents = $this->adherent->getlisteassuresexo($idPolice); + + $this->genererVueAjax(array('adherents' => $adherents)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurContrat.php b/Controleur/ControleurContrat.php new file mode 100644 index 0000000..be3ae71 --- /dev/null +++ b/Controleur/ControleurContrat.php @@ -0,0 +1,41 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Contrat"); + + $this->etat = new Etatcp(); + $this->police = new Police(); + } + + public function index() + { + + $idPolice = $_SESSION['idPolice_C'] ; + $prestationPossible = $this->police->prestationPossible($idPolice); + + $estAgence = $this->police->estAgence($idPolice); + + /* + if($prestationPossible!="1") + { + $this->rediriger("Fichepolice"); + exit(); + } + */ + + $etats = $this->etat->getEtatcp() ; + + $this->genererVue(array('etats' => $etats, 'prestationPossible' => $prestationPossible, 'estAgence' => $estAgence)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurListeadherent.php b/Controleur/ControleurListeadherent.php new file mode 100644 index 0000000..aec3532 --- /dev/null +++ b/Controleur/ControleurListeadherent.php @@ -0,0 +1,29 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Listeadherent"); + + $this->adherent = new Adherent(); + $this->police = new Police(); + + } + public function index() { + $idPolice = $_SESSION['idPolice_C']; + $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); + + $this->adherent->getNbassure($idPolice); + + $police = $this->police->getPoliceIdSimple($idPolice); + + $this->genererVue(array('police' => $police)); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 462bc76..2404060 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -54,7 +54,7 @@ $(function() { // 1. Initialisation des composants au chargement de la page appliquerDataTable('.tabliste'); - + /* // 2. Lancement du cycle de rafraîchissement automatique const vueActuelle = $("#vue").val(); @@ -67,6 +67,7 @@ $(function() { } }, 60000); // 60 secondes } + */ }); /** @@ -773,4 +774,33 @@ function prorater_prime_adherent() complete: function() { } }); +} + +function imprimer_contrat() +{ + window.location.assign($("#racineWeb" ).val()+"Contrat/"); +} + +function adherents_police() +{ + if ($("#idPolice_C" ).val()>"") + { + window.location.assign($("#racineWeb" ).val()+"Listeadherent/"); + } +} + +function afficher_adherents_police() +{ + $("#div_liste_adherent").html('
' + 'Veuillez patienter... / Please wait...' + '| = _("N° Adhérent") ?> | += _("Identité de l'assuré") ?> | += _("Collège") ?> | += _("Période Couverture") ?> | += _("Actions") ?> | +
|---|---|---|---|---|
| + + = $noAdh ?> + + | + +
+ = $this->nettoyer($adherent['nom']) ?>
+ = $this->nettoyer($adherent['prenoms']) ?>
+ |
+
+
+ = $this->nettoyer($adherent['codeProduit']) ?>
+
+ = $this->nettoyer($adherent['libelleCollege']) ?>
+
+ |
+
+
+
+ = dateLang($this->nettoyer($adherent['dateEntree'])) ?>
+
+ = $adherent['dateSortie'] ? dateLang($this->nettoyer($adherent['dateSortie'])) : '--' ?>
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
| = _("FRANCAIS") ?> | +=> | += _("ANGLAIS") ?> | +
|---|---|---|
| + | => | ++ |
| + | ||
| CONDITIONS GENERALES | +=> | +GENERALS CONDITIONS | +
| + | => | ++ |
| = _("ENGLISH") ?> | +=> | += _("KINYARWANDA") ?> | +
|---|---|---|
| + | => | ++ |
| + | => | ++ |
= _("Chargement de la liste des adhérents...") ?>
+