From 3c45cf83c635108ab52c60ad260a454f923de4d5 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 30 Dec 2025 13:20:54 +0000 Subject: [PATCH] Ouff --- Controleur/ControleurAjaxlisteadherent.php | 21 +++ Controleur/ControleurContrat.php | 41 ++++++ Controleur/ControleurListeadherent.php | 29 ++++ Js/fonctions.js | 32 +++- Modele/Etatcp.php | 17 +++ Vue/Ajaxlisteadherent/index.php | 164 +++++++++++++++++++++ Vue/Contrat/index.php | 81 ++++++++++ Vue/Listeadherent/index.php | 102 +++++++++++++ Vue/gabarit.php | 7 +- 9 files changed, 489 insertions(+), 5 deletions(-) create mode 100644 Controleur/ControleurAjaxlisteadherent.php create mode 100644 Controleur/ControleurContrat.php create mode 100644 Controleur/ControleurListeadherent.php create mode 100644 Modele/Etatcp.php create mode 100644 Vue/Ajaxlisteadherent/index.php create mode 100644 Vue/Contrat/index.php create mode 100644 Vue/Listeadherent/index.php 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...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxlisteadherent/", + type : 'post', + // data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_liste_adherent").html(data); + } + }); } \ No newline at end of file diff --git a/Modele/Etatcp.php b/Modele/Etatcp.php new file mode 100644 index 0000000..6dcf092 --- /dev/null +++ b/Modele/Etatcp.php @@ -0,0 +1,17 @@ +executerRequete($sql, array($codeSociete)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + +} diff --git a/Vue/Ajaxlisteadherent/index.php b/Vue/Ajaxlisteadherent/index.php new file mode 100644 index 0000000..d55c44c --- /dev/null +++ b/Vue/Ajaxlisteadherent/index.php @@ -0,0 +1,164 @@ +nettoyer($_SESSION['numeroPolice_C']); +?> + +
+ +
+
+
+
+ +
+
+
+ : +
+
+
+ +
+
+
+ +
+
+
+ + + + +
+
+
+ +
+
+ +
+
+ +
+ + + + + + + + + + + + nettoyer($adherent['numeroAdherent']); + $estsupprimable = ($this->nettoyer($adherent['primeArchive']) == "0"); + $statusClass = $estsupprimable ? 'status-actif' : 'status-archive'; + ?> + + + + + + + + + + + + + + +
+ + + + +
nettoyer($adherent['nom']) ?>
+
nettoyer($adherent['prenoms']) ?>
+
+ nettoyer($adherent['codeProduit']) ?> +
+ nettoyer($adherent['libelleCollege']) ?> +
+
+
+ nettoyer($adherent['dateEntree'])) ?> + + nettoyer($adherent['dateSortie'])) : '--' ?> +
+
+
+ + + + + + + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/Vue/Contrat/index.php b/Vue/Contrat/index.php new file mode 100644 index 0000000..23b6207 --- /dev/null +++ b/Vue/Contrat/index.php @@ -0,0 +1,81 @@ +titre = "Tâches - Editions contrats"; + $codeTypeContrat = $_SESSION['codeTypeContrat']; + + $prestationPossible = isset($prestationPossible) ? $prestationPossible : '0'; + $estAgence = isset($estAgence) ? $estAgence : '0'; +?> + +nettoyer($_SESSION['numeroPolice_C'])?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
=>
=>
CONDITIONS GENERALES => GENERALS CONDITIONS
=>
+ + + + + + + + + + + + + + + + + + + + + + + + + +
=>
=>
=>
+ + +
+
diff --git a/Vue/Listeadherent/index.php b/Vue/Listeadherent/index.php new file mode 100644 index 0000000..f7c4bdc --- /dev/null +++ b/Vue/Listeadherent/index.php @@ -0,0 +1,102 @@ +nettoyer($police['prestationPossible']); +?> + +
+ +
+
+
+
+ +
+
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> +
+
+ +
+
+ + + + + + +
+
+ +

+
+
+ +
+
+ + [ + 'title' => _("Liste des assurés actifs (PDF)"), + 'id_date' => 'dateAnalyse', + 'id_div' => 'div_export_assures', + 'func' => 'imprimer_liste_assures_date()', + 'icon' => 'fa-file-pdf' + ], + 'pop_exporter_liste_assures' => [ + 'title' => _("Exporter la liste (Excel)"), + 'id_date' => 'dateAnalyse_export', + 'id_div' => 'div_exporter_liste_assures', + 'func' => 'exporter_liste_assures_date()', + 'icon' => 'fa-file-excel' + ], + 'pop_liste_liste_assures_sans_format' => [ + 'title' => _("Liste brute (Sans format)"), + 'id_date' => 'dateAnalyse_sans_format', + 'id_div' => 'div_export_assures_sans_format', + 'func' => 'exporter_liste_assures_sans_format_date()', + 'icon' => 'fa-file-alt' + ] +]; + +foreach ($modals as $id => $cfg): +?> + + \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 5aea17a..9732711 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -568,14 +568,13 @@ $activeChildId = $menuData['child']; @@ -600,7 +599,7 @@ $activeChildId = $menuData['child']; - +