aqx
This commit is contained in:
182
Js/fonctions.js
182
Js/fonctions.js
@@ -45204,4 +45204,186 @@ 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 += '&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();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user