diff --git a/Bootstrap_new/css/style_office.css b/Bootstrap_new/css/style_office.css index 86c4deb..5c544f0 100644 --- a/Bootstrap_new/css/style_office.css +++ b/Bootstrap_new/css/style_office.css @@ -249,6 +249,7 @@ body.sidebar-collapsed .app-sidebar .nav-link:hover::after { .nav-link[aria-expanded="true"] .nav-arrow { transform: rotate(90deg); + transition: transform 0.3s; } .nav-submenu { @@ -862,6 +863,20 @@ body.sidebar-collapsed .nav-bar { padding: 1rem !important; font-size: 9pt; } + + .chart-container { + height: 60vh; + } + + .card-header { + flex-direction: column; + align-items: flex-start !important; + } + + .btn-export { + margin-top: 0.5rem; + align-self: flex-end; + } } /* Écrans larges : mêmes insets pour nav-tabs et content-area */ @@ -1045,7 +1060,9 @@ li i { margin-right:10px; color:#007bff; } #div_colleges_police, #div_ajout_adherent, #div_avenant, -#div_liste_adherent { +#div_liste_adherent, +#div_adherent, +#div_liste { background-color: var(--office-light); color: var(--office-dark); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; @@ -1059,7 +1076,9 @@ li i { margin-right:10px; color:#007bff; } #div_colleges_police .card, #div_ajout_adherent .card, #div_avenant .card, -#div_liste_adherent .card{ +#div_liste_adherent .card, +#div_adherent .card, +#div_liste .card{ border: 1px solid var(--office-border); border-radius: 2px; /* Office style is more rectangular */ } @@ -1070,7 +1089,9 @@ li i { margin-right:10px; color:#007bff; } #div_colleges_police .card-header, #div_ajout_adherent .card-header, #div_avenant .card-header, -#div_liste_adherent .card-header{ +#div_liste_adherent .card-header +#div_adherent .card-header, +#div_adherent .card-header{ border-bottom: 1px solid var(--office-border) !important; background-color: white; color: var(--office-dark); @@ -1428,4 +1449,20 @@ li i { margin-right:10px; color:#007bff; } padding: 15px; border-radius: 8px; background-color: white; -} \ No newline at end of file +} + +/* Styles communs pour tous les graphiques */ +.chart-container { + position: relative; + width: 100%; + min-height: 300px; +} + +.legend-text { + vertical-align: middle; +} + +.btn-export { + padding: 0.25rem 0.5rem; + font-size: 0.75rem; +} diff --git a/Controleur/ControleurAjaxfactureconspop.php b/Controleur/ControleurAjaxfactureconspop.php new file mode 100644 index 0000000..7c2c83b --- /dev/null +++ b/Controleur/ControleurAjaxfactureconspop.php @@ -0,0 +1,72 @@ +facture = new Facture(); + } + + public function index() + { + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $_SESSION['idFacture_C'] = $idFacture; + + $facture = $this->facture->consulterfacturefacture($idFacture) ; + + $this->genererVueAjax(array('facture' => $facture)); + } + + public function feuillemaladie() + { + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ; + + $diagnostics = $this->facture->consulterfacturediagnostics($idFacture); + + $this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics)); + } + + public function prestationactes() + { + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $prestations = $this->facture->consulterfactureprestationactes($idFacture) ; + + $this->genererVueAjax(array('prestations' => $prestations)); + } + + public function medicaments() + { + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $medicaments = $this->facture->consulterfacturemedicaments($idFacture) ; + + $this->genererVueAjax(array('medicaments' => $medicaments)); + } + + public function geds() + { + unset($_FILES['fichier_upload']); + + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $geds = $this->facture->getgedfacture($idFacture); + + $this->genererVueAjax(array('geds' => $geds)); + } + + public function verres() + { + $idFacture = $this->requete->getParametreFormulaire("idFacture"); + + $verres = $this->facture->consulterfactureverres($idFacture) ; + + $this->genererVueAjax(array('verres' => $verres)); + } + +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxhabilitation.php b/Controleur/ControleurAjaxhabilitation.php new file mode 100755 index 0000000..4c798fe --- /dev/null +++ b/Controleur/ControleurAjaxhabilitation.php @@ -0,0 +1,150 @@ +utilisateur = new Utilisateur(); + } + + public function index() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $menus_accessibles = $this->utilisateur->getMenusAccessiblesProfil($codeProfil); + + $menus_non_accessibles = $this->utilisateur->getMenusNonAccessiblesProfil($codeProfil); + + $this->genererVueAjax(array('menus_accessibles' => $menus_accessibles, 'menus_non_accessibles' => $menus_non_accessibles)); + } + + + public function ajouterunmenuprofilrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->ajouterunmenuprofilrh($codeProfil, $codeMenu); + } + + + public function retirerunmenuprofilrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->retirerunmenuprofilrh($codeProfil, $codeMenu); + } + + + public function ajoutertousmenusprofilrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $this->utilisateur->ajoutertousmenusprofilrh($codeProfil); + } + + + public function retirertousmenuprofilrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $this->utilisateur->retirertousmenuprofilrh($codeProfil); + } + + + public function afficheraccessousmenusass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeModule = $this->requete->getParametreFormulaire("codeModule"); + $vue = $this->requete->getParametreFormulaire("vue"); + + $menus_accessibles = $this->utilisateur->getSousMenusAccessiblesVue($codeProfil, $vue); + $menus_non_accessibles = $this->utilisateur->getSousMenusNonAccessiblesVue($codeProfil,$vue); + + $this->genererVueAjax(array('menus_accessibles' => $menus_accessibles, 'menus_non_accessibles' => $menus_non_accessibles, + 'codeModule' => $codeModule)); + } + + public function ajoutertoussousmenusass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $vue = $this->requete->getParametreFormulaire("vue"); + + $this->utilisateur->ajoutertoussousmenusass($codeProfil, $vue); + } + + public function retirertoussousmenusass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $vue = $this->requete->getParametreFormulaire("vue"); + + $this->utilisateur->retirertoussousmenusass($codeProfil, $vue); + } + + public function ajouterunsousmenusass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $vue = $this->requete->getParametreFormulaire("vue"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->ajouterunsousmenusass($codeProfil, $vue, $codeMenu); + } + + public function retirerunsousmenusass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $vue = $this->requete->getParametreFormulaire("vue"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->retirerunsousmenusass($codeProfil, $vue, $codeMenu); + } + + public function creerprofilass() + { + $libelle = $this->requete->getParametreFormulaire("libelle"); + $libelleEng = $this->requete->getParametreFormulaire("libelleEng"); + + $this->utilisateur->creerprofilass($libelle, $libelleEng); + } + + public function transfererdroitsprofilassureur() + { + $codeProfilSource = $this->requete->getParametreFormulaire("codeProfilSource"); + $codeProfilDest = $this->requete->getParametreFormulaire("codeProfilDest"); + + $this->utilisateur->transfererdroitsprofilassureur($codeProfilSource, $codeProfilDest); + + // $this->genererVueAjax(); + } + + public function batchviderprofilass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $this->utilisateur->batchviderprofilass($codeProfil); + } + + public function batchattribuerdroitsreferenceass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $this->utilisateur->batchattribuerdroitsreferenceass($codeProfil); + } + + public function ajaxlisteusersass() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $nom = $this->requete->getParametreFormulaire("nom"); + $prenoms = $this->requete->getParametreFormulaire("prenoms"); + $codePointVente = $this->requete->getParametreFormulaire("codePointVente"); + + $users = $this->utilisateur->getusersassueurfiltre($codeProfil, $nom, $prenoms, $codePointVente); + + $this->genererVueAjax(array('users' => $users)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlisterpolicesclient.php b/Controleur/ControleurAjaxlisterpolicesclient.php new file mode 100644 index 0000000..f39af48 --- /dev/null +++ b/Controleur/ControleurAjaxlisterpolicesclient.php @@ -0,0 +1,20 @@ +police = new Police(); + } + + public function index() + { + $vue = $this->requete->getParametreFormulaire("vue"); + $polices = $this->police->getPoliceRh(); + + $this->genererVueAjax(array('vue' => $vue, 'polices' => $polices)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxsaisirpassnewuser.php b/Controleur/ControleurAjaxsaisirpassnewuser.php new file mode 100755 index 0000000..59123de --- /dev/null +++ b/Controleur/ControleurAjaxsaisirpassnewuser.php @@ -0,0 +1,14 @@ +requete->getParametreFormulaire("codeModeGenerationPass"); + + $this->genererVueAjax(array('codeModeGenerationPass' => $codeModeGenerationPass)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxuserrhclient.php b/Controleur/ControleurAjaxuserrhclient.php new file mode 100755 index 0000000..20c72c5 --- /dev/null +++ b/Controleur/ControleurAjaxuserrhclient.php @@ -0,0 +1,89 @@ +client = new Client(); + } + + public function index() + { + $this->genererVueAjax(); + } + + + public function reinitpaswd() + { + $codeUtilisateur = $this->requete->getParametreFormulaire("codeUtilisateur"); + + $this->client->reinitpaswd($codeUtilisateur); + } + + public function desactiver() + { + $codeUtilisateur = $this->requete->getParametreFormulaire("codeUtilisateur"); + + $this->client->desactiver($codeUtilisateur); + } + + public function activer() + { + $codeUtilisateur = $this->requete->getParametreFormulaire("codeUtilisateur"); + + $this->client->activer($codeUtilisateur); + } + + + public function enregistrermodifuser() + { + $idUtilisateur = $this->requete->getParametreFormulaire("idUtilisateur"); + $nom = $this->requete->getParametreFormulaire("nom"); + $prenoms = $this->requete->getParametreFormulaire("prenoms"); + $actif = $this->requete->getParametreFormulaire("actif"); + $actVisible = $this->requete->getParametreFormulaire("actVisible"); + $codeLangue = $this->requete->getParametreFormulaire("codeLangue"); + $AffectionVisible = $this->requete->getParametreFormulaire("AffectionVisible"); + + $telephone = $this->requete->getParametreFormulaire("telephone"); + $email = $this->requete->getParametreFormulaire("email"); + + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $this->client->enregistrermodifuser($idUtilisateur, $nom, $prenoms, $actif, $actVisible, + $codeLangue, $AffectionVisible, $telephone, $email, $codeProfil); + } + + public function creeruser() + { + $codeUtilisateur = $this->requete->getParametreFormulaire("codeUtilisateur"); + $nom = $this->requete->getParametreFormulaire("nom"); + $prenoms = $this->requete->getParametreFormulaire("prenoms"); + $telephone = $this->requete->getParametreFormulaire("telephone"); + $email = $this->requete->getParametreFormulaire("email"); + $motPass = $this->requete->getParametreFormulaire("motPass"); + $codeLangue = $this->requete->getParametreFormulaire("codeLangue"); + $actVisible = $this->requete->getParametreFormulaire("actVisible"); + $AffectionVisible = $this->requete->getParametreFormulaire("AffectionVisible"); + + $codeModeGenerationPass = $this->requete->getParametreFormulaire("codeModeGenerationPass"); + $codeModeEnvoiPass = $this->requete->getParametreFormulaire("codeModeEnvoiPass"); + + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + + if($this->client->existelogin($codeUtilisateur)) + { + $this->genererVueAjax(array('uniciteLogin' => "0", 'msgErreur' => "Login $codeUtilisateur déjà utilisé!")); + } + else + { + $this->client->creeruser($codeUtilisateur, $nom, $prenoms, $telephone, $email, $motPass, $codeLangue, $actVisible, + $AffectionVisible, $codeModeGenerationPass, $codeModeEnvoiPass, $codeProfil); + + $this->genererVueAjax(array('uniciteLogin' => "1", 'msgErreur' => "Utlisateur $codeUtilisateur créé avec succès!")); + } + } +} \ No newline at end of file diff --git a/Controleur/ControleurFicheadherent.php b/Controleur/ControleurFicheadherent.php index b5ef345..cc353d2 100644 --- a/Controleur/ControleurFicheadherent.php +++ b/Controleur/ControleurFicheadherent.php @@ -21,6 +21,7 @@ class ControleurFicheadherent extends Controleur { $_SESSION['modeDevis'] = "0"; } + public function index() { $idPolice = $_SESSION['idPolice_C']; @@ -37,9 +38,48 @@ class ControleurFicheadherent extends Controleur { $_SESSION['controlerPlafondBeneficiaire'] = "0"; $limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent); + + $prestationsParMois = $this->adherent->getPrestationsmensuelles($idAdherent); + $prestationsParLiens = $this->adherent->getPrestationsLiensParente($idAdherent); + + // Prestations par mois + $tabPrestationsParMois = [ + 'mois' => array_column($prestationsParMois, 'mois'), + 'consos' => array_column($prestationsParMois, 'consommationAdherent') + ]; + + // Prestations par liens de parenté + $tabPrestationsParLiens = [ + 'lienparente' => array_column($prestationsParLiens, 'lienparente'), + 'consos_liens' => array_column($prestationsParLiens, 'consommation') + ]; + + $nbreLienParente = count($tabPrestationsParLiens['lienparente']); + + // Consommations par garanties + $tabConsoParGaranties = [ + 'garanties' => array_column($garantieadherents, 'codeGarantie'), + 'depenses' => array_column($garantieadherents, 'consommationFamille'), + 'plafonds' => array_column($garantieadherents, 'plafondFamille') + ]; + + // Encodage JSON + $dataConsoParMois = json_encode($tabPrestationsParMois, JSON_NUMERIC_CHECK); + $dataConsoParLiens = json_encode($tabPrestationsParLiens, JSON_NUMERIC_CHECK); + $dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK); + - $this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'totalbeneficiaires' => $totalbeneficiaires, - 'garantieadherents' => $garantieadherents, 'limite_adherent' => $limite_adherent)); + $this->genererVue(array( + 'adherent' => $adherent, + 'beneficiaires' => $beneficiaires, + 'totalbeneficiaires' => $totalbeneficiaires, + 'garantieadherents' => $garantieadherents, + 'limite_adherent' => $limite_adherent, + 'dataConsoParMois' => $dataConsoParMois, + 'dataConsoParLiens' => $dataConsoParLiens, + 'dataConsoParGaranties' => $dataConsoParGaranties, + 'nbreLienParente' => $nbreLienParente + )); } public function supprimer() { diff --git a/Controleur/ControleurFichebeneficiaire.php b/Controleur/ControleurFichebeneficiaire.php index d0188c7..4775c5a 100644 --- a/Controleur/ControleurFichebeneficiaire.php +++ b/Controleur/ControleurFichebeneficiaire.php @@ -202,9 +202,35 @@ class ControleurFichebeneficiaire extends Controleur $limite_beneficiaire = $this->garantieadherent->getLimitesBeneficiaire($idBeneficiaire); $limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent); + + $prestationsParMois = $this->beneficiaire->getPrestationsmensuelles($idBeneficiaire); + + // Extraction directe des colonnes avec array_column + $tabConsoParMois = [ + 'mois' => array_column($prestationsParMois, 'mois'), + 'consos' => array_column($prestationsParMois, 'consommationBeneficiaire') + ]; + + $tabConsoParGaranties = [ + 'garanties' => array_column($garantieadherents, 'codeGarantie'), + 'depenses' => array_column($garantieadherents, 'consommation'), + 'plafonds' => array_column($garantieadherents, 'plafond') + ]; + + // Encodage JSON + $dataConsoParMois = json_encode($tabConsoParMois, JSON_NUMERIC_CHECK); + $dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK); - $this->genererVue(array('beneficiaire' => $beneficiaire, 'message' => $message, 'nouveau_fichier' => $nouveau_fichier, - 'garantieadherents' => $garantieadherents, 'limite_beneficiaire' => $limite_beneficiaire, 'limite_adherent' => $limite_adherent)); + $this->genererVue(array( + 'beneficiaire' => $beneficiaire, + 'message' => $message, + 'nouveau_fichier' => $nouveau_fichier, + 'garantieadherents' => $garantieadherents, + 'limite_beneficiaire' => $limite_beneficiaire, + 'limite_adherent' => $limite_adherent, + 'dataConsoParMois' => $dataConsoParMois, + 'dataConsoParGaranties' => $dataConsoParGaranties + )); } public function supprimer() { diff --git a/Controleur/ControleurFicheuserrhclient.php b/Controleur/ControleurFicheuserrhclient.php new file mode 100755 index 0000000..08570cd --- /dev/null +++ b/Controleur/ControleurFicheuserrhclient.php @@ -0,0 +1,45 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Ficheuserrhclient"); + + $this->client = new Client(); + $this->oui_non = new Ouinon(); + $this->langue = new Langue(); + } + + + public function index() + { + $idUtilisateur = $this->requete->getParametreFormulaire("id"); + $user_actif = $this->oui_non->getListe(); + $user_actVisible = $this->oui_non->getListe(); + $langue = $this->langue->getListe(); + $user_AffectionVisible = $this->oui_non->getListe(); + + $user_rh = $this->client->getunuserrhclient($idUtilisateur); + $user_profil = $this->client->getListeProfilRh(); + + $this->genererVue(array( + 'user_rh' => $user_rh, + 'user_actif' => $user_actif, + 'user_actVisible' => $user_actVisible, + 'langue' => $langue, + 'user_AffectionVisible' => $user_AffectionVisible, + 'user_profil' => $user_profil + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurNouveluserrh.php b/Controleur/ControleurNouveluserrh.php new file mode 100755 index 0000000..cf8bac7 --- /dev/null +++ b/Controleur/ControleurNouveluserrh.php @@ -0,0 +1,51 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Nouveluserrh'); + + $this->client = new Client(); + $this->langue = new Langue(); + $this->oui_non = new Ouinon(); + $this->societeuser = new Societeuser(); + } + + public function index() + { + $idClient = $_SESSION['idClient_C']; + //$gc = $this->client->getGcAssureurCode($codeGcAssureur); + $langue = $this->langue->getListe(); + $user_actVisible = $this->oui_non->getListe(); + $user_AffectionVisible = $this->oui_non->getListe(); + + $user_profil = $this->client->getListeProfilRh(); + + $paramsgenerationpass = $this->societeuser->getparamsgenerationpass(); + $modeenvoipass = $this->societeuser->getmodeenvoipass(); + $modegenerationpass = $this->societeuser->getmodegenerationpass(); + + $this->genererVue(array( + //'gc' => $gc, + 'langue' => $langue, + 'user_actVisible' => $user_actVisible, + 'paramsgenerationpass' => $paramsgenerationpass, + 'modeenvoipass' => $modeenvoipass, + 'modegenerationpass' => $modegenerationpass, + 'user_AffectionVisible' => $user_AffectionVisible, + 'user_profil' => $user_profil + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurRoles.php b/Controleur/ControleurRoles.php new file mode 100644 index 0000000..ce6f74f --- /dev/null +++ b/Controleur/ControleurRoles.php @@ -0,0 +1,22 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Roles'); + + $this->utilisateur = new Utilisateur(); + } + public function index() + { + $profil = $this->utilisateur->getListeProfilCode(); + + $this->genererVue(array('profil' => $profil)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurUsersrhclient.php b/Controleur/ControleurUsersrhclient.php new file mode 100755 index 0000000..09d5ffd --- /dev/null +++ b/Controleur/ControleurUsersrhclient.php @@ -0,0 +1,26 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Usersrhclient"); + + $this->client = new Client(); + + } + public function index() { + $idClient = $_SESSION['idClient_C']; + + $client = $this->client->getClientId($idClient); + + $users = $this->client->getusersrhclient($idClient); + + $this->genererVue(array('client' => $client, 'users' => $users)); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index c40341a..2566e1d 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -42,8 +42,17 @@ $(function() { // Initialisation des composants au chargement de la page appliquerDataTable('.tabliste'); - const vueOuverte = $("#vue").val(); + //const vueOuverte = $("#vue").val(); + let nomForm = $("#nomForm").val(); + /* + if(nomForm == "nouveluserrh") + { + ajax_saisir_pass_new_user(); + $("#nom").focus(); + } + */ + /* if(vueOuverte === "Accueil"){ reset_graphique(); @@ -1356,7 +1365,17 @@ function imprimer_contrat() function imprimer_cp(lienEtat) { var div_export = $('#div_export_a'); - div_export.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + div_export.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); donnees = 'lienEtat='+lienEtat; @@ -1454,19 +1473,21 @@ function enregistrer_avenant() v_msg="Confirmez-vous cet avenant?"; v_msgEng="Do you confirm this amendment to the contract?"; - /* - if(confirm_ebene(v_msg, v_msgEng)) - { - var div_attente = $('#div_attente'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - $("#btn_enreg").click(); - } - */ + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { if (isConfirmed) { - var div_attente = $('#div_attente'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - $("#btn_enreg").click(); + var div_attente = $('#div_attente'); + + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); } }); @@ -1476,8 +1497,18 @@ function pop_afficher_selection_retrait() { var div_selection_assure = $('#div_selection_assure'); - div_selection_assure.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + div_selection_assure.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ url: $("#racineWeb").val()+"Ajaxselectionretrait/", type : 'post', @@ -1627,7 +1658,16 @@ function exporter_modele_assure() var div_export = $('#div_exporter_liste_assures'); - div_export.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + div_export.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/exportermodele/", @@ -1906,7 +1946,16 @@ function ebene_confirmer_photo_face() // OK return; } - $("#div_wait_face_ebene").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_wait_face_ebene").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); compare_face = $("#compare_face").val(); @@ -2000,7 +2049,16 @@ function ebene_supprimer_photo_face() // OK $("ebene_take_photo_face").prop('disabled', true); $("motif").prop('disabled', true); - $("#div_wait_face_ebene").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_wait_face_ebene").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); compare_face = $("#compare_face").val(); @@ -2058,7 +2116,16 @@ function histsupprface() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprface/", @@ -2084,8 +2151,17 @@ function histsupprface_export() donnees = 'debut='+debut+'&fin='+fin; donnees_retour = ""; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprfaceexport/", type : 'post', @@ -2111,8 +2187,17 @@ function histo_enrollement_face() donnees = 'debut='+debut+'&fin='+fin; donnees_retour = ""; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprfaceexport/historiqueenrollement/", type : 'post', @@ -2135,8 +2220,17 @@ function afficher_liste_log_reconnaissance_faciale() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogreconnaissancefaciale/", type : 'post', @@ -2159,7 +2253,16 @@ function exporter_log_reconnaissance_faciale() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2185,8 +2288,17 @@ function afficher_liste_log_register_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogregisterface/", type : 'post', @@ -2209,7 +2321,16 @@ function exporter_log_register_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2235,8 +2356,17 @@ function afficher_liste_log_remove_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogremoveface/", type : 'post', @@ -2259,7 +2389,16 @@ function exporter_log_remove_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2296,8 +2435,17 @@ function afficher_liste_logconnexion() donnees = 'login='+login+'&ipConnexion='+ipConnexion+'&debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogconnexion/", type : 'post', @@ -2322,7 +2470,16 @@ function exporter_liste_logconnexion() donnees = 'login='+login+'&ipConnexion='+ipConnexion+'&debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2469,6 +2626,17 @@ function prorater_prime_beneficiaire() donnees = '&dateEntree='+dateEntree; donnees += '&fraisCarte='+fraisCarte; donnees += '&prorata='+prorata; + + $("#div_prime").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxproraterprimebeneficiaire/", @@ -2683,8 +2851,17 @@ function calculer_prime_inmportation() var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/calculerprimeimportee/", type: 'POST', @@ -2762,8 +2939,17 @@ function incorporer_assures_inmportes() { var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", type: 'POST', @@ -2826,8 +3012,16 @@ function afficher_adherent_importee() var div_attente = $('#div_adherents_importes'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/afficheradherentimportee/", @@ -3065,8 +3259,18 @@ function incorporer_assures_inmportes() if (isConfirmed) { var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", type: 'POST', @@ -3085,30 +3289,6 @@ function incorporer_assures_inmportes() } }); - /* - if(confirm_ebene(v_msg, v_msgEng)) - { - var div_attente = $('#div_liste_assure_importe'); - - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - - $.ajax({ - url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", - type: 'POST', - // data: donnees, - success: function(data) { - v_msg="Incorporation terminée avec succès!"; - v_msgEng="Incorporation completed successfully!"; - alert_ebene(v_msg, v_msgEng); - }, - error: function(data) { - }, - complete: function() { - afficher_police_id(); - } - }); - } - */ } function afficher_police_id() @@ -3166,7 +3346,16 @@ function afficher_garantieadherent_entete_contrat() // donnees = 'exercieReference='+exercieReference; donnees = 'idEntetecontrat='+idEntetecontrat; - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxplafondadherent/", @@ -3233,8 +3422,17 @@ function listerfacturefamille() donnees = 'd1='+d1+'&d2='+d2; - $("#div_dossiers").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_dossiers").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxfacturesfamille/", type : 'post', @@ -3688,3 +3886,1045 @@ function liste_mouvemements_assures_client() } }); } + + +function consulter_facture_pop(idFacture) +{ + $("#div_facture_detail").html(''); + + $("#div_consulter_facture_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_consulter_facture_pop").html(data); + }, + error: function(data) { + }, + complete: function() { + $('#btn_pop_consulter_facture').click(); + } + }); +} + +function consulterfacturefeuillemaladie_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/feuillemaladie/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureprestationactes_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/prestationactes/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfacturemedicaments_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/medicaments/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureverres_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/verres/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureged_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/geds/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function lister_polices_client(id) { + const vues = { + 1: "Rechercherassure", + 2: "Syntheseconsopolice", + 3: "Sppolice" + }; + + vue = vues[id] || null; // null si id ne correspond à rien + + const modalEl = document.getElementById('pop_police'); + + // On déplace le modal directement sous s'il n'y est pas déjà. + // Cela permet de passer outre les z-index des conteneurs parents (Sidebar, Header). + if (modalEl.parentElement !== document.body) { + document.body.appendChild(modalEl); + } + + const racine = $("#racineWeb").val() || "/"; + const divPolice = document.getElementById('div_police'); + + /* =================================================== + * Préparation visuelle (Spinner) + * =================================================== */ + showLoader("#div_police", { size: 3 }); + + + /* =================================================== + * Initialisation de l'instance Bootstrap + * =================================================== */ + const modal = bootstrap.Modal.getOrCreateInstance(modalEl, { + backdrop: 'static', + keyboard: false + }); + + /* =================================================== + * Gestion de l'événement d'affichage et AJAX + * =================================================== */ + // On utilise 'shown.bs.modal' pour lancer l'AJAX une fois le modal visible + $(modalEl).one('shown.bs.modal', function () { + $.ajax({ + url: racine + "Ajaxlisterpolicesclient/", + type: 'POST', + data: { vue: vue }, + success: function (data) { + divPolice.innerHTML = data; + }, + error: function (xhr, status, error) { + divPolice.innerHTML = ` +
+ Erreur : Impossible de générer la liste des polices. + ${error} +
+ `; + } + }); + }); + + /* =================================================== + * 6. Affichage final + * =================================================== */ + modal.show(); +} + +function ajax_contexter_police(){ + idPolice = $("#idPolice").val(); + + donnees = 'idPolice='+idPolice; + $.ajax({ + url: $("#racineWeb").val()+"Ajaxcontextpolice/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + complete: function() { + + } + }); + +} + +function ouvrir_vue(vue) +{ + window.location.assign($("#racineWeb" ).val()+vue+"/"); +} + +function afficher_users_client_id(idUtilisateur) +{ + window.location.assign($("#racineWeb" ).val()+"Ficheuserrhclient/"+idUtilisateur+"/"); +} + +function retour_a_users_rh_client() +{ + window.location.assign($("#racineWeb" ).val()+"Usersrhclient/"); +} + +function verifMailValeur(v_mail) +{ + if (v_mail.length==0) + { + return true; + } + else + { + var regex = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$/; + if(!regex.test(v_mail)) + { + return false; + } + else + { + return true; + } + } +} + +function enregistrer_modif_user_rh() +{ + idUtilisateur = $("#idUtilisateur").val(); + nom = $("#nom").val(); + prenoms = $("#prenoms").val(); + actif = $("#actif").val(); + actVisible = "0"; + codeLangue = $("#codeLangueUser").val(); + AffectionVisible = "0"; + + telephone = $("#telephone").val(); + email = $("#email").val(); + + codeProfil = $("#codeProfil").val(); + + + if (nom<=" ") + { + v_msg="Veuillez saisir le nom!"; + v_msgEng="Please enter the name!"; + alert_ebene(v_msg, v_msgEng); + + $("#nom").focus(); + return; + } + + if (actif<=" ") + { + v_msg="Utilisateur actif oui ou non?"; + v_msgEng="Is the user active yes or no?"; + alert_ebene(v_msg, v_msgEng); + + $("#actif").focus(); + return; + } + + if(codeLangue<=" ") + { + v_msg="Veuillez indiquer la langue!"; + v_msgEng="Please select the language"; + alert_ebene(v_msg, v_msgEng); + + $("#codeLangueUser").focus(); + return; + } + + + if (codeProfil<=" ") + { + v_msg="Le profil utilisateur est obligatoire!"; + v_msgEng="The user profile is required!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + + if(!verifMailValeur(email)) + { + v_msg="Veuillez revoir l'adresse mail!"; + v_msgEng="Please review the email address!"; + alert_ebene(v_msg, v_msgEng); + + $("#email").focus(); + return; + } + + donnees = 'idUtilisateur=' + idUtilisateur; + donnees += '&nom=' + nom; + donnees += '&prenoms=' + prenoms; + donnees += '&actif=' + actif; + donnees += '&actVisible=' + actVisible; + donnees += '&codeLangue=' + codeLangue; + donnees += '&codeProfil=' + codeProfil; + donnees += '&AffectionVisible=' + AffectionVisible; + donnees += '&telephone='+telephone+'&email='+email; + + v_msg="Confirmez-vous ces modifications?"; + v_msgEng="Do you confirm these modifications?"; + + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + // L'utilisateur a confirmé + $.ajax({ + url: $("#racineWeb").val()+"Ajaxuserrhclient/enregistrermodifuser/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + //$('#div_test_gabarit').html(data); + }, + complete: function() { + retour_a_users_rh_client(); + } + }); + } else { + // L'utilisateur a annulé + console.log("Confirmation refusée"); + } + }); + +} + +function creer_user_rh_client() +{ + codeUtilisateur = $("#codeUtilisateur").val(); + codeUtilisateur = codeUtilisateur.trim(); + codeUtilisateur = supprimer_espace_string(codeUtilisateur); + codeUtilisateur = codeUtilisateur.toLowerCase(); + + codeModeGenerationPass = $("#codeModeGenerationPass").val(); + codeModeEnvoiPass = $("#codeModeEnvoiPass").val(); + + nom = $("#nom").val(); + prenoms = $("#prenoms").val(); + telephone = $("#telephone").val(); + email = $("#email").val(); + + codeProfil = $("#codeProfil").val(); + + codeLangue = $("#codeLangueUser").val(); + actVisible = "0"; + AffectionVisible = "0"; + + nvmdp = $("#nvmdp").val(); + cfnvmdp = $("#cfnvmdp").val(); + + if(nom<=" ") + { + v_msg="Veuillez indiquer le nom!"; + v_msgEng="Please enter the name!"; + alert_ebene(v_msg, v_msgEng); + + $("#nom").focus(); + return; + } + + + if(codeUtilisateur<=" ") + { + v_msg="Veuillez indiquer le login!"; + v_msgEng="Please enter the login!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeUtilisateur").focus(); + return; + } + + + if(codeLangue<=" ") + { + v_msg="Veuillez indiquer la langue!"; + v_msgEng="Please select the language"; + alert_ebene(v_msg, v_msgEng); + + $("#codeLangueUser").focus(); + return; + } + + if (codeProfil<=" ") + { + v_msg="Le profil utilisateur est obligatoire!"; + v_msgEng="The user profile is required!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + + if ((codeModeEnvoiPass=="1" || codeModeEnvoiPass=="2") && (telephone <=" ") ) + { + v_msg="Veuillez revoir le téléphone!"; + v_msgEng="Please review the phone!"; + alert_ebene(v_msg, v_msgEng); + + $("#telephone").focus(); + return; + } + + if ((codeModeEnvoiPass=="0" || codeModeEnvoiPass=="2") && (email <=" ") ) + { + v_msg="Veuillez revoir l'adresse mail!"; + v_msgEng="Please review the email address!"; + alert_ebene(v_msg, v_msgEng); + + $("#email").focus(); + return; + } + + if(codeModeGenerationPass=="0") + { + if(nvmdp<=" ") + { + v_msg="Veuillez indiquer le mot de passe!"; + v_msgEng="Please enter the password!"; + alert_ebene(v_msg, v_msgEng); + + $("#nvmdp").focus(); + return; + } + + if(nvmdp != cfnvmdp) + { + v_msg="Veuillez confirmer votre mot de passe!"; + v_msgEng="Please confirm your password!"; + alert_ebene(v_msg, v_msgEng); + + $("#cfnvmdp").focus(); + return; + } + } + + if(!verifMailValeur(email)) + { + v_msg="Veuillez revoir l'adresse mail!"; + v_msgEng="Please review the email address!"; + alert_ebene(v_msg, v_msgEng); + + $("#email").focus(); + return; + } + + motPass = nvmdp; + + donnees = 'codeUtilisateur='+codeUtilisateur; + donnees += '&nom='+nom+'&prenoms='+prenoms; + donnees += '&telephone='+telephone+'&email='+email+'&motPass='+motPass; + donnees += '&codeLangue='+codeLangue+'&actVisible='+actVisible; + donnees += '&AffectionVisible='+AffectionVisible; + donnees += '&codeModeGenerationPass='+codeModeGenerationPass; + donnees += '&codeModeEnvoiPass='+codeModeEnvoiPass; + donnees += '&codeProfil=' + codeProfil; + + v_msg="Confirmez-vous ce nouvel utilisateur?"; + v_msgEng="Do you confirm this new user?"; + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + $.ajax({ + url: $("#racineWeb").val()+"Ajaxuserrhclient/creeruser/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $('#div_unicite_login').html(data); + }, + complete: function() + { + uniciteLogin = $("#uniciteLogin").val(); + if(uniciteLogin==1) + { + v_msg="Utilisateur ( "+codeUtilisateur+" ) créé avec succès!"; + v_msgEng="User ( "+codeUtilisateur+" ) created succssfully!"; + alert_ebene(v_msg, v_msgEng); + + retour_a_users_rh_client(); + } + else + { + v_msg="Login " + codeUtilisateur +" déjà utilisé!"; + v_msgEng="Login " + codeUtilisateur +" already in use!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeUtilisateur").focus(); + } + } + }); + } + }); +} + +function reinitpaswd_user_rh(codeUtilisateur) +{ + v_msg="Confirmez-vous la réinitialisation?"; + v_msgEng="Do you confirm the reset?"; + + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + // L'utilisateur a confirmé + donnees = "codeUtilisateur="+codeUtilisateur; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxuserrhclient/reinitpaswd/", + + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + }, + complete: function() { + v_msg="Opération effectuée avec succès!"; + v_msgEng="Operation successfully completed"; + alert_ebene(v_msg, v_msgEng); + + users_gc(); + } + }); + return; + } else { + // L'utilisateur a annulé + v_msg="Opération annulée!"; + v_msgEng="Operation canceled!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + }); +} + + +function users_rh_client() +{ + window.location.assign($("#racineWeb" ).val()+"Usersrhclient/"); +} + +function desactiver_user_rh_client(codeUtilisateur) +{ + v_msg="Confirmez-vous la désactivation?"; + v_msgEng="Do you confirm the deactivation?"; + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + // L'utilisateur a confirmé + donnees = "codeUtilisateur="+codeUtilisateur; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxuserrhclient/desactiver/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + }, + complete: function() { + v_msg="Opération effectuée avec succès!"; + v_msgEng="Operation successfully completed"; + alert_ebene(v_msg, v_msgEng); + + users_rh_client(); + } + }); + return; + } else { + // L'utilisateur a annulé + v_msg="Opération annulée!"; + v_msgEng="Operation canceled!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + }); + +} + +function activer_user_rh_client(codeUtilisateur) +{ + v_msg="Confirmez-vous l\'activation?"; + v_msgEng="Do you confirm the activation?"; + + confirm_ebene(v_msg, v_msgEng) + .then((isConfirmed) => { + if (isConfirmed) { + // L'utilisateur a confirmé + donnees = "codeUtilisateur="+codeUtilisateur; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxuserrhclient/activer/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + }, + complete: function() { + v_msg="Opération effectuée avec succès!"; + v_msgEng="Operation successfully completed"; + alert_ebene(v_msg, v_msgEng); + + users_rh_client(); + } + }); + return; + } else { + // L'utilisateur a annulé + v_msg="Opération annulée!"; + v_msgEng="Operation canceled!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + }); + +} + +function ajax_saisir_pass_new_user() +{ + codeModeGenerationPass = $("#codeModeGenerationPass").val(); + + donnees = 'codeModeGenerationPass='+codeModeGenerationPass; + + $("#div_passwd").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxsaisirpassnewuser/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_passwd").html(data); + }, + error: function(data) { + }, + complete: function() + { + if(codeModeGenerationPass=="0") + { + $("#nvmdp").focus(); + } + else + { + $("#btn_enreg").focus(); + } + } + }); +} + +function controle_longeur_passe(controle) +{ + longueur = controle.value.length; + + if(longueur==0) + { + return false; + } + + if(longueur<8) + { + v_msg="8 caractères minimum exigé!"; + v_msgEng="8 characters minmum required!"; + alert_ebene(v_msg, v_msgEng); + + controle.value=""; + controle.focus(); + return false; + } +} + +function controle_new_pass() +{ + if ($("#nvmdp" ).val()<=' ') + { + v_msg="Veuillez saisir un mot de passe!"; + v_msgEng="Please enter a password!"; + alert_ebene(v_msg, v_msgEng); + + $("#nvmdp").focus(); + return false; + } + + longueur = $("#nvmdp").val().length; + + if(longueur>0 && longueur<8) + { + v_msg="8 caractères minimum exigé!"; + v_msgEng="8 characters minmum required!"; + alert_ebene(v_msg, v_msgEng); + + $("#nvmdp").focus(); + return false; + } + + if ($("#cfnvmdp" ).val()!=$("#nvmdp" ).val()) + { + v_msg="Veuillez confirmer votre mot de passe!"; + v_msgEng="Please confirm your password!"; + alert_ebene(v_msg, v_msgEng); + + $("#nvmdp").focus(); + return false; + } +} + +function supprimer_espace_string(p_mot) +{ + p_mot = p_mot.trim(); + p_mot = p_mot.replace(/ /g, ""); + return p_mot; +} + + +function afficher_menu_principal_profil_rh() +{ + codeProfil=$("#codeProfil").val(); + + if (codeProfil<=" ") + { + v_msg="Veuillez sélectionner un profil!"; + v_msgEng="Please select a user profile!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + + var div_attente = $('#div_menu_profil'); + + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + div_attente.html(data); + }, + complete: function() { + } + }); +} + +function ajouter_tous_menus_principal_profil_rh() +{ + codeProfil=$("#codeProfil").val(); + + if (codeProfil<=" ") + { + v_msg="Veuillez sélectionner un profil!"; + v_msgEng="Please select a user profile!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/ajoutertousmenusprofilrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_principal_profil_rh(); + } + }); +} + +function ajouter_un_menu_principal_profil_rh(codeMenu) +{ + codeProfil=$("#codeProfil").val(); + + if (codeProfil<=" ") + { + v_msg="Veuillez sélectionner un profil!"; + v_msgEng="Please select a user profile!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil+'&codeMenu='+codeMenu; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/ajouterunmenuprofilrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_principal_profil_rh(); + } + }); +} + +function retirer_tous_menus_principal_profil_rh() +{ + codeProfil=$("#codeProfil").val(); + + if (codeProfil<=" ") + { + v_msg="Veuillez sélectionner un profil!"; + v_msgEng="Please select a user profile!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/retirertousmenuprofilrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_principal_profil_rh(); + } + }); +} + +function retirer_un_menu_principal_profil_rh(codeMenu) +{ + codeProfil=$("#codeProfil").val(); + + if (codeProfil<=" ") + { + v_msg="Veuillez sélectionner un profil!"; + v_msgEng="Please select a user profile!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeProfil").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil+'&codeMenu='+codeMenu; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/retirerunmenuprofilrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_principal_profil_rh(); + } + }); +} diff --git a/Modele/Adherent.php b/Modele/Adherent.php index 41bf3f0..aa930a4 100755 --- a/Modele/Adherent.php +++ b/Modele/Adherent.php @@ -846,5 +846,34 @@ class Adherent extends Modele { $resultat = $this->executerRequete($sql, array($idAdherent)); return $resultat->fetch(PDO::FETCH_ASSOC); } + + // Ajouté par Sorel le 12-01-2026 => Gestion des graphiques de la famille + + public function getPrestationsmensuelles($idAdherent){ + + if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ + $sql = 'call prestations_mensuelles_famille_eng(?)'; + }else{ + $sql = 'call prestations_mensuelles_famille(?)'; + } + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getPrestationsLiensParente($idAdherent){ + + if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ + + $sql = 'call prestations_lienparente_famille_eng(?)'; + }else{ + $sql = 'call prestations_lienparente_famille(?)'; + } + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Modele/Beneficiaire.php b/Modele/Beneficiaire.php index c13d2be..b6b4894 100755 --- a/Modele/Beneficiaire.php +++ b/Modele/Beneficiaire.php @@ -1644,5 +1644,18 @@ class Beneficiaire extends Modele { return $resultat->fetch(PDO::FETCH_ASSOC); } + + public function getPrestationsmensuelles($idBeneficiaire){ + + if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ + $sql = 'call prestations_mensuelles_beneficiaire_eng(?)'; + }else{ + $sql = 'call prestations_mensuelles_beneficiaire(?)'; + } + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Modele/Client.php b/Modele/Client.php index 2de56de..1fd8153 100755 --- a/Modele/Client.php +++ b/Modele/Client.php @@ -287,4 +287,106 @@ class Client extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getusersrhclient($idClient) + { + $sql = 'call sp_c_get_users_rh(?)'; + + $resultat = $this->executerRequete($sql, array($idClient)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getunuserrhclient($idUtilisateur) + { + $sql = 'call sp_un_user_rh_client(?)'; + + $resultat = $this->executerRequete($sql, array($idUtilisateur)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getListeProfilRh() + { + if (est_anglophone()){ + $sql = 'call sp_get_liste_profil_rh_eng()'; + }else{ + $sql = 'call sp_get_liste_profil_rh()'; + } + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function enregistrermodifuser($idUtilisateur, $nom, $prenoms, $actif, $actVisible, $codeLangue, $AffectionVisible, $telephone, $email, $codeProfil) + { + $user = $_SESSION['login']; + + $sql = 'call sp_c_modifier_user_rh(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($idUtilisateur, $nom, $prenoms, $actif, $actVisible, $codeLangue, $AffectionVisible, $user, $telephone, $email, $codeProfil)); + } + + public function reinitpaswd($codeUtilisateur) + { + $sql = 'call sp_c_reinit_utilisateur_rh_client(?)'; + + $this->executerRequete($sql, array($codeUtilisateur)); + } + + public function desactiver($codeUtilisateur) + { + $sql = 'call sp_c_desactiver_utilisateur_rh_client(?)'; + + $this->executerRequete($sql, array($codeUtilisateur)); + } + + public function activer($codeUtilisateur) + { + $sql = 'call sp_c_activer_utilisateur_rh_client(?)'; + + $this->executerRequete($sql, array($codeUtilisateur)); + } + + public function existelogin($codeUtilisateur) { + $sql = 'select id FROM c_utilisateur WHERE (codeUtilisateur=?)'; + $resultat = $this->executerRequete($sql, array($codeUtilisateur)); + return ($resultat->rowCount() > 0); + } + + public function creeruser($codeUtilisateur, $nom, $prenoms, $telephone, $email, $motPass, $codeLangue, + $actVisible, $AffectionVisible, $codeModeGenerationPass, $codeModeEnvoiPass, $codeProfil) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + $idClient = $_SESSION['idClient_C']; + $numeroClient = $_SESSION['numeroClient_C']; + + $passAutoGen = ""; + + switch ($codeModeGenerationPass) + { + case "0": + $hash = password_hash($motPass, PASSWORD_DEFAULT); + break; + case "1": + $passAutoGen = uniqid(); + $hash = password_hash($passAutoGen, PASSWORD_DEFAULT); + $motPass = $passAutoGen; + break; + case 2: + $hash = ""; + break; + default: + $hash = password_hash($motPass, PASSWORD_DEFAULT); + } + + $sql = 'call sp_c_creer_user_rh_client(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $codeUtilisateur, $nom, $prenoms, $telephone, + $email, $hash, $codeLangue, $actVisible, $AffectionVisible, $user, $codeModeGenerationPass, + $passAutoGen, $codeModeEnvoiPass, $motPass, $codeProfil)); + } + } \ No newline at end of file diff --git a/Modele/Societeuser.php b/Modele/Societeuser.php index c57121b..1bb2da2 100755 --- a/Modele/Societeuser.php +++ b/Modele/Societeuser.php @@ -50,4 +50,50 @@ class Societeuser extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + public function getparamsgenerationpass() + { + $codeSociete = $_SESSION['codeSociete']; + + $sql = 'SELECT A.codeModeGenerationPass, B.libelle AS modegenerationpass, A.codeModeEnvoiPass FROM societeuser A + LEFT JOIN modegenerationpass B ON (B.codeModeGenerationPass=A.codeModeGenerationPass) WHERE (A.codeSociete=?) LIMIT 1;'; + + $resultat = $this->executerRequete($sql, array($codeSociete));; + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne; + } + + public function getmodeenvoipass() + { + if (est_anglophone()) + { + $sql = 'SELECT codeModeEnvoiPass AS `code`, libelleEng AS libelle FROM modeenvoipass ORDER BY ordre;'; + } + else + { + $sql = 'SELECT codeModeEnvoiPass AS `code`, libelle FROM modeenvoipass ORDER BY ordre;'; + } + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getmodegenerationpass() + { + if (est_anglophone()) + { + $sql = 'SELECT codeModeGenerationPass AS `code`, libelleEng AS libelle FROM modegenerationpass ORDER BY ordre;'; + } + else + { + $sql = 'SELECT codeModeGenerationPass AS `code`, libelle FROM modegenerationpass ORDER BY ordre;'; + } + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + } \ No newline at end of file diff --git a/Modele/Utilisateur.php b/Modele/Utilisateur.php index 4038d25..3c00b6c 100755 --- a/Modele/Utilisateur.php +++ b/Modele/Utilisateur.php @@ -129,4 +129,78 @@ class Utilisateur extends Modele { setcookie('lang', $codeNewLang, time()+365*24*3600, '/'); } + public function getListeProfilCode() + { + if (est_anglophone()) + { + $sql = 'SELECT codeProfil AS `code`, CONCAT(libelleEng, " ( ", codeProfil, " )") AS libelle FROM c_profil WHERE (codeSociete=?) ORDER BY libelleEng'; + } + else + { + $sql = 'SELECT codeProfil AS `code`, CONCAT(libelle, " ( ", codeProfil, " )") AS libelle FROM c_profil WHERE (codeSociete=?) ORDER BY libelle'; + } + + $liste = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function getMenusAccessiblesProfil($codeProfil) + { + $sql = "call sp_c_get_menus_accessibles_profil_rh(?, ?);"; + + $menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil)); + + return $menu->fetchAll(PDO::FETCH_ASSOC); + + } + + public function getMenusNonAccessiblesProfil($codeProfil) + { + $sql = "call sp_c_get_menus_non_accessibles_profil_rh(?, ?);"; + + $menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil)); + + return $menu->fetchAll(PDO::FETCH_ASSOC); + + } + + public function ajoutertousmenusprofilrh($codeProfil) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_ajouter_tous_menus_accessibles_profil_rh(?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $user)); + } + + public function ajouterunmenuprofilrh($codeProfil, $codeMenu) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_ajouter_un_menu_accessibles_profil_rh(?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeMenu, $user)); + } + + public function retirertousmenuprofilrh($codeProfil) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_retirer_tous_menus_accessibles_profil_rh(?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $user)); + } + + public function retirerunmenuprofilrh($codeProfil, $codeMenu) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_retirer_un_menu_accessibles_profil_rh(?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeMenu, $user)); + } } \ No newline at end of file diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php index 6ae68b0..8873ce4 100644 --- a/Vue/Accueil/index.php +++ b/Vue/Accueil/index.php @@ -32,12 +32,12 @@
: - +
: - +
@@ -48,7 +48,7 @@
: - +
: @@ -73,7 +73,6 @@

- - - - - - - \ No newline at end of file diff --git a/Vue/Ajaxbeneficiaireprimeadherent/index.php b/Vue/Ajaxbeneficiaireprimeadherent/index.php index ce96888..272dbb7 100644 --- a/Vue/Ajaxbeneficiaireprimeadherent/index.php +++ b/Vue/Ajaxbeneficiaireprimeadherent/index.php @@ -1,68 +1,76 @@ - - - - - - - - - - - - +
+
Total nettoyer($beneficiaires_total['primeNetteTotal'])) ?>nettoyer($beneficiaires_total['commissionTotal'])) ?>nettoyer($beneficiaires_total['commissionAutreTotal'])) ?>nettoyer($beneficiaires_total['accessoireTotal'])) ?>nettoyer($beneficiaires_total['taxeTotal'])) ?>nettoyer($beneficiaires_total['fraisCarteTotal'])) ?>nettoyer($beneficiaires_total['primeTtcTotal'])) ?>
+ + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ + nettoyer($beneficiaires_total['primeNetteTotal'])) ?>nettoyer($beneficiaires_total['commissionTotal'])) ?>nettoyer($beneficiaires_total['commissionAutreTotal'])) ?>nettoyer($beneficiaires_total['accessoireTotal'])) ?>nettoyer($beneficiaires_total['taxeTotal'])) ?>nettoyer($beneficiaires_total['fraisCarteTotal'])) ?>nettoyer($beneficiaires_total['primeTtcTotal'])) ?>
+ +
- -
+ nettoyer($beneficiaire['dateEffet'])) ?> + + nettoyer($beneficiaire['codeLienParente']) ?> + nettoyer($beneficiaire['numeroBeneficiaire']) ?> +
nettoyer($beneficiaire['beneficiaire']) ?>
+
nettoyer($beneficiaire['primeNette'])) ?>nettoyer($beneficiaire['commission'])) ?>nettoyer($beneficiaire['commissionAutre'])) ?>nettoyer($beneficiaire['accessoire'])) ?>nettoyer($beneficiaire['taxe'])) ?>nettoyer($beneficiaire['fraisCarte'])) ?> + nettoyer($beneficiaire['primeTtc'])) ?> +
Total nettoyer($beneficiaires_total['primeNetteTotal'])) ?>nettoyer($beneficiaires_total['commissionTotal'])) ?>nettoyer($beneficiaires_total['commissionAutreTotal'])) ?>nettoyer($beneficiaires_total['accessoireTotal'])) ?>nettoyer($beneficiaires_total['taxeTotal'])) ?>nettoyer($beneficiaires_total['fraisCarteTotal'])) ?>nettoyer($beneficiaires_total['primeTtcTotal'])) ?>
nettoyer($beneficiaire['dateEffet'])) ?> nettoyer($beneficiaire['codeLienParente']) ?> nettoyer($beneficiaire['numeroBeneficiaire']) ?>nettoyer($beneficiaire['beneficiaire']) ?>nettoyer($beneficiaire['primeNette'])) ?>nettoyer($beneficiaire['commission'])) ?>nettoyer($beneficiaire['commissionAutre'])) ?>nettoyer($beneficiaire['accessoire'])) ?>nettoyer($beneficiaire['taxe'])) ?>nettoyer($beneficiaire['fraisCarte'])) ?>nettoyer($beneficiaire['primeTtc'])) ?>
+ + + + nettoyer($beneficiaires_total['primeNetteTotal'])) ?> + nettoyer($beneficiaires_total['commissionTotal'])) ?> + nettoyer($beneficiaires_total['commissionAutreTotal'])) ?> + nettoyer($beneficiaires_total['accessoireTotal'])) ?> + nettoyer($beneficiaires_total['taxeTotal'])) ?> + nettoyer($beneficiaires_total['fraisCarteTotal'])) ?> + nettoyer($beneficiaires_total['primeTtcTotal'])) ?> + + + + + + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/feuillemaladie.php b/Vue/Ajaxfactureconspop/feuillemaladie.php new file mode 100644 index 0000000..7faa8cd --- /dev/null +++ b/Vue/Ajaxfactureconspop/feuillemaladie.php @@ -0,0 +1,136 @@ +
+ nettoyer($feuillemaladie['libelleAffectionEng']); + $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultationEng']); + } else { + $libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection']); + $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultation']); + } + + if($AffectionVisible != "1") { + $libelleAffection = $this->nettoyer($feuillemaladie['codeAffection']); + } + ?> + +
+ + +
+ +
+
+
+
+ +
nettoyer($feuillemaladie['numeroFeuilleMaladie']) ?>
+
+
+ +
nettoyer($feuillemaladie['dateConsultation'])) ?>
+
+
+ +
nettoyer($feuillemaladie['prestataire']) ?>
+
+
+ +
nettoyer($feuillemaladie['medecinConsultation']) ?>
+
+
+ +
+ $feuillemaladie['numeroBonConsultation'], + 'Phar.' => $feuillemaladie['numeroBonOrdonnance'], + 'Hosp.' => $feuillemaladie['numeroBonHospitalisation'], + 'Opt.' => $feuillemaladie['numeroBonOptique'], + 'Exam.' => $feuillemaladie['numeroBonExamen'], + 'Kine.' => $feuillemaladie['numeroBonKine'] + ]; + foreach($bons as $lbl => $val): ?> +
+
+
+
nettoyer($val) ?: '-' ?>
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + nettoyer($diagnostic['supprime']) == '1'); + $rowStyle = $isSupprime ? 'style="background-color: #fff5f5; opacity: 0.7;"' : ''; + + $codeAff = $this->nettoyer($diagnostic['codeAffection']); + $libAff = est_anglophone() ? $this->nettoyer($diagnostic['libelleAffectionEng']) : $this->nettoyer($diagnostic['libelleAffection']); + + if($AffectionVisible != "1") { $libAff = $codeAff; } + else { $libAff .= " $codeAff"; } + ?> + > + + + + + + + + +
+ nettoyer($diagnostic['dateSysteme'])) ?> + + + + + + nettoyer($diagnostic['codeUtilisateur']) ?> + + nettoyer($diagnostic['userSuppression']) ?> + + nettoyer($diagnostic['heueSuppression'])) ?> +
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/geds.php b/Vue/Ajaxfactureconspop/geds.php new file mode 100644 index 0000000..ef98615 --- /dev/null +++ b/Vue/Ajaxfactureconspop/geds.php @@ -0,0 +1,75 @@ +
+
+
+
+ + + + +
+ +
+ + + + + + + + + + + + + + + nettoyer($ged['idGed']); + $cheminFichier = $this->nettoyer($ged['cheminFichier']); + $nomFichier = $this->nettoyer($ged['nomOrigine']); + + // Détection de l'icône selon l'extension + $extension = strtolower(pathinfo($nomFichier, PATHINFO_EXTENSION)); + $icon = "fa-file-lines"; + if(in_array($extension, ['jpg', 'jpeg', 'png'])) $icon = "fa-file-image text-info"; + if($extension == 'pdf') $icon = "fa-file-pdf text-danger"; + ?> + + + + + + + + +
+ +
+
nettoyer($ged['dateSysteme'])) ?>
+
+
+
+ +
+ + ID: # +
+
+
+ "> + + +
+
+
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/index.php b/Vue/Ajaxfactureconspop/index.php new file mode 100644 index 0000000..6696ba5 --- /dev/null +++ b/Vue/Ajaxfactureconspop/index.php @@ -0,0 +1,162 @@ +
+
+
+
+
+ : + nettoyer($facture['idFacture']) ?> +
+
+ nettoyer($facture['etatfacture']) ?> +
+
+ : + nettoyer($facture['codeUtilisateur']) ?> +
+
+
+
+
+
+ +
nettoyer($facture['numeroBeneficiaire']) ?> - nettoyer($facture['beneficiaire']) ?>
+
+
+ +
nettoyer($facture['adherent']) ?>
+
Pol: nettoyer($facture['numeroPolice']) ?> | Cat: nettoyer($facture['codeProduit']) ?>
+
+
+ +
nettoyer($facture['prestataire']) ?>
+
+
+ +
nettoyer($facture['emailAdherent']) ?>
+
nettoyer($facture['telAdherent']) ?>
+
+
+
+
+ +
+
+
+
+
+
+
+
+
nettoyer($facture['fraisReel'])) ?>
+
+
+
+
nettoyer($facture['montantTm'])) ?>
+
+
+
+
nettoyer($facture['fraisExclu'])) ?>
+
+
+
+
nettoyer($facture['montantArembourser'])) ?>
+
+
+
+
+
+
+
nettoyer($facture['fraisRetenu'])) ?>
+
+
+
+
nettoyer($facture['montantRedresse'])) ?>
+
+
+
+
nettoyer($facture['montantApayer'])) ?>
+
+
+
+
nettoyer($facture['montantPaye'])) ?>
+
+
+
+
+
+
+
+
+
+
    +
  • + + ' : '' ?> +
  • +
  • + + ' : '' ?> +
  • +
  • + + nettoyer($facture['numeroDecompte']) ?> +
  • +
  • + + nettoyer($facture['numeroLotDecompte']) ?> +
  • +
+
+
+
+
+ +
+
+
+
+ : + nettoyer($facture['dateSysteme'])) ?> +
+
+ : + nettoyer($facture['userControle']) ?> +
+
+ : + nettoyer($facture['dateDecompte'])) ?> +
+
+ : + nettoyer($facture['heureReglement'])) ?> +
+
+
+
+ +
+ + diff --git a/Vue/Ajaxfactureconspop/medicaments.php b/Vue/Ajaxfactureconspop/medicaments.php new file mode 100644 index 0000000..8f6ac98 --- /dev/null +++ b/Vue/Ajaxfactureconspop/medicaments.php @@ -0,0 +1,85 @@ +
+ + +
+ + +
+ +
+ + + + + + + + + + + + + + nettoyer($medicament['ententePrealable']); + $libelle = $this->nettoyer($medicament['libelleMedicament']); + $code = $this->nettoyer($medicament['codeMedicament']); + + if($actVisible != "1") { $libelle = $code; } + + // Logique de statut pour l'entente préalable + $statusLabel = ""; + $rowClass = ""; + + switch($entente) { + case '1': // Accordé + $statusLabel = ''; + break; + case '2': // En attente / Attention + $statusLabel = ''; + break; + case '9': // Refusé + $statusLabel = ''; + $rowClass = "table-danger opacity-75"; + break; + } + ?> + + + + + + + + + + + +
+ nettoyer($medicament['dateSysteme'])) ?> + +
+ +
+
+ +
Code:
+ +
+
+
nettoyer($medicament['valeurActe'])) ?>nettoyer($medicament['quantite']) ?>nettoyer($medicament['fraisReel'])) ?>nettoyer($medicament['montantTm'])) ?> + nettoyer($medicament['montantArembourser'])) ?> +
+
+ +
+ Accordé + En attente + Refusé / Hors panier +
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/prestationactes.php b/Vue/Ajaxfactureconspop/prestationactes.php new file mode 100644 index 0000000..1bd3da3 --- /dev/null +++ b/Vue/Ajaxfactureconspop/prestationactes.php @@ -0,0 +1,105 @@ +
+ + +
+ + +
+ +
+ + + + + + + + + + + + + + + + nettoyer($prestation['codeTypePrestation']); + $entente = $this->nettoyer($prestation['ententePrealable']); + $auto = $this->nettoyer($prestation['autorisation']); + $valide = $this->nettoyer($prestation['valide']); + + $codeActe = $this->nettoyer($prestation['codeActe']); + $libelleActe = est_anglophone() ? $this->nettoyer($prestation['libelleActeEng']) : $this->nettoyer($prestation['libelleActe']); + + if($actVisible != "1") { $libelleActe = $codeActe; } + + // Logique de statut (Entente ou Autorisation) + $rowClass = ""; + $statusIcon = ""; + + if($entente == '9' || $auto == '9') { + $rowClass = "table-danger opacity-75"; + $statusIcon = ''; + } elseif($entente == '2' || $auto == '2') { + $rowClass = "table-warning bg-opacity-10"; + $statusIcon = ''; + } elseif($entente == '1' || $auto == '1') { + $statusIcon = ''; + } + ?> + + + + + + + + + + + + + +
Val.
+ nettoyer($prestation['dateSysteme'])) ?> + + + +
+ +
+ + +
Code:
+ +
+
+
nettoyer($prestation['valeurActe'])) ?>nettoyer($prestation['quantite']) ?>nettoyer($prestation['fraisReel'])) ?>nettoyer($prestation['montantTm'])) ?> + nettoyer($prestation['montantArembourser'])) ?> + + + + + + +
+
+ +
+
+ + + +
+
+ +
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/verres.php b/Vue/Ajaxfactureconspop/verres.php new file mode 100644 index 0000000..3488484 --- /dev/null +++ b/Vue/Ajaxfactureconspop/verres.php @@ -0,0 +1,74 @@ +
+ + +
+ + +
+ +
+ + + + + + + + + + + + + + + nettoyer($verre['libelleVerre']); + $codeOptique = $this->nettoyer($verre['codeOptique']); + + // Gestion de la confidentialité (Masquage du libellé si actVisible != 1) + if($actVisible != "1") { + $displayTitle = $codeOptique; + $subTitle = ""; + } else { + $displayTitle = $libelleVerre; + $subTitle = '
Code: '.$codeOptique.'
'; + } + ?> + + + + + + + + +
+ +
+
nettoyer($verre['dateSysteme'])) ?>
+
+
+
+
+ +
+
+ + +
+
+
+ nettoyer($verre['valeurActe'])) ?> +
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfacturesfamille/index.php b/Vue/Ajaxfacturesfamille/index.php index 76a9860..4912188 100644 --- a/Vue/Ajaxfacturesfamille/index.php +++ b/Vue/Ajaxfacturesfamille/index.php @@ -1,62 +1,70 @@ -
- - - - - - - - - - - - - - - - - - - nettoyer($facture['idFacture']); - $numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']); - $tiersPayant = $facture['tiersPayant']; - - $codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']); +
+
+
Type Date
+ + + + + + + + + + + + + + + nettoyer($facture['idFacture']); + $codeType = $this->nettoyer($facture['codeTypeFacture']); + + // Définition des couleurs par type + $badgeClass = "bg-secondary"; + switch($codeType) { + case 'PHAR': $badgeClass = "bg-success"; break; + case 'OPT' : $badgeClass = "bg-info text-dark"; break; + case 'LAB' : $badgeClass = "bg-warning text-dark"; break; + case 'SEA' : $badgeClass = "bg-primary"; break; + } - $numeroBon = $this->nettoyer($facture['numeroBonConsultation']); - - if($codeTypeFacture=="PHAR") - { - $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); - } - elseif($codeTypeFacture=="OPT") - { - $numeroBon = $this->nettoyer($facture['numeroBonOptique']); - } - elseif($codeTypeFacture=="LAB") - { - $numeroBon = $this->nettoyer($facture['numeroBonExamen']); - } - elseif($codeTypeFacture=="SEA") - { - $numeroBon = $this->nettoyer($facture['numeroBonKine']); - } - ?> - - - - - - - - - - - - - - - -
nettoyer($facture['dateSysteme'])) ?>nettoyer($facture['prestataire']) ?>nettoyer($facture['beneficiaire']) ?>nettoyer($facture['fraisReel'])) ?>nettoyer($facture['montantTm'])) ?>nettoyer($facture['montantArembourser'])) ?>nettoyer($facture['fraisExclu'])) ?>nettoyer($facture['fraisRetenu'])) ?>
+ // Logique du numéro de bon + $numeroBon = $this->nettoyer($facture['numeroBonConsultation']); + if($codeType=="PHAR") $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); + elseif($codeType=="OPT") $numeroBon = $this->nettoyer($facture['numeroBonOptique']); + elseif($codeType=="LAB") $numeroBon = $this->nettoyer($facture['numeroBonExamen']); + elseif($codeType=="SEA") $numeroBon = $this->nettoyer($facture['numeroBonKine']); + ?> + + + + + + + + + + + +
nettoyer($facture['dateSysteme'])) ?>
+ + +
nettoyer($facture['prestataire']) ?>
+
👤 nettoyer($facture['beneficiaire']) ?>
+ + nettoyer($facture['fraisReel'])) ?> + nettoyer($facture['montantTm'])) ?> + nettoyer($facture['montantArembourser'])) ?> + +
nettoyer($facture['fraisExclu'])) ?>
+
nettoyer($facture['fraisRetenu'])) ?>
+ + + + + +
diff --git a/Vue/Ajaxhabilitation/afficheraccessousmenusass.php b/Vue/Ajaxhabilitation/afficheraccessousmenusass.php new file mode 100755 index 0000000..2833011 --- /dev/null +++ b/Vue/Ajaxhabilitation/afficheraccessousmenusass.php @@ -0,0 +1,80 @@ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
=>
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
<=
+ +
+
+
diff --git a/Vue/Ajaxhabilitation/ajouterunsousmenusass.php b/Vue/Ajaxhabilitation/ajouterunsousmenusass.php new file mode 100755 index 0000000..c89ed47 --- /dev/null +++ b/Vue/Ajaxhabilitation/ajouterunsousmenusass.php @@ -0,0 +1 @@ +OK ajouterunsousmenusass \ No newline at end of file diff --git a/Vue/Ajaxhabilitation/index.php b/Vue/Ajaxhabilitation/index.php new file mode 100755 index 0000000..6476099 --- /dev/null +++ b/Vue/Ajaxhabilitation/index.php @@ -0,0 +1,111 @@ +
+
+
+
+
+
+ +
+ +
+ +
+ +
+ + + + + + + + + +
+ +
+
+
+
+ +
+
+
+
+ +
+ +
+ +
+ +
+ + + + + + + + + +
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxlisterpolicesclient/index.php b/Vue/Ajaxlisterpolicesclient/index.php new file mode 100644 index 0000000..f6884b1 --- /dev/null +++ b/Vue/Ajaxlisterpolicesclient/index.php @@ -0,0 +1,63 @@ + +
+
+
+ +
+ + + + +
+
+ +
+ +
+
+
+ + + + \ No newline at end of file diff --git a/Vue/Ajaxplafondadherent/index.php b/Vue/Ajaxplafondadherent/index.php index f87519a..ef3babd 100644 --- a/Vue/Ajaxplafondadherent/index.php +++ b/Vue/Ajaxplafondadherent/index.php @@ -1,33 +1,59 @@ -
- - - - - - - - - - - - - +
+
+
+
+ + + + + + + + + + + + nettoyer($garantieadherent['solde']); + $statusClass = ($solde <= 0) ? 'text-danger fw-bold' : 'text-success fw-bold'; + $rowClass = ($solde <= 0) ? 'table-danger' : ''; + ?> + + + + + + + + + + +
+ nettoyer($garantieadherent['garantie']) ?> +
+ Réf: nettoyer($garantieadherent['exercieReference']) ?> +
+
+ nettoyer($garantieadherent['plafondAnnuel'])) ?> + + + nettoyer($garantieadherent['tauxAvenant']) ?> % + + + nettoyer($garantieadherent['plafond'])) ?> + + nettoyer($garantieadherent['consommation'])) ?> + + + + + +
+
- - - nettoyer($garantieadherent['exercieReference'])?> - nettoyer($garantieadherent['garantie'])?> - nettoyer($garantieadherent['plafondAnnuel'])) ?> - nettoyer($garantieadherent['tauxAvenant']) ?> - nettoyer($garantieadherent['plafond'])) ?> - nettoyer($garantieadherent['consommation'])) ?> - nettoyer($garantieadherent['solde'])) ?> - - - - - -
-
- - + + + diff --git a/Vue/Ajaxproraterprimebeneficiaire/index.php b/Vue/Ajaxproraterprimebeneficiaire/index.php index 81935ba..e9408a0 100644 --- a/Vue/Ajaxproraterprimebeneficiaire/index.php +++ b/Vue/Ajaxproraterprimebeneficiaire/index.php @@ -1,112 +1,99 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - +
+
+
+
+
+
+
nettoyer($beneficiaire_temp['primeTtc_an'])) ?> nettoyer($beneficiaire_temp['primeTtc'])) ?>
nettoyer($beneficiaire_temp['primeNetteStat_an'])) ?> nettoyer($beneficiaire_temp['primeNetteStat'])) ?>
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + - - - - - + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nettoyer($beneficiaire_temp['primeBeneficiaire_an']))?>nettoyer($beneficiaire_temp['primeBeneficiaire']))?>
nettoyer($beneficiaire_temp['primeCplFuneraire_an']))?>nettoyer($beneficiaire_temp['primeCplFuneraire']))?>
nettoyer($beneficiaire_temp['surprimeOption_an']))?>nettoyer($beneficiaire_temp['surprimeOption']))?>
nettoyer($beneficiaire_temp['surprimeTm_an']))?>nettoyer($beneficiaire_temp['surprimeTm']))?>
nettoyer($beneficiaire_temp['surprimeAnt_an']))?>nettoyer($beneficiaire_temp['surprimeAnt']))?>
nettoyer($beneficiaire_temp['primeBeneficiaire_an']))?> nettoyer($beneficiaire_temp['primeBeneficiaire']))?>
nettoyer($beneficiaire_temp['primeCplFuneraire_an']))?> nettoyer($beneficiaire_temp['primeCplFuneraire']))?>
nettoyer($beneficiaire_temp['primeNette_an'])) ?>nettoyer($beneficiaire_temp['primeNette'])) ?>
nettoyer($beneficiaire_temp['surprimeOption_an']))?> nettoyer($beneficiaire_temp['surprimeOption']))?>
nettoyer($beneficiaire_temp['commission_an'])) ?>nettoyer($beneficiaire_temp['commission'])) ?>
nettoyer($beneficiaire_temp['commissionAutre_an'])) ?>nettoyer($beneficiaire_temp['commissionAutre'])) ?>
nettoyer($beneficiaire_temp['surprimeTm_an']))?> nettoyer($beneficiaire_temp['surprimeTm']))?>
nettoyer($beneficiaire_temp['surprimeAnt_an']))?> nettoyer($beneficiaire_temp['surprimeAnt']))?>
nettoyer($beneficiaire_temp['accessoire_an'])) ?>nettoyer($beneficiaire_temp['accessoire'])) ?>
nettoyer($beneficiaire_temp['primeHt_an'])) ?>nettoyer($beneficiaire_temp['primeHt'])) ?>
nettoyer($beneficiaire_temp['taxe_an'])) ?>nettoyer($beneficiaire_temp['taxe'])) ?>
+ + nettoyer($beneficiaire_temp['fraisCarte_an'])) ?>nettoyer($beneficiaire_temp['fraisCarte'])) ?>
nettoyer($beneficiaire_temp['primeNette_an'])) ?> nettoyer($beneficiaire_temp['primeNette'])) ?>
nettoyer($beneficiaire_temp['commission_an'])) ?> nettoyer($beneficiaire_temp['commission'])) ?>
nettoyer($beneficiaire_temp['commissionAutre_an'])) ?> nettoyer($beneficiaire_temp['commissionAutre'])) ?>
nettoyer($beneficiaire_temp['accessoire_an'])) ?> nettoyer($beneficiaire_temp['accessoire'])) ?>
nettoyer($beneficiaire_temp['primeHt_an'])) ?> nettoyer($beneficiaire_temp['primeHt'])) ?>
nettoyer($beneficiaire_temp['taxe_an'])) ?> nettoyer($beneficiaire_temp['taxe'])) ?>
- - nettoyer($beneficiaire_temp['fraisCarte_an'])) ?> nettoyer($beneficiaire_temp['fraisCarte'])) ?>
+ + + + nettoyer($beneficiaire_temp['primeTtc_an'])) ?> + nettoyer($beneficiaire_temp['primeTtc'])) ?> + + + + nettoyer($beneficiaire_temp['primeNetteStat_an'])) ?> + nettoyer($beneficiaire_temp['primeNetteStat'])) ?> + + + +
+ diff --git a/Vue/Ajaxsaisirpassnewuser/index.php b/Vue/Ajaxsaisirpassnewuser/index.php new file mode 100755 index 0000000..ac9a11b --- /dev/null +++ b/Vue/Ajaxsaisirpassnewuser/index.php @@ -0,0 +1,74 @@ + +
+
+ +
+ + " + onBlur="controle_longeur_passe(this);" + required + autocomplete="new-password"> + +
+
+
+ +
+ +
+ + " + onBlur="controle_new_pass();" + required + autocomplete="new-password"> + +
+
+
+ + + + + + + + + diff --git a/Vue/Ajaxuserrhclient/creeruser.php b/Vue/Ajaxuserrhclient/creeruser.php new file mode 100755 index 0000000..bd3da61 --- /dev/null +++ b/Vue/Ajaxuserrhclient/creeruser.php @@ -0,0 +1,24 @@ +
+ + + +
+
+ + +
+
+ + + + + +
\ No newline at end of file diff --git a/Vue/Ajaxuserrhclient/index.php b/Vue/Ajaxuserrhclient/index.php new file mode 100755 index 0000000..e69de29 diff --git a/Vue/Beneficiaireprimeadherent/index.php b/Vue/Beneficiaireprimeadherent/index.php index 0265669..6ed6941 100644 --- a/Vue/Beneficiaireprimeadherent/index.php +++ b/Vue/Beneficiaireprimeadherent/index.php @@ -1,25 +1,71 @@ -titre = "INTER-SANTE - Fiche Emission"; +titre = "INTER-SANTE - Fiche Emission"; ?> -?> +
+ +

- +
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
+
+ +
+
- - - - - +
+
+
+
+ +
+ + +
+
-
- - - - - -
+
+ +
+ + +
+
-
- -
- +
+ +
+ +
+
+ + Actif +
+
+
+ + + +
+
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/Vue/Creerbeneficiaire/index.php b/Vue/Creerbeneficiaire/index.php index 88e3140..cbb1172 100644 --- a/Vue/Creerbeneficiaire/index.php +++ b/Vue/Creerbeneficiaire/index.php @@ -1,258 +1,206 @@ titre = "INTER-SANTE - Ajout Adhérent"; ?> -
- - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
- - Sex - -
- - - -
- - - -
-
-
- -
- - " onClick="prorater_prime_beneficiaire();">
" />
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nettoyer($beneficiaire_temp['primeTtc_an'])) ?> nettoyer($beneficiaire_temp['primeTtc'])) ?>
nettoyer($beneficiaire_temp['primeNetteStat_an'])) ?> nettoyer($beneficiaire_temp['primeNetteStat'])) ?>
nettoyer($beneficiaire_temp['primeBeneficiaire_an']))?> nettoyer($beneficiaire_temp['primeBeneficiaire']))?>
nettoyer($beneficiaire_temp['primeCplFuneraire_an']))?> nettoyer($beneficiaire_temp['primeCplFuneraire']))?>
nettoyer($beneficiaire_temp['surprimeOption_an']))?> nettoyer($beneficiaire_temp['surprimeOption']))?>
nettoyer($beneficiaire_temp['surprimeTm_an']))?> nettoyer($beneficiaire_temp['surprimeTm']))?>
nettoyer($beneficiaire_temp['surprimeAnt_an']))?> nettoyer($beneficiaire_temp['surprimeAnt']))?>
nettoyer($beneficiaire_temp['primeNette_an'])) ?> nettoyer($beneficiaire_temp['primeNette'])) ?>
nettoyer($beneficiaire_temp['commission_an'])) ?> nettoyer($beneficiaire_temp['commission'])) ?>
nettoyer($beneficiaire_temp['commissionAutre_an'])) ?> nettoyer($beneficiaire_temp['commissionAutre'])) ?>
nettoyer($beneficiaire_temp['accessoire_an'])) ?> nettoyer($beneficiaire_temp['accessoire'])) ?>
nettoyer($beneficiaire_temp['primeHt_an'])) ?> nettoyer($beneficiaire_temp['primeHt'])) ?>
nettoyer($beneficiaire_temp['taxe_an'])) ?> nettoyer($beneficiaire_temp['taxe'])) ?>
- - nettoyer($beneficiaire_temp['fraisCarte_an'])) ?> nettoyer($beneficiaire_temp['fraisCarte'])) ?>
-
+
- +

- -
-

-
- +
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
+

:

+
+ +
+
+ + + + + + +
+ +
+
+
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+
+
+ + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($beneficiaire_temp['primeBeneficiaire_an']))?>nettoyer($beneficiaire_temp['primeBeneficiaire']))?>
nettoyer($beneficiaire_temp['primeCplFuneraire_an']))?>nettoyer($beneficiaire_temp['primeCplFuneraire']))?>
nettoyer($beneficiaire_temp['surprimeOption_an']))?>nettoyer($beneficiaire_temp['surprimeOption']))?>
nettoyer($beneficiaire_temp['primeHt_an'])) ?>nettoyer($beneficiaire_temp['primeHt'])) ?>
nettoyer($beneficiaire_temp['taxe_an'])) ?>nettoyer($beneficiaire_temp['taxe'])) ?>
nettoyer($beneficiaire_temp['fraisCarte_an'])) ?>nettoyer($beneficiaire_temp['fraisCarte'])) ?>
nettoyer($beneficiaire_temp['primeTtc_an'])) ?>nettoyer($beneficiaire_temp['primeTtc'])) ?>
+
+
+
+ + + + +
\ No newline at end of file diff --git a/Vue/Facturesfamilleadh/index.php b/Vue/Facturesfamilleadh/index.php index bb8960d..8ef59d9 100644 --- a/Vue/Facturesfamilleadh/index.php +++ b/Vue/Facturesfamilleadh/index.php @@ -1,119 +1,140 @@ -titre = "INTER-SANTE - Factrures famille"; -?> +titre = "INTER-SANTE - Factures famille"; ?> - - - - - - +
+ +

-
- +
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
+
+ +
+
- - - - -
+
+
+
+
+
+ + + + + + + +
+
+
+
+
- + -
- - - - - - - - - - - - - - - - - - - nettoyer($facture['idFacture']); - $numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']); - $tiersPayant = $facture['tiersPayant']; - - $codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']); +
+
+
Type Date
+ + + + + + + + + + + + + + + nettoyer($facture['idFacture']); + $codeType = $this->nettoyer($facture['codeTypeFacture']); + + // Définition des couleurs par type + $badgeClass = "bg-secondary"; + switch($codeType) { + case 'PHAR': $badgeClass = "bg-success"; break; + case 'OPT' : $badgeClass = "bg-info text-dark"; break; + case 'LAB' : $badgeClass = "bg-warning text-dark"; break; + case 'SEA' : $badgeClass = "bg-primary"; break; + } - $numeroBon = $this->nettoyer($facture['numeroBonConsultation']); - - if($codeTypeFacture=="PHAR") - { - $numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']); - } - elseif($codeTypeFacture=="OPT") - { - $numeroBon = $this->nettoyer($facture['numeroBonOptique']); - } - elseif($codeTypeFacture=="LAB") - { - $numeroBon = $this->nettoyer($facture['numeroBonExamen']); - } - elseif($codeTypeFacture=="SEA") - { - $numeroBon = $this->nettoyer($facture['numeroBonKine']); - } - - ?> - - - - - - - - - - - - - - - - - - -
- - nettoyer($facture['dateSysteme'])) ?>nettoyer($facture['prestataire']) ?>nettoyer($facture['beneficiaire']) ?>nettoyer($facture['fraisReel'])) ?>nettoyer($facture['montantTm'])) ?>nettoyer($facture['montantArembourser'])) ?>nettoyer($facture['fraisExclu'])) ?>nettoyer($facture['fraisRetenu'])) ?>
-
- - + + + + + \ No newline at end of file diff --git a/Vue/Ficheadherent/index.php b/Vue/Ficheadherent/index.php index 1ca3266..ed81361 100644 --- a/Vue/Ficheadherent/index.php +++ b/Vue/Ficheadherent/index.php @@ -48,212 +48,286 @@ -
- - - +
+ +

- - - - -
-
-
: nettoyer($adherent['numeroAdherent']) ?>
-
-
-
-
- -
- - -
-
-
- - -
-
- -
- - -
-
-
- - -
-
- -
- - -
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
+
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
- -
-
- + + + + + + + + + +
+
+
: nettoyer($adherent['numeroAdherent']) ?>
+
+
+
+
+ +
+ + +
+
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + +
+
+
-
- - - - - - - - - +
+
+ + + + + + + + + + + + nettoyer($beneficiaire['faceRegistered']); + ?> + + + + + + + + + + + + + + - - - - - - + + + + + +
+ + Photo + + + + nettoyer($beneficiaire['nomBeneficiaire']) ?> nettoyer($beneficiaire['prenomsBeneficiaire']) ?> ans + + + +
+
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + +
nettoyer($garantieadherent['garantie']) ?> + +
- + -
-
-
+ +
+
+
+
+
+
+ + +
+
+
+
+ +
+
+
-
-
- - - - - - - - - - - - - - - - nettoyer($beneficiaire['faceRegistered']); - ?> - - - - - - - - - - - - - - - - - - - - - -
- - Photo - - - - nettoyer($beneficiaire['nomBeneficiaire']) ?> nettoyer($beneficiaire['prenomsBeneficiaire']) ?> ans - - - -
+ + +
+
+
+
+ +
+
+
+ +
+
+
+ +
+
-
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - -
nettoyer($garantieadherent['garantie']) ?> - -
+ +
+
+
+
+
+ +
+
+
+ +
+
- +
\ No newline at end of file + + + \ No newline at end of file diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php index 9648d44..51f1fae 100644 --- a/Vue/Fichebeneficiaire/index.php +++ b/Vue/Fichebeneficiaire/index.php @@ -77,307 +77,568 @@
-
-
- " . _("Date Effet") . " : " . dateLang($this->nettoyer($beneficiaire['dateEffet'])) ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sex
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
-

-
- - -
- - - - - - - - - - - - - - - - - - nettoyer($garantieadherent['champApplication']); - ?> - - - - - - - - - - - - - - - - - - - -
nettoyer($garantieadherent['exercieReference'])?> nettoyer($garantieadherent['garantie'])?> nettoyer($garantieadherent['plafondAnnuel'])) ?>nettoyer($garantieadherent['tauxAvenant']) ?>nettoyer($garantieadherent['plafond'])) ?>nettoyer($garantieadherent['consommation'])) ?>nettoyer($garantieadherent['solde'])) ?> nettoyer($garantieadherent['garantieparentaffichage'])?>
-
- -
- - - - - - - - - - - - - -
- " onClick="javascript:ebene_init_confirm_photo_face();"> -
- " onClick="javascript:ebene_init_photo_face();"> -
- -
- -
- - Photo du bénéficiaire - -
+
- -
-
- -
- " readonly> -
- - -
-
- - " "): ?> - " readonly > - - " readonly > - - - - - -
- " /> -
- -

- " "): ?> -
- -
- -

-
+

- - : " readonly> - - : " readonly> - -
+
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
-
+
+
+
+

+ : +

+ : nettoyer($beneficiaire['dateEffet'])) ?> +
+ +
+ + + + +
+
+ +
+
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+ +
+ +
+ + +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+ + + + +
+ +
+ + +
+
+

+ +
+ + + +
+
+
+ + +
+ +
+
:
+ +
+
+ +
+
+ +
+ +
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + + +
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
%
nettoyer($garantieadherent['exercieReference'])?>nettoyer($garantieadherent['garantie'])?>nettoyer($garantieadherent['plafondAnnuel'])) ?>nettoyer($garantieadherent['tauxAvenant']) ?>%nettoyer($garantieadherent['plafond'])) ?>nettoyer($garantieadherent['consommation'])) ?>nettoyer($garantieadherent['solde'])) ?> + nettoyer($garantieadherent['champApplication'])=='1') ? 'checked' : '' ?> disabled> + nettoyer($garantieadherent['garantieparentaffichage'])?>
+
+
+
+ +
+
+
+
+
+ + +
+
+ +
+
+ " "): ?> +
+ +
+ +
+ + : +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ +
+
+
+
+
+ + + +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/Vue/Fichepolice/index.php b/Vue/Fichepolice/index.php index 013e23d..3668111 100644 --- a/Vue/Fichepolice/index.php +++ b/Vue/Fichepolice/index.php @@ -129,7 +129,7 @@
- +
diff --git a/Vue/Ficheuserrhclient/index.php b/Vue/Ficheuserrhclient/index.php new file mode 100755 index 0000000..94fe7d7 --- /dev/null +++ b/Vue/Ficheuserrhclient/index.php @@ -0,0 +1,111 @@ +titre = "ISA WEB - Modifier Utilisateur"; + + $idClient = $this->nettoyer($user_rh['idClient']); + $idUtilisateur = $user_rh['id']; + $codeUtilisateur = $user_rh['codeUtilisateur']; + $actif = $user_rh['actif']; + $codeProfil = $user_rh['codeProfil']; + $codeLangue = $user_rh['codeLangue']; +?> + +
+ + + +

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+
+ + \ No newline at end of file diff --git a/Vue/Listeadherent/index.php b/Vue/Listeadherent/index.php index 5d375ee..9890567 100644 --- a/Vue/Listeadherent/index.php +++ b/Vue/Listeadherent/index.php @@ -59,7 +59,7 @@ foreach ($modals as $id => $cfg):