droptables أضفتُ بعض التعليمات البرمجية لتفعيل زر "تصدير".
يُرجى إضافة هذه التعليمات إلى الإصدار الرسمي القادم.
الملف المُعدَّل: /modern/admin/tmpl/droptables/default.php لإضافة
زر "تصدير الكل":
:
// إضافة دالة تصدير جميع الجداول
jQuery(document).ready(function ($) {
$('#export_all').on('click', function(e) {
e.preventDefault();
// الحصول على جميع معرّفات الجداول من العرض الحالي
var tableIds = [];
var base_export_url = " index.php?option=com_droptables droptables task=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;
يُرجى إضافة هذه التعليمات إلى الإصدار الرسمي القادم.
الملف المُعدَّل: /modern/admin/tmpl/droptables/default.php لإضافة
زر "تصدير الكل":
:
// إضافة دالة تصدير جميع الجداول
jQuery(document).ready(function ($) {
$('#export_all').on('click', function(e) {
e.preventDefault();
// الحصول على جميع معرّفات الجداول من العرض الحالي
var tableIds = [];
var base_export_url = " index.php?option=com_droptables droptables task=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
لم يتم الرد على هذا المنشور حتى الآن.
