mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-23 18:11:31 +00:00
new method showConfigFolder() for selecting a folder, use for libraryFolder
This commit is contained in:
parent
486a685873
commit
56c35b5eba
|
@ -225,6 +225,19 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
|||
<?php
|
||||
} /* }}} */
|
||||
|
||||
protected function showConfigFolder($title, $name, $allowempty=false, $multiple=false, $size=0) { /* {{{ */
|
||||
$settings = $this->params['settings'];
|
||||
$dms = $this->params['dms'];
|
||||
?>
|
||||
<tr title="<?= getMLText($title."_desc") ?>">
|
||||
<td><?= getMLText($title) ?>:</td>
|
||||
<td>
|
||||
<?php $this->printFolderChooserHtml($name, M_READWRITE, -1, $dms->getFolder($settings->{"_".$name}), $name);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function js() { /* {{{ */
|
||||
$extmgr = $this->params['extmgr'];
|
||||
|
||||
|
@ -360,10 +373,7 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk))
|
|||
<?php $this->showConfigOption('settings_sortUsersInList', 'sortUsersInList', array(' '=>'settings_sortUsersInList_val_login', 'fullname'=>'settings_sortUsersInList_val_fullname'), false, true); ?>
|
||||
<?php $this->showConfigOption('settings_sortFoldersDefault', 'sortFoldersDefault', array('u'=>'settings_sortFoldersDefault_val_unsorted', 's'=>'settings_sortFoldersDefault_val_sequence', 'n'=>'settings_sortFoldersDefault_val_name'), false, true); ?>
|
||||
<?php $this->showConfigOption('settings_defaultDocPosition', 'defaultDocPosition', array('end'=>'settings_defaultDocPosition_val_end', 'start'=>'settings_defaultDocPosition_val_start'), false, true); ?>
|
||||
<tr title="<?php printMLText("settings_libraryFolder_desc");?>">
|
||||
<td><?php printMLText("settings_libraryFolder");?>:</td>
|
||||
<td><?php $this->printFolderChooserHtml("form1", M_READWRITE, -1, $dms->getFolder($settings->_libraryFolder), 'libraryFolder');?></td>
|
||||
</tr>
|
||||
<?php $this->showConfigFolder('settings_libraryFolder', 'libraryFolder'); ?>
|
||||
|
||||
<!--
|
||||
-- SETTINGS - SITE - WEBDAV
|
||||
|
|
Loading…
Reference in New Issue
Block a user