140 lines
3.2 KiB
JavaScript
Executable File
140 lines
3.2 KiB
JavaScript
Executable File
function change_password()
|
|
{
|
|
|
|
v_msg="Attention, vous serez déconnecté par la suite! Voulez-vous changer votre mot de passe?";
|
|
v_msgEng="Attention, you will be logged out afterwards! Do you want to change your password?";
|
|
|
|
confirm_ebene(v_msg, v_msgEng)
|
|
.then((isConfirmed) => {
|
|
if (isConfirmed) {
|
|
// L'utilisateur a confirmé
|
|
window.location.assign($("#racineWeb" ).val()+"Changermotpass/");
|
|
} else {
|
|
// L'utilisateur a annulé
|
|
console.log("Confirmation refusée");
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function afficher_beneficiaire_id()
|
|
{
|
|
idBeneficiaire=$("#idBeneficiaire_C").val();
|
|
okId=$("#okId").val();
|
|
|
|
// alert("okId = "+okId);
|
|
|
|
// alert("idBeneficiaire:"+idBeneficiaire+"fin");
|
|
//return
|
|
|
|
$("#contenu").html('<div class="spinner-responsive">' + '<span><i class="fa fa-spinner"></i></span>' + '</div>');
|
|
|
|
|
|
if (idBeneficiaire>"")
|
|
{
|
|
ajax_context_beneficiaire_afficher(idBeneficiaire, okId);
|
|
}
|
|
}
|
|
|
|
function afficher_beneficiaire_id_okId()
|
|
{
|
|
idBeneficiaire=$("#idBeneficiaire_C").val();
|
|
okId=$("#okId").val();
|
|
|
|
if (idBeneficiaire>"")
|
|
{
|
|
ajax_context_beneficiaire_afficher(idBeneficiaire, okId);
|
|
}
|
|
}
|
|
|
|
function ajax_context_beneficiaire_afficher(idBeneficiaire, okId)
|
|
{
|
|
donnees = 'idBeneficiaire='+idBeneficiaire+'&okId='+okId;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxcontextbeneficiaire/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData) {
|
|
// alert("Erreur : "+errorData);
|
|
},
|
|
complete: function() {
|
|
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire);
|
|
}
|
|
});
|
|
}
|
|
|
|
function change_password()
|
|
{
|
|
|
|
v_msg="Attention, vous serez déconnecté par la suite! Voulez-vous changer votre mot de passe?";
|
|
v_msgEng="Attention, you will be logged out afterwards! Do you want to change your password?";
|
|
|
|
confirm_ebene(v_msg, v_msgEng)
|
|
.then((isConfirmed) => {
|
|
if (isConfirmed) {
|
|
// L'utilisateur a confirmé
|
|
window.location.assign($("#racineWeb" ).val()+"Changermotpass/");
|
|
} else {
|
|
// L'utilisateur a annulé
|
|
console.log("Confirmation refusée");
|
|
}
|
|
});
|
|
}
|
|
|
|
function changer_langue_connexion()
|
|
{
|
|
codeLangue = $("#langue").val();
|
|
donnees = 'codeLangue='+codeLangue;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconnexioncookie/changerlangue/",
|
|
type : 'post',
|
|
data: donnees,
|
|
error: function(errorData)
|
|
{
|
|
},
|
|
success: function(data)
|
|
{
|
|
$("#div_detail_connexion").html(data);
|
|
},
|
|
complete: function()
|
|
{
|
|
$(".selectpicker").selectpicker();
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function connexion_cookie()
|
|
{
|
|
msgErreur=$("#msgErreur").val();
|
|
|
|
donnees = 'msgErreur='+msgErreur;
|
|
|
|
$.ajax({
|
|
url: $("#racineWeb").val()+"Ajaxconnexioncookie/",
|
|
type: 'POST',
|
|
data: donnees,
|
|
success: function(data)
|
|
{
|
|
$("#div_ajaxconnexion").html(data);
|
|
},
|
|
error: function(errorData)
|
|
{
|
|
},
|
|
complete: function()
|
|
{
|
|
var login = document.getElementById("login").value;
|
|
if (login>" ")
|
|
{
|
|
$("#mdp").focus();
|
|
}
|
|
else
|
|
{
|
|
$("#login").focus();
|
|
}
|
|
}
|
|
});
|
|
}
|