mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
support export of folders in excel file
This commit is contained in:
parent
435c94f585
commit
ca29a27187
|
@ -678,7 +678,7 @@ if($fullsearch) {
|
|||
|
||||
$entries = array();
|
||||
$fcount = 0;
|
||||
if(!isset($_GET['action']) || $_GET['action'] != 'export') {
|
||||
// if(!isset($_GET['action']) || $_GET['action'] != 'export') {
|
||||
if($resArr['folders']) {
|
||||
foreach ($resArr['folders'] as $entry) {
|
||||
if ($entry->getAccessMode($user) >= M_READ) {
|
||||
|
@ -687,7 +687,7 @@ if($fullsearch) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
$dcount = 0;
|
||||
if($resArr['docs']) {
|
||||
foreach ($resArr['docs'] as $entry) {
|
||||
|
|
|
@ -243,6 +243,16 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
if($extraheader = $this->callHook('extraDownloadFolderHeader'))
|
||||
$downmgr->addFolderHeader($extraheader);
|
||||
foreach($entries as $entry) {
|
||||
if($entry->isType('folder')) {
|
||||
if(empty($marks) || !empty($marks['F'.$entry->getId()])) {
|
||||
$extracols = $this->callHook('extraDownloadFolderColumns', $entry);
|
||||
$downmgr->addFolderItem($entry, $extracols);
|
||||
}
|
||||
}
|
||||
}
|
||||
$filename = tempnam(sys_get_temp_dir(), '');
|
||||
if($includecontent) {
|
||||
$downmgr->createArchive($filename);
|
||||
|
@ -1463,7 +1473,7 @@ $(document).ready(function() {
|
|||
/* Batch operations {{{ */
|
||||
if($settings->_batchOperations && $total)
|
||||
$this->contentHeading(getMLText('batch_operation'));
|
||||
if($totaldocs) {
|
||||
if($totaldocs || $totalfolders) {
|
||||
if(in_array('export', $settings->_batchOperations)) {
|
||||
ob_start();
|
||||
$this->formField(
|
||||
|
|
Loading…
Reference in New Issue
Block a user