fe
This commit is contained in:
176
Js/fonctions.js
176
Js/fonctions.js
@@ -4999,8 +4999,6 @@ function ajax_menus_profil()
|
||||
|
||||
function afficher_menu_vue_profil()
|
||||
{
|
||||
debugger;
|
||||
|
||||
codeProfil=$("#codeProfil").val();
|
||||
if (codeProfil<=" ")
|
||||
{
|
||||
@@ -5055,4 +5053,178 @@ function afficher_menu_vue_profil()
|
||||
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 += '&vue='+vue;
|
||||
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();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user