mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-01 03:29:05 +01:00
* Add some new filter options to show all sub-directories and files from links
This commit is contained in:
parent
0b62d3ea4a
commit
cc44885bbb
@ -462,6 +462,8 @@ class filemanager_ui
|
|||||||
'' => 'Current directory',
|
'' => 'Current directory',
|
||||||
'2' => 'Directories sorted in',
|
'2' => 'Directories sorted in',
|
||||||
'3' => 'Show hidden files',
|
'3' => 'Show hidden files',
|
||||||
|
'4' => 'All subdirectories',
|
||||||
|
'5' => 'Files from links',
|
||||||
'0' => 'Files from subdirectories',
|
'0' => 'Files from subdirectories',
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -784,16 +786,20 @@ class filemanager_ui
|
|||||||
|
|
||||||
// Re-map so 'No filters' favorite ('') is depth 1
|
// Re-map so 'No filters' favorite ('') is depth 1
|
||||||
$filter = $query['filter'] === '' ? 1 : $query['filter'];
|
$filter = $query['filter'] === '' ? 1 : $query['filter'];
|
||||||
|
|
||||||
|
$maxdepth = $filter && $filter != 4 ? (int)(boolean)$filter : null;
|
||||||
|
if($filter == 5) $maxdepth = 2;
|
||||||
foreach(egw_vfs::find(!empty($query['col_filter']['dir']) ? $query['col_filter']['dir'] : $query['path'],array(
|
foreach(egw_vfs::find(!empty($query['col_filter']['dir']) ? $query['col_filter']['dir'] : $query['path'],array(
|
||||||
'mindepth' => 1,
|
'mindepth' => 1,
|
||||||
'maxdepth' => $filter ? (int)(boolean)$filter : null,
|
'maxdepth' => $maxdepth,
|
||||||
'dirsontop' => $filter <= 1,
|
'dirsontop' => $filter <= 1,
|
||||||
'type' => $filter ? null : 'f',
|
'type' => $filter && $filter != 5 ? ($filter == 4 ? 'd' : null) : ($filter == 5 ? 'F':'f'),
|
||||||
'order' => $query['order'], 'sort' => $query['sort'],
|
'order' => $query['order'], 'sort' => $query['sort'],
|
||||||
'limit' => (int)$query['num_rows'].','.(int)$query['start'],
|
'limit' => (int)$query['num_rows'].','.(int)$query['start'],
|
||||||
'need_mime' => true,
|
'need_mime' => true,
|
||||||
'name_preg' => $namefilter,
|
'name_preg' => $namefilter,
|
||||||
'hidden' => $filter == 3,
|
'hidden' => $filter == 3,
|
||||||
|
'follow' => $filter == 5,
|
||||||
),true) as $path => $row)
|
),true) as $path => $row)
|
||||||
{
|
{
|
||||||
//echo $path; _debug_array($row);
|
//echo $path; _debug_array($row);
|
||||||
|
@ -129,6 +129,7 @@ filemanager configuration admin de Konfiguration Dateimanager
|
|||||||
filemanager fields: filemanager de Dateimanager Felder:
|
filemanager fields: filemanager de Dateimanager Felder:
|
||||||
filename must not be empty! filemanager de Dateinamen darf nicht leer sein!
|
filename must not be empty! filemanager de Dateinamen darf nicht leer sein!
|
||||||
files common de Dateien
|
files common de Dateien
|
||||||
|
files from links filemanager de Zeige Dateien aus verknüpften Einträgen
|
||||||
files from subdirectories filemanager de Dateien aus Unterverzeichnissen
|
files from subdirectories filemanager de Dateien aus Unterverzeichnissen
|
||||||
files in this directory filemanager de Dateien in diesem Verzeichnis
|
files in this directory filemanager de Dateien in diesem Verzeichnis
|
||||||
filesystem check reported no problems. filemanager de Überprüfung des Dateisystem ergab keine Probleme.
|
filesystem check reported no problems. filemanager de Überprüfung des Dateisystem ergab keine Probleme.
|
||||||
|
@ -129,6 +129,7 @@ filemanager configuration admin en File Manager configuration
|
|||||||
filemanager fields: filemanager en Filemanager fields:
|
filemanager fields: filemanager en Filemanager fields:
|
||||||
filename must not be empty! filemanager en File name must not be empty!
|
filename must not be empty! filemanager en File name must not be empty!
|
||||||
files common en Files
|
files common en Files
|
||||||
|
files from links filemanager en Files from links
|
||||||
files from subdirectories filemanager en Files from sub directories
|
files from subdirectories filemanager en Files from sub directories
|
||||||
files in this directory filemanager en Files in this directory
|
files in this directory filemanager en Files in this directory
|
||||||
filesystem check reported no problems. filemanager en Filesystem check reported no problems.
|
filesystem check reported no problems. filemanager en Filesystem check reported no problems.
|
||||||
|
Loading…
Reference in New Issue
Block a user