diff --git a/Js/fonctions.js b/Js/fonctions.js
index a47fe87e..61609652 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -91642,4 +91642,38 @@ function loadMessageSection(section) {
$(target).html('
Erreur de chargement
');
}
});
+}
+
+function initSmartTable(selector = '.datatable-inter', pageTitle = 'Export Données') {
+ if ($(selector).length === 0) return;
+
+ return $(selector).DataTable({
+ "dom": '<"d-flex justify-content-between align-items-center p-3 border-bottom"<"dt-buttons-custom"B><"dt-search-custom"f>>t<"d-flex justify-content-between align-items-center p-3 bg-light"ip>',
+ "buttons": [
+ {
+ extend: 'excelHtml5',
+ text: 'Excel',
+ className: 'btn btn-success btn-sm fw-bold border-0 shadow-sm px-3 me-2'
+ },
+ {
+ extend: 'pdfHtml5',
+ text: 'PDF',
+ className: 'btn btn-danger btn-sm fw-bold border-0 shadow-sm px-3',
+ title: pageTitle,
+ orientation: 'landscape',
+ pageSize: 'A4'
+ }
+ ],
+ "language": {
+ "url": "//cdn.datatables.net/plug-ins/1.13.6/i18n/fr-FR.json",
+ "search": "",
+ "searchPlaceholder": "Rechercher..."
+ },
+ "pageLength": 10,
+ "drawCallback": function() {
+ // Style dynamique de la barre de recherche
+ $('.dataTables_filter input').addClass('form-control form-control-sm rounded-pill border-2 ps-3 shadow-none');
+ $('.dataTables_paginate .paginate_button').addClass('btn btn-xs mx-1');
+ }
+ });
}
\ No newline at end of file
diff --git a/Vue/Ajaxmotifdepassement/index.php b/Vue/Ajaxmotifdepassement/index.php
index bd410d56..b1d75eee 100755
--- a/Vue/Ajaxmotifdepassement/index.php
+++ b/Vue/Ajaxmotifdepassement/index.php
@@ -5,7 +5,7 @@
-
+
| = _("CODE") ?> |
@@ -29,3 +29,8 @@
+
diff --git a/Vue/Ajaxtextefacturationgarant/index.php b/Vue/Ajaxtextefacturationgarant/index.php
index b2f19a95..00821da4 100755
--- a/Vue/Ajaxtextefacturationgarant/index.php
+++ b/Vue/Ajaxtextefacturationgarant/index.php
@@ -5,7 +5,7 @@
-
+
| = _("CODE") ?> |
@@ -34,4 +34,10 @@
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 2cf2b2f9..72c8b517 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -64,7 +64,12 @@ $descriptionVue = $_SESSION['descriptionVue'];
-
+
+
+
+
+
+
@@ -92,6 +97,7 @@ $descriptionVue = $_SESSION['descriptionVue'];
+
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-