From e3a8c97f77bd2b0906fa02c22d3d36d7dddba81c Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Fri, 13 Mar 2026 13:50:09 +0000 Subject: [PATCH] df --- Js/fonctions.js | 40 +++++++++++ Vue/Paramlienparente/index.php | 2 +- Vue/Parammessages/index.php | 120 ++++++++++++++++----------------- 3 files changed, 101 insertions(+), 61 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index 87fdf78d..f95dfedd 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -92203,4 +92203,44 @@ function initSmartTable(selector = '.datatable-inter', pageTitle = 'Export Donn } return table; +} + + +function loadMessageSection(section) { + let url = ""; + let target = "#content-" + section; + let donnees = ""; + + // Détermination de l'ID du tableau et du titre pour l'export + let tableId = (section === 'Motifs') ? '#tableMotifs' : '#tableTextes'; + let pageTitle = (section === 'Motifs') ? 'Liste des Motifs de Dépassement' : 'Liste des Textes de Facturation'; + + if (section === 'Motifs') url = $("#racineWeb").val() + "Ajaxmotifdepassement/"; + if (section === 'Facturation') url = $("#racineWeb").val() + "Ajaxtextefacturationgarant/"; + + // Si déjà chargé, on ajuste simplement les colonnes pour le rendu visuel + if ($(target).find('table').length > 0) { + if ($.fn.DataTable.isDataTable(tableId)) { + $(tableId).DataTable().columns.adjust(); + } + return; + } + + $.ajax({ + url: url, + type: 'post', + data: donnees, + success: function(data) { + // 1. Injection du contenu HTML + $(target).html(data); + + // 2. Initialisation forcée avec un léger délai pour laisser le DOM respirer + setTimeout(function() { + initSmartTable(tableId, pageTitle, false); + }, 150); + }, + error: function() { + $(target).html('
Erreur de chargement
'); + } + }); } \ No newline at end of file diff --git a/Vue/Paramlienparente/index.php b/Vue/Paramlienparente/index.php index 6365c948..f23741a0 100755 --- a/Vue/Paramlienparente/index.php +++ b/Vue/Paramlienparente/index.php @@ -8,7 +8,7 @@

-

+

diff --git a/Vue/Parammessages/index.php b/Vue/Parammessages/index.php index e25185a6..14cbd7eb 100755 --- a/Vue/Parammessages/index.php +++ b/Vue/Parammessages/index.php @@ -1,62 +1,62 @@ -titre = "INTER SANTE - Paramètres des messages systèmes"; ?> +
+
+
+
+
+ +
+
+

+

+
+
+
+
+ +
+ +
+

+ +

+
+
+
Chargement...
+
+
+
+ +
+

+ +

+
+
+
Chargement...
+
+
+
+ +
+
+ - - - -
- -
- - - -
-
-
- -
- -
- - - -
-
-
+.accordion-button:not(.collapsed) { + background-color: var(--color-primary-ghost) !important; + color: var(--color-primary) !important; + box-shadow: none; +} +.accordion-button:after { background-size: 1rem; } +.accordion-button:focus { border-color: transparent; box-shadow: none; } + \ No newline at end of file