diff --git a/.gitignore b/.gitignore index 640ee527..b0c72464 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,6 @@ Cron/prod.ini Temp/ Temp *.sh -.ssh/ \ No newline at end of file +.ssh/ +Gettext/ +Gettext \ No newline at end of file diff --git a/Controleur/ControleurAccessubmenus.php b/Controleur/ControleurAccessubmenus.php new file mode 100644 index 00000000..fee7aa2c --- /dev/null +++ b/Controleur/ControleurAccessubmenus.php @@ -0,0 +1,28 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Accessubmenus'); + + $this->utilisateur = new Utilisateur(); + } + + public function index() + { + $profil = $this->utilisateur->getListeProfilCodeRh(); + $menus = array(); + + $this->genererVue(array( + 'profil' => $profil, + 'menus' => $menus + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxgedassuremvt.php b/Controleur/ControleurAjaxgedassuremvt.php new file mode 100644 index 00000000..6f161e6f --- /dev/null +++ b/Controleur/ControleurAjaxgedassuremvt.php @@ -0,0 +1,20 @@ +ged = new Ged(); + } + + public function index() { + + $idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire"); + $geds = $this->ged->getgedassuremvt($idBeneficiaire); + + $this->genererVueAjax(array('geds' => $geds)); + + } +} diff --git a/Controleur/ControleurAjaxhabilitation.php b/Controleur/ControleurAjaxhabilitation.php new file mode 100644 index 00000000..28714929 --- /dev/null +++ b/Controleur/ControleurAjaxhabilitation.php @@ -0,0 +1,108 @@ +utilisateur = new Utilisateur(); + } + + public function index() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + + $menus_accessibles = $this->utilisateur->getMenusAccessiblesProfilRh($codeProfil); + + $menus_non_accessibles = $this->utilisateur->getMenusNonAccessiblesProfilRh($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 afficheraccessousmenus() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeVue = $this->requete->getParametreFormulaire("codeVue"); + + $menus_accessibles = $this->utilisateur->getSousMenusAccessiblesVueRh($codeProfil, $codeVue); + $menus_non_accessibles = $this->utilisateur->getSousMenusNonAccessiblesVueRh($codeProfil,$codeVue); + + $this->genererVueAjax(array( + 'menus_accessibles' => $menus_accessibles, + 'menus_non_accessibles' => $menus_non_accessibles + )); + } + + + public function ajoutertoussousmenusrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeVue = $this->requete->getParametreFormulaire("codeVue"); + + $this->utilisateur->ajoutertoussousmenusrh($codeProfil, $codeVue); + } + + public function retirertoussousmenusrh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeVue = $this->requete->getParametreFormulaire("codeVue"); + + $this->utilisateur->retirertoussousmenusrh($codeProfil, $codeVue); + } + + public function ajouterunsousmenurh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeVue = $this->requete->getParametreFormulaire("codeVue"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->ajouterunsousmenurh($codeProfil, $codeVue, $codeMenu); + } + + public function retirerunsousmenurh() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + $codeVue = $this->requete->getParametreFormulaire("codeVue"); + $codeMenu = $this->requete->getParametreFormulaire("codeMenu"); + + $this->utilisateur->retirerunsousmenurh($codeProfil, $codeVue, $codeMenu); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmenusprofilrh.php b/Controleur/ControleurAjaxmenusprofilrh.php new file mode 100644 index 00000000..21898ef7 --- /dev/null +++ b/Controleur/ControleurAjaxmenusprofilrh.php @@ -0,0 +1,23 @@ +utilisateur = new Utilisateur(); + } + + public function index() + { + $codeProfil = $this->requete->getParametreFormulaire("codeProfil"); + // + $menus = $this->utilisateur->getListeProfilRh($codeProfil); + + $this->genererVueAjax(array( + 'menus' => $menus + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurFicheuserrhclient.php b/Controleur/ControleurFicheuserrhclient.php new file mode 100644 index 00000000..f2e36a10 --- /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/ControleurRoles.php b/Controleur/ControleurRoles.php new file mode 100644 index 00000000..172f63ac --- /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->getListeProfilCodeRh(); + + $this->genererVue(array('profil' => $profil)); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 2bdb4a59..e83e90c4 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -43565,7 +43565,7 @@ function select_tous_carte_a_editer(p_choix) data: donnees, success: function(data) { $('#div_liste_carte').html(data); - appliquerDataTable(); + }, error: function(data) { }, @@ -43589,7 +43589,7 @@ function select_un_assure_a_editer(p_choix, id) data: donnees, success: function(data) { //$('#div_liste_carte').html(data); - //appliquerDataTable(); + // }, error: function(data) { }, @@ -43658,7 +43658,7 @@ function tester_edition_carteassure() v_msg="Liste vide!"; v_msgEng="Empty list!"; alert_ebene(v_msg, v_msgEng); - appliquerDataTable(); + return false; } else @@ -43779,7 +43779,7 @@ function apercu_mouvement_assures() data: donnees, success: function(data) { $("#div_mvt").html(data); - appliquerDataTable('.tabliste'); + }, complete: function() { } @@ -43880,7 +43880,7 @@ function liste_mouvemements_rh() data: donnees, success: function(data) { $("#div_mvt").html(data); - appliquerDataTable('.tabliste'); + }, complete: function() { } @@ -43913,7 +43913,7 @@ function liste_mouvemements_rh_valider() data: donnees, success: function(data) { $("#div_mvt").html(data); - appliquerDataTable('.tabliste'); + }, complete: function() { } @@ -44715,3 +44715,675 @@ function recapituler_reincorporer() } }); } + + +function consulter_ged_assure_mvt(idBeneficiaire){ + + $("#div_patienter").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idBeneficiaire='+idBeneficiaire; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxgedassuremvt/", + type : 'post', + data: donnees, + error: function(errorData){ + alert("Erreur : "+errorData); + }, + success: function(data) { + //alert("Success : "+data); + $("#div_patienter").html(''); + $('#div_ged').html(data); + // + $('#div_ged').modal("show"); + }, + complete: function() { + + } + }); +} + +function desactiver_user_rh_client(codeUtilisateur) +{ + v_msg="Confirmez-vous la désactivation?"; + v_msgEng="Do you confirm the deactivation?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + 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); + + retour_a_users_rh_client(); + } + }); + } + +} + +function activer_user_rh_client(codeUtilisateur) +{ + v_msg="Confirmez-vous l\'activation?"; + v_msgEng="Do you confirm the activation?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + 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); + + retour_a_users_rh_client(); + } + }); + } +} + +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 enregistrer_modif_user_rh() +{ + debugger; + + 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(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?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + $.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(); + } + }); + } +} + +function reinitpaswd_user_rh(codeUtilisateur) +{ + v_msg="Confirmez-vous la réinitialisation?"; + v_msgEng="Do you confirm the reset?"; + + if(confirm_ebene(v_msg, v_msgEng)) + { + 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); + + retour_a_users_rh_client(); + } + }); + } +} + +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(); + } + }); +} + +function ajax_menus_profil() +{ + var 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()+"Ajaxmenusprofilrh/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_menu").html(data); + }, + error: function(data) { + }, + complete: function() { + + } + }); + +} + +function afficher_menu_vue_profil() +{ + 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; + } + + codeVue = $("#codeVue").val(); + + if (codeVue<=" ") + { + v_msg="Veuillez sélectionner une vue!"; + v_msgEng="Please select a view!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeVue").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + donnees += '&codeVue='+codeVue; + + var div_attente = $('#div_menu_profil'); + + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/afficheraccessousmenus/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) + { + div_attente.html(data); + }, + complete: function() { + } + }); +} + +function ajouter_tous_menu_vue_profil() +{ + 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; + } + + codeVue=$("#codeVue").val(); + + if (codeVue<=" ") + { + v_msg="Veuillez sélectionner une vue!"; + v_msgEng="Please select a view!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeVue").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + donnees += '&codeVue='+codeVue; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/ajoutertoussousmenusrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_vue_profil(); + } + }); +} + +function ajouter_un_menu_vue_profil(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; + } + + codeVue=$("#codeVue").val(); + + if (codeVue<=" ") + { + v_msg="Veuillez sélectionner une vue!"; + v_msgEng="Please select a view!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeVue").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + donnees += '&codeVue='+codeVue; + donnees += '&codeMenu='+codeMenu; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/ajouterunsousmenurh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_vue_profil(); + } + }); +} + +function retirer_tous_menu_vue_profil() +{ + 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; + } + + codeVue=$("#codeVue").val(); + + if (codeVue<=" ") + { + v_msg="Veuillez sélectionner une vue!"; + v_msgEng="Please select a view!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeVue").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + donnees += '&codeVue='+codeVue; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/retirertoussousmenusrh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_vue_profil(); + } + }); +} + +function retirer_un_menu_vue_profil(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; + } + + codeVue=$("#codeVue").val(); + + if (codeVue<=" ") + { + v_msg="Veuillez sélectionner une vue!"; + v_msgEng="Please select a view!"; + + alert_ebene(v_msg, v_msgEng); + + $("#codeVue").focus(); + return; + } + + donnees = 'codeProfil='+codeProfil; + donnees += '&codeVue='+codeVue; + donnees += '&codeMenu='+codeMenu; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxhabilitation/retirerunsousmenurh/", + type: 'POST', + data: donnees, + success: function(data) { + }, + error: function(data) { + }, + complete: function() { + afficher_menu_vue_profil(); + } + }); +} \ No newline at end of file diff --git a/Modele/Client.php b/Modele/Client.php index 9c7ed7ef..b9320e6e 100644 --- a/Modele/Client.php +++ b/Modele/Client.php @@ -357,7 +357,7 @@ class Client extends Modele { $this->executerRequete($sql, array($codeUtilisateur)); } - public function desactiver($codeUtilisateur) + public function desactiver($codeUtilisateur) { $sql = 'call sp_c_desactiver_utilisateur_rh_client(?)'; @@ -371,7 +371,7 @@ class Client extends Modele { $this->executerRequete($sql, array($codeUtilisateur)); } - public function existelogin($codeUtilisateur) { + public function existelogin($codeUtilisateur) { $sql = 'select id FROM c_utilisateur WHERE (codeUtilisateur=?)'; $resultat = $this->executerRequete($sql, array($codeUtilisateur)); return ($resultat->rowCount() > 0); diff --git a/Modele/Ged.php b/Modele/Ged.php index 865121b8..c74bdc4a 100644 --- a/Modele/Ged.php +++ b/Modele/Ged.php @@ -240,5 +240,16 @@ class Ged extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getgedassuremvt($idBeneficiaire) + { + $lang = $_SESSION['lang']; + + $sql = 'call sp_get_ged_assure_mvt(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $lang)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Modele/Utilisateur.php b/Modele/Utilisateur.php index 4a4a3d43..963cbc05 100644 --- a/Modele/Utilisateur.php +++ b/Modele/Utilisateur.php @@ -291,6 +291,8 @@ class Utilisateur extends Modele { } + + public function getMenusNonAccessiblesProfil($codeProfil) { $sql = "call sp_r_get_menus_non_accessibles_profil(?, ?);"; @@ -662,4 +664,153 @@ class Utilisateur extends Modele { $email, $hash, $codeLangue, $actVisible, $AffectionVisible, $user)); } + public function getListeProfilCodeRh() + { + 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 getMenusAccessiblesProfilRh($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 getMenusNonAccessiblesProfilRh($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)); + } + + public function getSousMenusAccessiblesVueRh($codeProfil, $codeVue) + { + $sql = "call sp_c_get_sous_menus_accessibles_vue_rh(?, ?, ?);"; + + $menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil, $codeVue)); + + return $menu->fetchAll(PDO::FETCH_ASSOC); + } + + public function getSousMenusNonAccessiblesVueRh($codeProfil, $vue) + { + $sql = "call sp_c_get_sous_menus_non_accessibles_vue_rh(?, ?, ?);"; + + $menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil, $vue)); + + return $menu->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListeProfilRh($codeProfil) + { + + if (est_anglophone()) + { + $sql = "call sp_c_get_liste_menus_profil_rh_eng(?, ?);"; + } + else + { + $sql = "call sp_c_get_liste_menus_profil_rh(?, ?);"; + } + + $menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil)); + + return $menu->fetchAll(PDO::FETCH_ASSOC); + } + + public function ajoutertoussousmenusrh($codeProfil, $codeVue) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_ajouter_tous_sous_menus_profil_rh(?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeVue, $user)); + } + + public function ajouterunsousmenurh($codeProfil, $codeVue, $codeMenu) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_ajouter_un_sous_menus_profil_rh(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeVue, $codeMenu, $user)); + } + + public function retirertoussousmenusrh($codeProfil, $codeVue) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_retirer_tous_sous_menus_profil_rh(?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeVue, $user)); + } + + public function retirerunsousmenurh($codeProfil, $codeVue, $codeMenu) + { + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + + $sql = 'call sp_c_retirer_un_sous_menus_profil_rh(?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $codeProfil, $codeVue, $codeMenu, $user)); + } } \ No newline at end of file diff --git a/Vue/Accessubmenus/index.php b/Vue/Accessubmenus/index.php new file mode 100644 index 00000000..b39ba895 --- /dev/null +++ b/Vue/Accessubmenus/index.php @@ -0,0 +1,98 @@ +titre = "INTER SANTE - Accès Sous-Menus"; ?> + +
+ + + +
+
+
+ +
+
+ + +
+
+ +
+
+ +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+ +
+

+
+
+ +
+ + \ No newline at end of file diff --git a/Vue/Ajaxgedassuremvt/index.php b/Vue/Ajaxgedassuremvt/index.php new file mode 100644 index 00000000..fd3e0d3e --- /dev/null +++ b/Vue/Ajaxgedassuremvt/index.php @@ -0,0 +1,100 @@ + + + + \ No newline at end of file diff --git a/Vue/Ajaxhabilitation/afficheraccessousmenus.php b/Vue/Ajaxhabilitation/afficheraccessousmenus.php new file mode 100644 index 00000000..1630bb27 --- /dev/null +++ b/Vue/Ajaxhabilitation/afficheraccessousmenus.php @@ -0,0 +1,144 @@ +
+
+ +
+
+
+
+
+ + + + +
+
+ +
+
+
+ +
+ +
+ +
+ + + + + + + + + +
+ + + +
+
+
+
+ +
+
+
+
+
+ + + + +
+
+ +
+
+
+ +
+ +
+ +
+ + + + + + + + + +
+ + + +
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxhabilitation/index.php b/Vue/Ajaxhabilitation/index.php new file mode 100644 index 00000000..e4614730 --- /dev/null +++ b/Vue/Ajaxhabilitation/index.php @@ -0,0 +1,131 @@ +
+
+ +
+
+
+
+
+ + + + +
+
+ +
+
+
+ +
+ +
+ +
+ + + + + + + + + +
+ +
+
+
+
+ +
+
+
+
+
+ + + + +
+
+ +
+
+
+ +
+ +
+ +
+ + + + + + + + + +
+ +
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxmenusprofilrh/index.php b/Vue/Ajaxmenusprofilrh/index.php new file mode 100644 index 00000000..4608bd58 --- /dev/null +++ b/Vue/Ajaxmenusprofilrh/index.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Vue/Ajaxmouvementassurevalider/index.php b/Vue/Ajaxmouvementassurevalider/index.php index 1d718943..daa06427 100644 --- a/Vue/Ajaxmouvementassurevalider/index.php +++ b/Vue/Ajaxmouvementassurevalider/index.php @@ -1,86 +1,126 @@ -
- - - - - - - - - - - +
+
+
+ + + + + + + + + + + - - + + + - nettoyer($mvt['choix']); $idMvtTemp = $this->nettoyer($mvt['id']); - $sensMvt = $mvt['sensMouvement']; // On suppose que '0' = Entrée, '1' = Sortie + $sensMvt = $mvt['sensMouvement']; $libelleSensMouvement = est_anglophone() ? $mvt['libelleSensMouvementEng'] : $mvt['libelleSensMouvement']; - ?> + $nombreGed = $mvt['nombreGed']; + $idBeneficiaire = $mvt['idBeneficiaire']; + ?> - - - - - - - - - - - + + + + + +
" onClick="valider_mouvement_rh();"> - - +
+ " onClick="valider_mouvement_rh();"> + + + + +
- nettoyer($mvt['dateEffet']), $_SESSION['lang']) ?> + + nettoyer($mvt['dateEffet']), $_SESSION['lang']) ?> + - - + + - - + + -
nettoyer($mvt['beneficiaire']) ?>
-
nettoyer($mvt['numeroBeneficiaire']) ?>
+
+
nettoyer($mvt['beneficiaire']) ?>
+
+ nettoyer($mvt['numeroBeneficiaire']) ?> +
- nettoyer($mvt['adherent']) ?> + + nettoyer($mvt['adherent']) ?> - nettoyer($mvt['codeLienParente']) ?> + + nettoyer($mvt['codeLienParente']) ?> -
nettoyer($mvt['dateSysteme'])) ?>
-
nettoyer($mvt['codeUtilisateur']) ?>
-
- nettoyer($mvt['primeTtc'])) ?> - - - + + '0'): ?> + - + - +
nettoyer($mvt['dateSysteme'])) ?>
+
nettoyer($mvt['codeUtilisateur']) ?>
+
+ nettoyer($mvt['primeTtc'])) ?> + + '0'): ?> + + value="" + onClick="javascript:this.value=(this.value=='1'?'0':'1');selectionner_mouvement_rh(, this.value);"> + + + + +
+ + \ No newline at end of file diff --git a/Vue/Ficheuserrhclient/index.php b/Vue/Ficheuserrhclient/index.php new file mode 100644 index 00000000..532eb0b5 --- /dev/null +++ b/Vue/Ficheuserrhclient/index.php @@ -0,0 +1,86 @@ +titre = "INTER SANTE - Modifier Utilisateur"; + + $idClient = $this->nettoyer($user_rh['idClient']); + $idUtilisateur = $user_rh['id']; + $codeUtilisateur = $user_rh['codeUtilisateur']; + $actif = $user_rh['actif']; + + //var_dump($actif); + $codeProfil = $user_rh['codeProfil']; + $codeLangue = $user_rh['codeLangue']; +?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
E-mail
+ + + +
+
+ + \ No newline at end of file diff --git a/Vue/Roles/index.php b/Vue/Roles/index.php new file mode 100644 index 00000000..5166672b --- /dev/null +++ b/Vue/Roles/index.php @@ -0,0 +1,95 @@ +titre = "INTER SANTE - Configuration des Accès"; ?> + +
+ + + +
+
+
+
+
+ +
+ + + + +
+
+
+
+
+ + + + + +
+ + + +
+
+
+
+
+
+ +
+
+ +

+

+
+
+ +
+ + \ No newline at end of file diff --git a/Vue/Usersrhclient/index.php b/Vue/Usersrhclient/index.php index 7c4337cc..5e208029 100755 --- a/Vue/Usersrhclient/index.php +++ b/Vue/Usersrhclient/index.php @@ -4,30 +4,42 @@ $nomClient = $this->nettoyer($client['nom']); ?> - + -
-

+
+ +

+ + +

-
- -
+
+ +
+
+
+

+ +

+
+
+ + + +
+
+
-
- - - -
- -
- - +
+ - - - - + + + + + + @@ -37,32 +49,87 @@ $actif = (int)$user_client['actif']; $reInit = (int)$user_client['reInit']; $codeLangue = $user_client['codeLangue']; - - // Gestion multilingue du profil $libelleProfil = est_anglophone() ? $user_client['profilEng'] : $user_client['profil']; ?> - - - - + + +
- nettoyer($codeUtilisateur) ?> + + + nettoyer($codeUtilisateur) ?> + - nettoyer($user_client['utilisateur']) ?> + +
nettoyer($user_client['utilisateur']) ?>
- + + + + - nettoyer($libelleProfil) ?> + + + + nettoyer($libelleProfil) ?> + + + + + + + +
+ + +
+
+
+ + \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 4f5a41d9..3da07d88 100644 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -263,7 +263,7 @@ controlerPlafondBeneficiaire : - +