This commit is contained in:
2026-01-16 11:27:20 +00:00
parent a7dc057561
commit 753eb4f2c1
9 changed files with 298 additions and 16 deletions

View File

@@ -4963,4 +4963,93 @@ function changer_langue()
}
});
}
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()+"Ajaxmenusprofil/",
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;
}
vue=$("#vue").val();
if (vue<=" ")
{
v_msg="Veuillez sélectionner une vue!";
v_msgEng="Please select a view!";
alert_ebene(v_msg, v_msgEng);
$("#vue").focus();
return;
}
donnees = 'codeProfil='+codeProfil;
donnees += '&vue='+vue;
var div_attente = $('#div_menu_profil');
div_attente.html(`
<div class="d-flex flex-column align-items-center justify-content-center" style="padding-top:80px;">
<div class="spinner-border text-primary" role="status" style="width:3rem; height:3rem;">
<span class="visually-hidden">Loading...</span>
</div>
<span class="mt-3 fs-5 fw-bold">
Veuillez patienter... / Please wait...
</span>
</div>
`);
$.ajax({
url: $("#racineWeb").val()+"Ajaxhabilitation/afficheraccessousmenus/",
type : 'post',
data: donnees,
error: function(errorData) {
},
success: function(data)
{
div_attente.html(data);
},
complete: function() {
}
});
}