본문으로 건너뛰기
  2026년 3월 14일 토요일
  2 답변
  25회 방문
  구독하다
For a quick export for all my tables i have added some code to implement a "EXPORT" button.
Please add these to the next official version.


edited file: /modern/admin/tmpl/droptables/default.php to add the "Export all"

button:
<a id="export_all" class="button" href="#" style="background-color: white; border: 1px solid grey; color: black; margin-left: 10px; padding: 10px">Export all</a>

Skript:
// Add export all tables function
jQuery(document).ready(function ($) {
$('#export_all').on('click', function(e) {
e.preventDefault();
// Get all table IDs from the current view
var tableIds = [];
var base_export_url = "<?php echo JUri::root() . 'administrator/';?>index.php?option=com_droptables&task=excel.export&format_excel=xlsx&front=0&onlydata=1&id=";
if (Droptables.listTable) {
for (var catID in Droptables.listTable) {
if (Droptables.listTable.hasOwnProperty(catID)) {
if (typeof Droptables.listTable[catID] !== 'undefined' && Droptables.listTable[catID].length > 0) {
Droptables.listTable[catID].forEach(function(table) {
tableIds.push(table.id);
window.open(base_export_url + table.id, '_blank');
});
}
}
}

console.log('Table IDs:', tableIds);
} else {
console.log('No tables found');
}

return false;
GR
default.php 파일이 누락되었습니다. 여기 ZIP 파일이 있습니다
에이
한 달 전
안녕하세요,

문의해 주셔서 감사합니다!
이 포럼은 사전 판매 문의 전용입니다.
페이지를 통해 헬프데스크에 지원 티켓을 제출해 주세요 지원 > 지원 티켓.
저희 기술팀에서 문제를 조사하고 해결책을 제시해 드리겠습니다.

감사합니다.
  • 페이지 :
  • 1
이 게시글에는 아직 댓글이 없습니다.