From 9f5f07923e546e3d39fb67a347dec1009c653cc5 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 20 Jan 2026 14:11:06 +0000 Subject: [PATCH] fer --- Js/fonctions.js | 23 ++++++++++++++++------- Vue/gabarit.php | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index dbe7dc8..085ef08 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -78,6 +78,11 @@ function raffraichier_gabarit() if((codeSociete == undefined || codeSociete <= " ") && vue !="Connexion"){ + const msg = "Votre session a expiré. Vous serez déconnecté."; + const msgEng = "Your session has expired. You will be disconnected."; + + alert_ebene(msg, msgEng); + window.location.assign($("#racineWeb" ).val()+"Connexion/deconnecter/"); } }, @@ -201,17 +206,21 @@ function baseSwal(options) { * Affiche une information bilingue. */ -function alert_ebene(p_msg, p_msg_eng) { - const codeLangue = $("#codeLangue").val(); - const message = (codeLangue === "en_US") ? p_msg_eng : p_msg; - - baseSwal({ - title: formatMessageForSwal(message), +function alert_ebene(msgFr, msgEn) { + const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR"; + const message = (codeLangue === "en_US") ? msgEn : msgFr; + + // Appel via baseSwal + return baseSwal({ + text: message, icon: 'info', - confirmButtonText: codeLangue === "en_US" ? 'OK' : 'D\'accord' + confirmButtonText: (codeLangue === "en_US") ? "OK" : "D'accord", + allowOutsideClick: false, + allowEscapeKey: false }); } + /* function alert_ebene(msgFr, msgEn) { const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR"; diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 663a52a..e9adf2e 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -655,7 +655,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +