From 1c90f92d3ca891674b96ca5dc4bfbaa59f935f14 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Fri, 3 Apr 2026 16:59:14 +0000 Subject: [PATCH] derty --- Js/fonctions.js | 12 ++-- Vue/Ajaxparamlienparente/index.php | 90 ++++++++++++++++++++++-------- 2 files changed, 75 insertions(+), 27 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index bb87ffec..f96ee590 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -88824,12 +88824,14 @@ function modifier_lien_parente(idLien) }, success: function(data) { - donnees_retour = data; - }, - complete: function() - { - $('#div_maj_lien').html(donnees_retour); + // 1. Injecter le contenu dans le conteneur de la modale + $('#div_maj_lien').html(data); + + // 2. Initialiser et afficher la modale Bootstrap + var myModal = new bootstrap.Modal(document.getElementById('div_maj_lien')); + myModal.show(); } + }); } diff --git a/Vue/Ajaxparamlienparente/index.php b/Vue/Ajaxparamlienparente/index.php index 1ac901b8..0e3765d9 100755 --- a/Vue/Ajaxparamlienparente/index.php +++ b/Vue/Ajaxparamlienparente/index.php @@ -20,29 +20,75 @@ - - - - - +nettoyer($lienparente['libelle']); + $enVigueur = $this->nettoyer($lienparente['enVigueur']); + + $actif = ($enVigueur == "1") ? "Oui" : "Non"; + + if (est_anglophone()){ + $libelle = $this->nettoyer($lienparente['libelleEng']); + $actif = ($enVigueur == "1") ? "Yes" : "No"; + } +?> + - + - - +
- -
+ + + + - - - - -
- " - onClick="javascript:enregistrer_modif_lien_parente();"> -
+ + + + + + + + + + + + + + +