diff --git a/Js/fonctions.js b/Js/fonctions.js
index be14563..96d4b81 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -402,7 +402,7 @@ function appliquerDataTable() {
$('.tabliste').each(function() {
const $table = $(this);
- // Détecter les colonnes avec data-hidden="true"
+ // Détecter les colonnes cachées
const hiddenTargets = [];
$table.find('thead th').each(function(index) {
if ($(this).data('hidden')) {
@@ -420,6 +420,14 @@ function appliquerDataTable() {
language: translations[codeLangue] || translations.fr_FR,
columnDefs: [
{ targets: hiddenTargets, visible: false, searchable: true }
+ ],
+ dom: 'Bfrtip', // B = Buttons, f = filter, r = processing, t = table, i = info, p = pagination
+ buttons: [
+ { extend: 'copy', text: 'Copier' },
+ { extend: 'csv', text: 'CSV' },
+ { extend: 'excel', text: 'Excel' },
+ { extend: 'pdf', text: 'PDF' },
+ { extend: 'print', text: 'Imprimer' }
]
};
@@ -431,7 +439,6 @@ function appliquerDataTable() {
});
}
-
function raffraichier_gabarit()
{
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 956ca41..414d2fb 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -132,6 +132,9 @@ console.groupEnd();
+
+
+
@@ -590,11 +593,23 @@ console.groupEnd();
+
+
+
+
+
+
+
+
+
+
+
+
-
+