لتصدير جميع جداولي بسرعة الملف المُعدَّل: /modern/admin/tmpl/droptables/default.phpdroptablesلإضافة
أضفتُ بعض التعليمات البرمجية لتفعيل زر "تصدير".
يُرجى إضافة هذه التعليمات إلى الإصدار الرسمي القادم.
زر "تصدير الكل":
تصدير الكل
:
// إضافة دالة تصدير جميع الجداول
jQuery(document).ready(function ($) {
$('#export_all').on('click', function(e) {
e.preventDefault();
// الحصول على جميع معرّفات الجداول من العرض الحالي
var tableIds = [];
var base_export_url = "index.php?option=com_droptablesdroptablestask=excel.export&format_excel=xlsx&front=0&onlydata=1&id=";
if (Droptables) {
for (var catID in Droptables) {
if (Droptables(catID)) {
if (typeof Droptables[catID] !== 'undefined' && Droptables[catID].length > 0) {
Droptables[catID].forEach(function(table) {
tableIds.push(table.id);
window.open(base_export_url + table.id, '_blank'); }
);
}
}
}
console.log('معرفات الجداول:', tableIds);
} else {
console.log('لم يتم العثور على جداول');
}
return false;
أضفتُ بعض التعليمات البرمجية لتفعيل زر "تصدير".
يُرجى إضافة هذه التعليمات إلى الإصدار الرسمي القادم.
زر "تصدير الكل":
تصدير الكل
:
// إضافة دالة تصدير جميع الجداول
jQuery(document).ready(function ($) {
$('#export_all').on('click', function(e) {
e.preventDefault();
// الحصول على جميع معرّفات الجداول من العرض الحالي
var tableIds = [];
var base_export_url = "index.php?option=com_droptablesdroptablestask=excel.export&format_excel=xlsx&front=0&onlydata=1&id=";
if (Droptables) {
for (var catID in Droptables) {
if (Droptables(catID)) {
if (typeof Droptables[catID] !== 'undefined' && Droptables[catID].length > 0) {
Droptables[catID].forEach(function(table) {
tableIds.push(table.id);
window.open(base_export_url + table.id, '_blank'); }
);
}
}
}
console.log('معرفات الجداول:', tableIds);
} else {
console.log('لم يتم العثور على جداول');
}
return false;
- صفحة :
- 1
لم يتم الرد على هذا المنشور حتى الآن.

