2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Implementation of Settings view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Include parent class
|
|
|
|
*/
|
|
|
|
require_once("class.Bootstrap.php");
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which outputs the html page for Settings view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
2013-02-14 11:10:53 +00:00
|
|
|
class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2015-08-19 07:20:06 +00:00
|
|
|
protected function showTextField($name, $value, $type='', $placeholder='') { /* {{{ */
|
2015-08-13 09:50:49 +00:00
|
|
|
if($type != 'password' && strlen($value) > 80)
|
2015-08-13 09:56:48 +00:00
|
|
|
echo '<textarea class="input-xxlarge" name="'.$name.'">'.$value.'</textarea>';
|
2015-08-13 20:21:47 +00:00
|
|
|
else {
|
|
|
|
if(strlen($value) > 40)
|
|
|
|
$class = 'input-xxlarge';
|
|
|
|
elseif(strlen($value) > 30)
|
|
|
|
$class = 'input-xlarge';
|
|
|
|
elseif(strlen($value) > 18)
|
|
|
|
$class = 'input-large';
|
|
|
|
elseif(strlen($value) > 12)
|
|
|
|
$class = 'input-medium';
|
|
|
|
else
|
|
|
|
$class = 'input-small';
|
|
|
|
echo '<input '.($type=='password' ? 'type="password"' : 'type="text"').'" class="'.$class.'" name="'.$name.'" value="'.$value.'" placeholder="'.$placeholder.'"/>';
|
|
|
|
}
|
2015-08-13 09:50:49 +00:00
|
|
|
} /* }}} */
|
|
|
|
|
2016-01-28 12:37:16 +00:00
|
|
|
function js() { /* {{{ */
|
2016-02-17 10:43:19 +00:00
|
|
|
|
|
|
|
header('Content-Type: application/javascript');
|
2016-01-28 12:37:16 +00:00
|
|
|
?>
|
|
|
|
$(document).ready( function() {
|
|
|
|
$('#settingstab li a').click(function(event) {
|
|
|
|
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
|
|
|
|
});
|
2016-02-15 08:27:44 +00:00
|
|
|
|
|
|
|
$('a.sendtestmail').click(function(ev){
|
|
|
|
ev.preventDefault();
|
|
|
|
$.ajax({url: '../op/op.Ajax.php',
|
|
|
|
type: 'GET',
|
|
|
|
dataType: "json",
|
|
|
|
data: {command: 'testmail'},
|
|
|
|
success: function(data) {
|
|
|
|
console.log(data);
|
|
|
|
noty({
|
|
|
|
text: data.msg,
|
|
|
|
type: (data.error) ? 'error' : 'success',
|
|
|
|
dismissQueue: true,
|
|
|
|
layout: 'topRight',
|
|
|
|
theme: 'defaultTheme',
|
|
|
|
timeout: 1500,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2016-01-28 12:37:16 +00:00
|
|
|
});
|
|
|
|
<?php
|
|
|
|
} /* }}} */
|
|
|
|
|
2012-12-14 07:53:13 +00:00
|
|
|
function show() { /* {{{ */
|
|
|
|
$dms = $this->params['dms'];
|
|
|
|
$user = $this->params['user'];
|
|
|
|
$settings = $this->params['settings'];
|
2015-03-11 17:24:14 +00:00
|
|
|
$currenttab = $this->params['currenttab'];
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
$this->htmlStartPage(getMLText("admin_tools"));
|
|
|
|
$this->globalNavigation();
|
|
|
|
$this->contentStart();
|
|
|
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
|
|
|
$this->contentHeading(getMLText("settings"));
|
|
|
|
|
|
|
|
?>
|
|
|
|
<form action="../op/op.Settings.php" method="post" enctype="multipart/form-data" name="form0" >
|
|
|
|
<input type="hidden" name="action" value="saveSettings" />
|
2015-07-15 05:25:45 +00:00
|
|
|
<input type="hidden" id="currenttab" name="currenttab" value="<?php echo $currenttab ? $currenttab : 'site'; ?>" />
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
if(!is_writeable($settings->_configFilePath)) {
|
|
|
|
print "<div class=\"alert alert-warning\">";
|
|
|
|
echo "<p>".getMLText("settings_notwritable")."</p>";
|
|
|
|
print "</div>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs" id="settingstab">
|
2015-03-11 17:24:14 +00:00
|
|
|
<li class="<?php if(!$currenttab || $currenttab == 'site') echo 'active'; ?>"><a data-target="#site" data-toggle="tab"><?php printMLText('settings_Site'); ?></a></li>
|
|
|
|
<li class="<?php if($currenttab == 'system') echo 'active'; ?>"><a data-target="#system" data-toggle="tab"><?php printMLText('settings_System'); ?></a></li>
|
|
|
|
<li class="<?php if($currenttab == 'advanced') echo 'active'; ?>"><a data-target="#advanced" data-toggle="tab"><?php printMLText('settings_Advanced'); ?></a></li>
|
2015-03-17 05:52:33 +00:00
|
|
|
<li class="<?php if($currenttab == 'extensions') echo 'active'; ?>"><a data-target="#extensions" data-toggle="tab"><?php printMLText('settings_Extensions'); ?></a></li>
|
2012-12-14 07:53:13 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
2015-04-16 06:11:05 +00:00
|
|
|
<div class="tab-pane <?php if(!$currenttab || $currenttab == 'site') echo 'active'; ?>" id="site">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php $this->contentContainerStart(); ?>
|
|
|
|
<table class="table-condensed">
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SITE - DISPLAY
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Display");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_siteName_desc");?>">
|
|
|
|
<td><?php printMLText("settings_siteName");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField('siteName', $settings->_siteName); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_footNote_desc");?>">
|
|
|
|
<td><?php printMLText("settings_footNote");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("footNote", $settings->_footNote); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_printDisclaimer_desc");?>">
|
|
|
|
<td><?php printMLText("settings_printDisclaimer");?>:</td>
|
|
|
|
<td><input name="printDisclaimer" type="checkbox" <?php if ($settings->_printDisclaimer) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2016-11-17 10:31:58 +00:00
|
|
|
<tr title="<?php printMLText("settings_available_languages_desc");?>">
|
|
|
|
<td><?php printMLText("settings_available_languages");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="availablelanguages[]" multiple>
|
|
|
|
<?php
|
|
|
|
$languages = getAvailableLanguages();
|
|
|
|
foreach($languages as $language)
|
|
|
|
{
|
|
|
|
echo '<option value="' . $language . '" ';
|
|
|
|
if (in_array($language, $settings->_availablelanguages))
|
|
|
|
echo "selected";
|
|
|
|
echo '>' . getMLText($language) . '</option>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_language_desc");?>">
|
2012-12-14 07:53:13 +00:00
|
|
|
<td><?php printMLText("settings_language");?>:</td>
|
|
|
|
<td>
|
2016-11-17 10:31:58 +00:00
|
|
|
<select name="language">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
2016-11-17 10:31:58 +00:00
|
|
|
$languages = getAvailableLanguages();
|
2012-12-14 07:53:13 +00:00
|
|
|
foreach($languages as $language)
|
|
|
|
{
|
|
|
|
echo '<option value="' . $language . '" ';
|
|
|
|
if ($settings->_language==$language)
|
|
|
|
echo "selected";
|
2013-02-27 19:40:45 +00:00
|
|
|
echo '>' . getMLText($language) . '</option>';
|
2012-12-14 07:53:13 +00:00
|
|
|
}
|
|
|
|
?>
|
2016-11-17 10:31:58 +00:00
|
|
|
</select>
|
2012-12-14 07:53:13 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_theme_desc");?>">
|
|
|
|
<td><?php printMLText("settings_theme");?>:</td>
|
|
|
|
<td>
|
2016-11-17 10:31:58 +00:00
|
|
|
<select name="theme">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
$themes = UI::getStyles();
|
|
|
|
foreach($themes as $theme)
|
|
|
|
{
|
|
|
|
echo '<option value="' . $theme . '" ';
|
|
|
|
if ($settings->_theme==$theme)
|
|
|
|
echo "selected";
|
|
|
|
echo '>' . $theme . '</option>';
|
|
|
|
}
|
|
|
|
?>
|
2016-11-17 10:31:58 +00:00
|
|
|
</select>
|
2012-12-14 07:53:13 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2014-03-18 09:03:39 +00:00
|
|
|
<tr title="<?php printMLText("settings_previewWidthList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_previewWidthList");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("previewWidthList", $settings->_previewWidthList); ?></td>
|
2014-03-18 09:03:39 +00:00
|
|
|
</tr>
|
2017-09-20 07:20:56 +00:00
|
|
|
<tr title="<?php printMLText("settings_previewWidthMenuList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_previewWidthMenuList");?>:</td>
|
|
|
|
<td><?php $this->showTextField("previewWidthMenuList", $settings->_previewWidthMenuList); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_previewWidthDropFolderList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_previewWidthDropFolderList");?>:</td>
|
|
|
|
<td><?php $this->showTextField("previewWidthDropFolderList", $settings->_previewWidthDropFolderList); ?></td>
|
|
|
|
</tr>
|
2014-03-18 09:03:39 +00:00
|
|
|
<tr title="<?php printMLText("settings_previewWidthDetail_desc");?>">
|
|
|
|
<td><?php printMLText("settings_previewWidthDetail");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("previewWidthDetail", $settings->_previewWidthDetail); ?></td>
|
2014-03-18 09:03:39 +00:00
|
|
|
</tr>
|
2016-11-07 08:25:06 +00:00
|
|
|
<tr title="<?php printMLText("settings_showFullPreview_desc");?>">
|
|
|
|
<td><?php printMLText("settings_showFullPreview");?>:</td>
|
|
|
|
<td><input name="showFullPreview" type="checkbox" <?php if ($settings->_showFullPreview) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_convertToPdf_desc");?>">
|
|
|
|
<td><?php printMLText("settings_convertToPdf");?>:</td>
|
|
|
|
<td><input name="convertToPdf" type="checkbox" <?php if ($settings->_convertToPdf) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2017-12-14 08:39:05 +00:00
|
|
|
<tr title="<?php printMLText("settings_maxItemsPerPage_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxItemsPerPage");?>:</td>
|
|
|
|
<td><?php $this->showTextField("maxItemsPerPage", $settings->_maxItemsPerPage); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_incItemsPerPage_desc");?>">
|
|
|
|
<td><?php printMLText("settings_incItemsPerPage");?>:</td>
|
|
|
|
<td><?php $this->showTextField("incItemsPerPage", $settings->_incItemsPerPage); ?></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SITE - EDITION
|
|
|
|
-->
|
|
|
|
<tr><td></td></tr><tr ><td><b> <?php printMLText("settings_Edition");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_strictFormCheck_desc");?>">
|
|
|
|
<td><?php printMLText("settings_strictFormCheck");?>:</td>
|
|
|
|
<td><input name="strictFormCheck" type="checkbox" <?php if ($settings->_strictFormCheck) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_viewOnlineFileTypes_desc");?>">
|
|
|
|
<td><?php printMLText("settings_viewOnlineFileTypes");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("viewOnlineFileTypes", $settings->getViewOnlineFileTypesToString()); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2016-03-09 06:45:37 +00:00
|
|
|
<tr title="<?php printMLText("settings_editOnlineFileTypes_desc");?>">
|
|
|
|
<td><?php printMLText("settings_editOnlineFileTypes");?>:</td>
|
|
|
|
<td><?php $this->showTextField("editOnlineFileTypes", $settings->getEditOnlineFileTypesToString()); ?></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableConverting_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableConverting");?>:</td>
|
|
|
|
<td><input name="enableConverting" type="checkbox" <?php if ($settings->_enableConverting) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableEmail_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableEmail");?>:</td>
|
|
|
|
<td><input name="enableEmail" type="checkbox" <?php if ($settings->_enableEmail) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableUsersView_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableUsersView");?>:</td>
|
|
|
|
<td><input name="enableUsersView" type="checkbox" <?php if ($settings->_enableUsersView) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableFullSearch_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableFullSearch");?>:</td>
|
|
|
|
<td><input name="enableFullSearch" type="checkbox" <?php if ($settings->_enableFullSearch) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2016-08-02 15:08:54 +00:00
|
|
|
<tr title="<?php printMLText("settings_maxSizeForFullText_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxSizeForFullText");?>:</td>
|
|
|
|
<td><?php $this->showTextField("maxSizeForFullText", $settings->_maxSizeForFullText); ?></td>
|
|
|
|
</tr>
|
2015-08-10 19:41:51 +00:00
|
|
|
<tr title="<?php printMLText("settings_fullSearchEngine_desc");?>">
|
|
|
|
<td><?php printMLText("settings_fullSearchEngine");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="fullSearchEngine">
|
|
|
|
<option value="lucene" <?php if ($settings->_fullSearchEngine=='lucene') echo "selected" ?>><?php printMLText("settings_fullSearchEngine_vallucene");?></option>
|
|
|
|
<option value="sqlitefts" <?php if ($settings->_fullSearchEngine=='sqlitefts') echo "selected" ?>><?php printMLText("settings_fullSearchEngine_valsqlitefts");?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-02-01 18:57:08 +00:00
|
|
|
<tr title="<?php printMLText("settings_defaultSearchMethod_desc");?>">
|
|
|
|
<td><?php printMLText("settings_defaultSearchMethod");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="defaultSearchMethod">
|
|
|
|
<option value="database" <?php if ($settings->_defaultSearchMethod=='database') echo "selected" ?>><?php printMLText("settings_defaultSearchMethod_valdatabase");?></option>
|
|
|
|
<option value="fulltext" <?php if ($settings->_defaultSearchMethod=='fulltext') echo "selected" ?>><?php printMLText("settings_defaultSearchMethod_valfulltext");?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-10-04 14:54:16 +00:00
|
|
|
<tr title="<?php printMLText("settings_showSingleSearchHit_desc");?>">
|
|
|
|
<td><?php printMLText("settings_showSingleSearchHit");?>:</td>
|
|
|
|
<td><input name="showSingleSearchHit" type="checkbox" <?php if ($settings->_showSingleSearchHit) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_stopWordsFile_desc");?>">
|
|
|
|
<td><?php printMLText("settings_stopWordsFile");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("stopWordsFile", $settings->_stopWordsFile); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2014-07-11 06:41:25 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableClipboard_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableClipboard");?>:</td>
|
|
|
|
<td><input name="enableClipboard" type="checkbox" <?php if ($settings->_enableClipboard) echo "checked" ?> /></td>
|
2017-05-12 16:09:53 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableMenuTasks_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableMenuTasks");?>:</td>
|
|
|
|
<td><input name="enableMenuTasks" type="checkbox" <?php if ($settings->_enableMenuTasks) echo "checked" ?> /></td>
|
2017-07-31 18:30:59 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableDropFolderList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableDropFolderList");?>:</td>
|
|
|
|
<td><input name="enableDropFolderList" type="checkbox" <?php if ($settings->_enableDropFolderList) echo "checked" ?> /></td>
|
2017-04-11 06:34:32 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableSessionList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableSessionList");?>:</td>
|
2017-04-11 15:36:40 +00:00
|
|
|
<td><input name="enableSessionList" type="checkbox" <?php if ($settings->_enableSessionList) echo "checked" ?> /></td>
|
2014-07-11 06:41:25 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableDropUpload_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableDropUpload");?>:</td>
|
|
|
|
<td><input name="enableDropUpload" type="checkbox" <?php if ($settings->_enableDropUpload) echo "checked" ?> /></td>
|
2017-04-27 04:50:12 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableMultiUpload_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableMultiUpload");?>:</td>
|
|
|
|
<td><input name="enableMultiUpload" type="checkbox" <?php if ($settings->_enableMultiUpload) echo "checked" ?> /></td>
|
2014-07-11 06:41:25 +00:00
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableFolderTree_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableFolderTree");?>:</td>
|
|
|
|
<td><input name="enableFolderTree" type="checkbox" <?php if ($settings->_enableFolderTree) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_expandFolderTree_desc");?>">
|
|
|
|
<td><?php printMLText("settings_expandFolderTree");?>:</td>
|
|
|
|
<td>
|
|
|
|
<SELECT name="expandFolderTree">
|
|
|
|
<OPTION VALUE="0" <?php if ($settings->_expandFolderTree==0) echo "SELECTED" ?> ><?php printMLText("settings_expandFolderTree_val0");?></OPTION>
|
|
|
|
<OPTION VALUE="1" <?php if ($settings->_expandFolderTree==1) echo "SELECTED" ?> ><?php printMLText("settings_expandFolderTree_val1");?></OPTION>
|
|
|
|
<OPTION VALUE="2" <?php if ($settings->_expandFolderTree==2) echo "SELECTED" ?> ><?php printMLText("settings_expandFolderTree_val2");?></OPTION>
|
|
|
|
</SELECT>
|
|
|
|
</tr>
|
2013-04-10 13:41:38 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableRecursiveCount_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableRecursiveCount");?>:</td>
|
|
|
|
<td><input name="enableRecursiveCount" type="checkbox" <?php if ($settings->_enableRecursiveCount) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_maxRecursiveCount_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxRecursiveCount");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("maxRecursiveCount", $settings->_maxRecursiveCount); ?></td>
|
2013-04-10 13:41:38 +00:00
|
|
|
</tr>
|
2013-01-28 10:40:04 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableLanguageSelector_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableLanguageSelector");?>:</td>
|
|
|
|
<td><input name="enableLanguageSelector" type="checkbox" <?php if ($settings->_enableLanguageSelector) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2016-02-01 18:57:08 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableHelp_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableHelp");?>:</td>
|
|
|
|
<td><input name="enableHelp" type="checkbox" <?php if ($settings->_enableHelp) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2014-02-01 15:06:12 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableThemeSelector_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableThemeSelector");?>:</td>
|
|
|
|
<td><input name="enableThemeSelector" type="checkbox" <?php if ($settings->_enableThemeSelector) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_sortUsersInList_desc");?>">
|
|
|
|
<td><?php printMLText("settings_sortUsersInList");?>:</td>
|
|
|
|
<td>
|
2018-02-07 07:43:46 +00:00
|
|
|
<select name="sortUsersInList">
|
|
|
|
<option value="" <?php if ($settings->_sortUsersInList=='') echo "selected" ?> ><?php printMLText("settings_sortUsersInList_val_login");?></option>
|
|
|
|
<option value="fullname" <?php if ($settings->_sortUsersInList=='fullname') echo "selected" ?> ><?php printMLText("settings_sortUsersInList_val_fullname");?></option>
|
|
|
|
</select>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2014-02-01 14:23:19 +00:00
|
|
|
<tr title="<?php printMLText("settings_sortFoldersDefault_desc");?>">
|
|
|
|
<td><?php printMLText("settings_sortFoldersDefault");?>:</td>
|
|
|
|
<td>
|
2018-02-07 07:43:46 +00:00
|
|
|
<select name="sortFoldersDefault">
|
|
|
|
<option value="u" <?php if ($settings->_sortFoldersDefault=='') echo "selected" ?> ><?php printMLText("settings_sortFoldersDefault_val_unsorted");?></option>
|
|
|
|
<option value="s" <?php if ($settings->_sortFoldersDefault=='s') echo "selected" ?> ><?php printMLText("settings_sortFoldersDefault_val_sequence");?></option>
|
|
|
|
<option value="n" <?php if ($settings->_sortFoldersDefault=='n') echo "selected" ?> ><?php printMLText("settings_sortFoldersDefault_val_name");?></option>
|
|
|
|
</select>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_defaultDocPosition_desc");?>">
|
|
|
|
<td><?php printMLText("settings_defaultDocPosition");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="defaultDocPosition">
|
|
|
|
<option value="end" <?php if ($settings->_defaultDocPosition=='end') echo "selected" ?> ><?php printMLText("settings_defaultDocPosition_val_end");?></option>
|
|
|
|
<option value="start" <?php if ($settings->_defaultDocPosition=='start') echo "selected" ?> ><?php printMLText("settings_defaultDocPosition_val_start");?></option>
|
|
|
|
</select>
|
2014-02-01 14:23:19 +00:00
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SITE - CALENDAR
|
|
|
|
-->
|
|
|
|
<tr><td></td></tr><tr ><td><b> <?php printMLText("settings_Calendar");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableCalendar_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableCalendar");?>:</td>
|
|
|
|
<td><input name="enableCalendar" type="checkbox" <?php if ($settings->_enableCalendar) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_calendarDefaultView_desc");?>">
|
|
|
|
<td><?php printMLText("settings_calendarDefaultView");?>:</td>
|
|
|
|
<td>
|
|
|
|
<SELECT name="calendarDefaultView">
|
|
|
|
<OPTION VALUE="w" <?php if ($settings->_calendarDefaultView=="w") echo "SELECTED" ?> ><?php printMLText("week_view");?></OPTION>
|
|
|
|
<OPTION VALUE="m" <?php if ($settings->_calendarDefaultView=="m") echo "SELECTED" ?> ><?php printMLText("month_view");?></OPTION>
|
|
|
|
<OPTION VALUE="y" <?php if ($settings->_calendarDefaultView=="y") echo "SELECTED" ?> ><?php printMLText("year_view");?></OPTION>
|
|
|
|
</SELECT>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_firstDayOfWeek_desc");?>">
|
|
|
|
<td><?php printMLText("settings_firstDayOfWeek");?>:</td>
|
|
|
|
<td>
|
|
|
|
<SELECT name="firstDayOfWeek">
|
|
|
|
<OPTION VALUE="0" <?php if ($settings->_firstDayOfWeek=="0") echo "SELECTED" ?> ><?php printMLText("sunday");?></OPTION>
|
|
|
|
<OPTION VALUE="1" <?php if ($settings->_firstDayOfWeek=="1") echo "SELECTED" ?> ><?php printMLText("monday");?></OPTION>
|
|
|
|
<OPTION VALUE="2" <?php if ($settings->_firstDayOfWeek=="2") echo "SELECTED" ?> ><?php printMLText("tuesday");?></OPTION>
|
|
|
|
<OPTION VALUE="3" <?php if ($settings->_firstDayOfWeek=="3") echo "SELECTED" ?> ><?php printMLText("wednesday");?></OPTION>
|
|
|
|
<OPTION VALUE="4" <?php if ($settings->_firstDayOfWeek=="4") echo "SELECTED" ?> ><?php printMLText("thursday");?></OPTION>
|
|
|
|
<OPTION VALUE="5" <?php if ($settings->_firstDayOfWeek=="5") echo "SELECTED" ?> ><?php printMLText("friday");?></OPTION>
|
|
|
|
<OPTION VALUE="6" <?php if ($settings->_firstDayOfWeek=="6") echo "SELECTED" ?> ><?php printMLText("saturday");?></OPTION>
|
|
|
|
</SELECT>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php $this->contentContainerEnd(); ?>
|
|
|
|
</div>
|
|
|
|
|
2015-04-16 06:11:05 +00:00
|
|
|
<div class="tab-pane <?php if($currenttab == 'system') echo 'active'; ?>" id="system">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php $this->contentContainerStart(); ?>
|
|
|
|
<table class="table-condensed">
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SYSTEM - SERVER
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Server");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_rootDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_rootDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("rootDir", $settings->_rootDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_httpRoot_desc");?>">
|
|
|
|
<td><?php printMLText("settings_httpRoot");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("httpRoot", $settings->_httpRoot); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_contentDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_contentDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("contentDir", $settings->_contentDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2017-11-21 10:51:45 +00:00
|
|
|
<tr title="<?php printMLText("settings_backupDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_backupDir");?>:</td>
|
|
|
|
<td><?php $this->showTextField("backupDir", $settings->_backupDir); ?></td>
|
|
|
|
</tr>
|
2013-02-18 20:14:05 +00:00
|
|
|
<tr title="<?php printMLText("settings_cacheDir_desc");?>">
|
2012-12-14 07:53:13 +00:00
|
|
|
<td><?php printMLText("settings_cacheDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("cacheDir", $settings->_cacheDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_stagingDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_stagingDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("stagingDir", $settings->_stagingDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_luceneDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_luceneDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("luceneDir", $settings->_luceneDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_dropFolderDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dropFolderDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dropFolderDir", $settings->_dropFolderDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2018-03-14 17:43:01 +00:00
|
|
|
<tr title="<?php printMLText("settings_repositoryUrl_desc");?>">
|
|
|
|
<td><?php printMLText("settings_repositoryUrl");?>:</td>
|
|
|
|
<td><?php $this->showTextField("repositoryUrl", $settings->_repositoryUrl); ?></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_logFileEnable_desc");?>">
|
|
|
|
<td><?php printMLText("settings_logFileEnable");?>:</td>
|
|
|
|
<td><input name="logFileEnable" type="checkbox" <?php if ($settings->_logFileEnable) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_logFileRotation_desc");?>">
|
|
|
|
<td><?php printMLText("settings_logFileRotation");?>:</td>
|
|
|
|
<td>
|
|
|
|
<SELECT name="logFileRotation">
|
|
|
|
<OPTION VALUE="h" <?php if ($settings->_logFileRotation=="h") echo "SELECTED" ?> ><?php printMLText("hourly");?></OPTION>
|
|
|
|
<OPTION VALUE="d" <?php if ($settings->_logFileRotation=="d") echo "SELECTED" ?> ><?php printMLText("daily");?></OPTION>
|
|
|
|
<OPTION VALUE="m" <?php if ($settings->_logFileRotation=="m") echo "SELECTED" ?> ><?php printMLText("monthly");?></OPTION>
|
|
|
|
</SELECT>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableLargeFileUpload_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableLargeFileUpload");?>:</td>
|
|
|
|
<td><input name="enableLargeFileUpload" type="checkbox" <?php if ($settings->_enableLargeFileUpload) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_partitionSize_desc");?>">
|
|
|
|
<td><?php printMLText("settings_partitionSize");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("partitionSize", $settings->_partitionSize); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2017-03-15 15:39:05 +00:00
|
|
|
<tr title="<?php printMLText("settings_maxUploadSize_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxUploadSize");?>:</td>
|
|
|
|
<td><?php $this->showTextField("maxUploadSize", $settings->_maxUploadSize); ?></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<!--
|
|
|
|
-- SETTINGS - SYSTEM - AUTHENTICATION
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Authentication");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableGuestLogin_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableGuestLogin");?>:</td>
|
|
|
|
<td><input name="enableGuestLogin" type="checkbox" <?php if ($settings->_enableGuestLogin) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2016-01-29 15:48:21 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableGuestAutoLogin_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableGuestAutoLogin");?>:</td>
|
|
|
|
<td><input name="enableGuestAutoLogin" type="checkbox" <?php if ($settings->_enableGuestAutoLogin) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_restricted_desc");?>">
|
|
|
|
<td><?php printMLText("settings_restricted");?>:</td>
|
|
|
|
<td><input name="restricted" type="checkbox" <?php if ($settings->_restricted) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableUserImage_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableUserImage");?>:</td>
|
|
|
|
<td><input name="enableUserImage" type="checkbox" <?php if ($settings->_enableUserImage) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_disableSelfEdit_desc");?>">
|
|
|
|
<td><?php printMLText("settings_disableSelfEdit");?>:</td>
|
|
|
|
<td><input name="disableSelfEdit" type="checkbox" <?php if ($settings->_disableSelfEdit) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enablePasswordForgotten_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enablePasswordForgotten");?>:</td>
|
|
|
|
<td><input name="enablePasswordForgotten" type="checkbox" <?php if ($settings->_enablePasswordForgotten) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2015-03-19 08:36:52 +00:00
|
|
|
<tr title="<?php printMLText("settings_passwordStrength_desc");?>">
|
2012-12-14 07:53:13 +00:00
|
|
|
<td><?php printMLText("settings_passwordStrength");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("passwordStrength", $settings->_passwordStrength); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_passwordStrengthAlgorithm_desc");?>">
|
|
|
|
<td><?php printMLText("settings_passwordStrengthAlgorithm");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="passwordStrengthAlgorithm">
|
|
|
|
<option value="simple" <?php if ($settings->_passwordStrengthAlgorithm=='simple') echo "selected" ?>><?php printMLText("settings_passwordStrengthAlgorithm_valsimple");?></option>
|
|
|
|
<option value="advanced" <?php if ($settings->_passwordStrengthAlgorithm=='advanced') echo "selected" ?>><?php printMLText("settings_passwordStrengthAlgorithm_valadvanced");?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_passwordExpiration_desc");?>">
|
|
|
|
<td><?php printMLText("settings_passwordExpiration");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("passwordExpiration", $settings->_passwordExpiration); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_passwordHistory_desc");?>">
|
|
|
|
<td><?php printMLText("settings_passwordHistory");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("passwordHistory", $settings->_passwordHistory); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_loginFailure_desc");?>">
|
|
|
|
<td><?php printMLText("settings_loginFailure");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("loginFailure", $settings->_loginFailure); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2015-07-14 19:23:33 +00:00
|
|
|
<tr title="<?php printMLText("settings_autoLoginUser_desc");?>">
|
|
|
|
<td><?php printMLText("settings_autoLoginUser");?>:</td>
|
2015-08-13 15:55:44 +00:00
|
|
|
<td><?php $this->showTextField("autoLoginUser", $settings->_autoLoginUser); ?></td>
|
2015-07-14 19:23:33 +00:00
|
|
|
</tr>
|
2012-12-19 10:05:34 +00:00
|
|
|
<tr title="<?php printMLText("settings_quota_desc");?>">
|
|
|
|
<td><?php printMLText("settings_quota");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("quota", $settings->_quota); ?></td>
|
2012-12-19 10:05:34 +00:00
|
|
|
</tr>
|
2013-05-31 09:59:12 +00:00
|
|
|
<tr title="<?php printMLText("settings_undelUserIds_desc");?>">
|
|
|
|
<td><?php printMLText("settings_undelUserIds");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("undelUserIds", $settings->_undelUserIds); ?></td>
|
2013-05-31 09:59:12 +00:00
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_encryptionKey_desc");?>">
|
|
|
|
<td><?php printMLText("settings_encryptionKey");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("encryptionKey", $settings->_encryptionKey); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2013-01-24 09:30:35 +00:00
|
|
|
<tr title="<?php printMLText("settings_cookieLifetime_desc");?>">
|
|
|
|
<td><?php printMLText("settings_cookieLifetime");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("cookieLifetime", $settings->_cookieLifetime); ?></td>
|
2013-01-24 09:30:35 +00:00
|
|
|
</tr>
|
2017-01-18 19:58:03 +00:00
|
|
|
<tr title="<?php printMLText("settings_defaultAccessDocs_desc");?>">
|
|
|
|
<td><?php printMLText("settings_defaultAccessDocs");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="defaultAccessDocs">
|
|
|
|
<option value="0" <?php if ($settings->_defaultAccessDocs==0) echo "selected" ?>><?php printMLText("inherited");?></option>
|
|
|
|
<option value="<?php echo M_NONE; ?>" <?php if ($settings->_defaultAccessDocs==M_NONE) echo "selected" ?>><?php printMLText("access_mode_none");?></option>
|
|
|
|
<option value="<?php echo M_READ; ?>" <?php if ($settings->_defaultAccessDocs==M_READ) echo "selected" ?>><?php printMLText("access_mode_read");?></option>
|
|
|
|
<option value="<?php echo M_READWRITE; ?>" <?php if ($settings->_defaultAccessDocs==M_READWRITE) echo "selected" ?>><?php printMLText("access_mode_readwrite");?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!-- TODO Connectors -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SYSTEM - DATABASE
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Database");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_dbDriver_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dbDriver");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dbDriver", $settings->_dbDriver); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_dbHostname_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dbHostname");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dbHostname", $settings->_dbHostname); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_dbDatabase_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dbDatabase");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dbDatabase", $settings->_dbDatabase); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_dbUser_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dbUser");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dbUser", $settings->_dbUser); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_dbPass_desc");?>">
|
|
|
|
<td><?php printMLText("settings_dbPass");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("dbPass", $settings->_dbPass, 'password'); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - SYSTEM - SMTP
|
|
|
|
-->
|
2016-02-15 08:27:44 +00:00
|
|
|
<tr ><td><b> <?php printMLText("settings_SMTP");?></b></td><td><a class="btn sendtestmail"><?php printMLText('send_test_mail'); ?></a></td> </tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_smtpServer_desc");?>">
|
|
|
|
<td><?php printMLText("settings_smtpServer");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("smtpServer", $settings->_smtpServer); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_smtpPort_desc");?>">
|
|
|
|
<td><?php printMLText("settings_smtpPort");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("smtpPort", $settings->_smtpPort); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_smtpSendFrom_desc");?>">
|
|
|
|
<td><?php printMLText("settings_smtpSendFrom");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("smtpSendFrom", $settings->_smtpSendFrom); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2013-09-13 12:54:37 +00:00
|
|
|
<tr title="<?php printMLText("settings_smtpUser_desc");?>">
|
|
|
|
<td><?php printMLText("settings_smtpUser");?>:</td>
|
2015-08-13 15:55:44 +00:00
|
|
|
<td><?php $this->showTextField("smtpUser", $settings->_smtpUser); ?></td>
|
2013-09-13 12:54:37 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_smtpPassword_desc");?>">
|
|
|
|
<td><?php printMLText("settings_smtpPassword");?>:</td>
|
|
|
|
<td><input type="password" name="smtpPassword" value="<?php echo $settings->_smtpPassword ?>" /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
</table>
|
|
|
|
<?php $this->contentContainerEnd(); ?>
|
|
|
|
</div>
|
|
|
|
|
2015-04-16 06:11:05 +00:00
|
|
|
<div class="tab-pane <?php if($currenttab == 'advanced') echo 'active'; ?>" id="advanced">
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php $this->contentContainerStart(); ?>
|
|
|
|
<table class="table-condensed">
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - DISPLAY
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Display");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_siteDefaultPage_desc");?>">
|
|
|
|
<td><?php printMLText("settings_siteDefaultPage");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("siteDefaultPage", $settings->_siteDefaultPage); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_rootFolderID_desc");?>">
|
|
|
|
<td><?php printMLText("settings_rootFolderID");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("rootFolderID", $settings->_rootFolderID); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_titleDisplayHack_desc");?>">
|
|
|
|
<td><?php printMLText("settings_titleDisplayHack");?>:</td>
|
|
|
|
<td><input name="titleDisplayHack" type="checkbox" <?php if ($settings->_titleDisplayHack) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2014-04-08 08:40:20 +00:00
|
|
|
<tr title="<?php printMLText("settings_showMissingTranslations_desc");?>">
|
|
|
|
<td><?php printMLText("settings_showMissingTranslations");?>:</td>
|
|
|
|
<td><input name="showMissingTranslations" type="checkbox" <?php if ($settings->_showMissingTranslations) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - AUTHENTICATION
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Authentication");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_guestID_desc");?>">
|
|
|
|
<td><?php printMLText("settings_guestID");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("guestID", $settings->_guestID); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_adminIP_desc");?>">
|
|
|
|
<td><?php printMLText("settings_adminIP");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("adminIP", $settings->_adminIP); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - EDITION
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Edition");?></b></td> </tr>
|
2013-01-24 09:30:35 +00:00
|
|
|
<tr title="<?php printMLText("settings_workflowMode_desc");?>">
|
|
|
|
<td><?php printMLText("settings_workflowMode");?>:</td>
|
|
|
|
<td>
|
|
|
|
<select name="workflowMode">
|
|
|
|
<option value="traditional" <?php if ($settings->_workflowMode=='traditional') echo "selected" ?>><?php printMLText("settings_workflowMode_valtraditional");?></option>
|
2015-03-16 07:58:10 +00:00
|
|
|
<option value="traditional_only_approval" <?php if ($settings->_workflowMode=='traditional_only_approval') echo "selected" ?>><?php printMLText("settings_workflowMode_valtraditional_only_approval");?></option>
|
2013-01-24 09:30:35 +00:00
|
|
|
<option value="advanced" <?php if ($settings->_workflowMode=='advanced') echo "selected" ?>><?php printMLText("settings_workflowMode_valadvanced");?></option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_versioningFileName_desc");?>">
|
|
|
|
<td><?php printMLText("settings_versioningFileName");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("versioningFileName", $settings->_versioningFileName); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2015-01-29 16:28:40 +00:00
|
|
|
<tr title="<?php printMLText("settings_presetExpirationDate_desc");?>">
|
|
|
|
<td><?php printMLText("settings_presetExpirationDate");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("presetExpirationDate", $settings->_presetExpirationDate); ?></td>
|
2015-01-29 16:28:40 +00:00
|
|
|
</tr>
|
2018-02-26 07:07:51 +00:00
|
|
|
<tr title="<?php printMLText("settings_allowReviewerOnly_desc");?>">
|
|
|
|
<td><?php printMLText("settings_allowReviewerOnly");?>:</td>
|
|
|
|
<td><input name="allowReviewerOnly" type="checkbox" <?php if ($settings->_allowReviewerOnly) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableAdminRevApp_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableAdminRevApp");?>:</td>
|
|
|
|
<td><input name="enableAdminRevApp" type="checkbox" <?php if ($settings->_enableAdminRevApp) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2013-02-27 08:09:00 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableOwnerRevApp_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableOwnerRevApp");?>:</td>
|
|
|
|
<td><input name="enableOwnerRevApp" type="checkbox" <?php if ($settings->_enableOwnerRevApp) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableSelfRevApp_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableSelfRevApp");?>:</td>
|
|
|
|
<td><input name="enableSelfRevApp" type="checkbox" <?php if ($settings->_enableSelfRevApp) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2017-01-16 12:00:22 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableUpdateRevApp_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableUpdateRevApp");?>:</td>
|
|
|
|
<td><input name="enableUpdateRevApp" type="checkbox" <?php if ($settings->_enableUpdateRevApp) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableVersionDeletion_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableVersionDeletion");?>:</td>
|
|
|
|
<td><input name="enableVersionDeletion" type="checkbox" <?php if ($settings->_enableVersionDeletion) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableVersionModification_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableVersionModification");?>:</td>
|
|
|
|
<td><input name="enableVersionModification" type="checkbox" <?php if ($settings->_enableVersionModification) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2013-01-28 10:40:04 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableDuplicateDocNames_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableDuplicateDocNames");?>:</td>
|
|
|
|
<td><input name="enableDuplicateDocNames" type="checkbox" <?php if ($settings->_enableDuplicateDocNames) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2015-06-23 05:44:47 +00:00
|
|
|
<tr title="<?php printMLText("settings_overrideMimeType_desc");?>">
|
|
|
|
<td><?php printMLText("settings_overrideMimeType");?>:</td>
|
|
|
|
<td><input name="overrideMimeType" type="checkbox" <?php if ($settings->_overrideMimeType) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2016-05-23 11:15:50 +00:00
|
|
|
<tr title="<?php printMLText("settings_removeFromDropFolder_desc");?>">
|
|
|
|
<td><?php printMLText("settings_removeFromDropFolder");?>:</td>
|
|
|
|
<td><input name="removeFromDropFolder" type="checkbox" <?php if ($settings->_removeFromDropFolder) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - NOTIFICATION
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Notification");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableOwnerNotification_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableOwnerNotification");?>:</td>
|
|
|
|
<td><input name="enableOwnerNotification" type="checkbox" <?php if ($settings->_enableOwnerNotification) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_enableNotificationAppRev_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableNotificationAppRev");?>:</td>
|
|
|
|
<td><input name="enableNotificationAppRev" type="checkbox" <?php if ($settings->_enableNotificationAppRev) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2015-03-11 17:11:41 +00:00
|
|
|
<tr title="<?php printMLText("settings_enableNotificationWorkflow_desc");?>">
|
|
|
|
<td><?php printMLText("settings_enableNotificationWorkflow");?>:</td>
|
|
|
|
<td><input name="enableNotificationWorkflow" type="checkbox" <?php if ($settings->_enableNotificationWorkflow) echo "checked" ?> /></td>
|
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - SERVER
|
|
|
|
-->
|
|
|
|
<tr ><td><b> <?php printMLText("settings_Server");?></b></td> </tr>
|
|
|
|
<tr title="<?php printMLText("settings_coreDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_coreDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("coreDir", $settings->_coreDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_luceneClassDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_luceneClassDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("luceneClassDir", $settings->_luceneClassDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2013-02-04 09:32:05 +00:00
|
|
|
<tr title="<?php printMLText("settings_extraPath_desc");?>">
|
|
|
|
<td><?php printMLText("settings_extraPath");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("extraPath", $settings->_extraPath); ?></td>
|
2013-02-04 09:32:05 +00:00
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
<tr title="<?php printMLText("settings_contentOffsetDir_desc");?>">
|
|
|
|
<td><?php printMLText("settings_contentOffsetDir");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("contentOffsetDir", $settings->_contentOffsetDir); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_maxDirID_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxDirID");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("maxDirID", $settings->_maxDirID); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_updateNotifyTime_desc");?>">
|
|
|
|
<td><?php printMLText("settings_updateNotifyTime");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("updateNotifyTime", $settings->_updateNotifyTime); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<tr title="<?php printMLText("settings_maxExecutionTime_desc");?>">
|
|
|
|
<td><?php printMLText("settings_maxExecutionTime");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("maxExecutionTime", $settings->_maxExecutionTime); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
2015-08-05 19:11:21 +00:00
|
|
|
<tr title="<?php printMLText("settings_cmdTimeout_desc");?>">
|
|
|
|
<td><?php printMLText("settings_cmdTimeout");?>:</td>
|
2015-08-13 09:50:49 +00:00
|
|
|
<td><?php $this->showTextField("cmdTimeout", $settings->_cmdTimeout); ?></td>
|
2015-08-05 19:11:21 +00:00
|
|
|
</tr>
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
<?php
|
2017-11-21 17:12:58 +00:00
|
|
|
foreach(array('fulltext', 'preview', 'pdf') as $target) {
|
|
|
|
?>
|
2017-12-04 10:08:59 +00:00
|
|
|
<tr><td><b><?php printMLText($target."_converters");?></b></td></tr>
|
2017-11-21 17:12:58 +00:00
|
|
|
<?php
|
2018-01-09 14:32:08 +00:00
|
|
|
if(!empty($settings->_converters[$target])) {
|
|
|
|
foreach($settings->_converters[$target] as $mimetype=>$cmd) {
|
2012-12-14 07:53:13 +00:00
|
|
|
?>
|
|
|
|
<tr title="<?php echo $mimetype;?>">
|
|
|
|
<td><?php echo $mimetype;?>:</td>
|
2017-11-21 17:12:58 +00:00
|
|
|
<td><?php $this->showTextField("converters[".$target."][".$mimetype."]", htmlspecialchars($cmd)); ?></td>
|
2012-12-14 07:53:13 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
2018-01-09 14:32:08 +00:00
|
|
|
}
|
|
|
|
}
|
2012-12-14 07:53:13 +00:00
|
|
|
?>
|
2015-02-24 18:26:38 +00:00
|
|
|
<tr title="">
|
2017-11-21 17:12:58 +00:00
|
|
|
<td><?php $this->showTextField("converters[".$target."][newmimetype]", "", '', getMLText('converter_new_mimetype')); ?>:</td>
|
|
|
|
<td><?php $this->showTextField("converters[".$target."][newcmd]", "", "", getMLText('converter_new_cmd')); ?></td>
|
2017-11-21 16:34:24 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2012-12-14 07:53:13 +00:00
|
|
|
</table>
|
|
|
|
<?php $this->contentContainerEnd(); ?>
|
|
|
|
</div>
|
2013-05-02 20:32:11 +00:00
|
|
|
|
2017-11-21 16:34:24 +00:00
|
|
|
<div class="tab-pane <?php if($currenttab == 'extensions') echo 'active'; ?>" id="extensions">
|
2013-05-02 20:32:11 +00:00
|
|
|
<?php $this->contentContainerStart(); ?>
|
|
|
|
<table class="table-condensed">
|
|
|
|
<!--
|
|
|
|
-- SETTINGS - ADVANCED - DISPLAY
|
|
|
|
-->
|
|
|
|
<?php
|
|
|
|
foreach($GLOBALS['EXT_CONF'] as $extname=>$extconf) {
|
|
|
|
?>
|
2017-11-21 16:34:24 +00:00
|
|
|
<tr><td><a name="<?php echo $extname;?>"></a><b><?php echo $extconf['title'];?></b></td></tr>
|
2013-05-02 20:32:11 +00:00
|
|
|
<?php
|
|
|
|
foreach($extconf['config'] as $confkey=>$conf) {
|
|
|
|
?>
|
2017-05-02 19:00:36 +00:00
|
|
|
<tr title="<?php echo isset($conf['help']) ? $conf['help'] : '';?>">
|
2013-05-02 20:32:11 +00:00
|
|
|
<td><?php echo $conf['title'];?>:</td><td>
|
|
|
|
<?php
|
|
|
|
switch($conf['type']) {
|
|
|
|
case 'checkbox':
|
|
|
|
?>
|
|
|
|
<input type="checkbox" name="<?php echo "extensions[".$extname."][".$confkey."]"; ?>" value="1" <?php if(isset($settings->_extensions[$extname][$confkey]) && $settings->_extensions[$extname][$confkey]) echo 'checked'; ?> />
|
|
|
|
<?php
|
|
|
|
break;
|
2017-04-20 07:57:16 +00:00
|
|
|
case 'select':
|
|
|
|
if(!empty($conf['options'])) {
|
|
|
|
$selections = explode(",", $settings->_extensions[$extname][$confkey]);
|
|
|
|
echo "<select class=\"chzn-select\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "").">";
|
|
|
|
foreach($conf['options'] as $key=>$opt) {
|
|
|
|
echo "<option value=\"".$key."\"";
|
2017-09-28 18:48:29 +00:00
|
|
|
if(in_array($key, $selections, true))
|
2017-04-20 07:57:16 +00:00
|
|
|
echo " selected";
|
|
|
|
echo ">".htmlspecialchars($opt)."</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
} elseif(!empty($conf['internal'])) {
|
|
|
|
$selections = empty($settings->_extensions[$extname][$confkey]) ? array() : explode(",", $settings->_extensions[$extname][$confkey]);
|
2018-02-06 16:03:35 +00:00
|
|
|
$allowempty = empty($conf['allow_empty']) ? false : $conf['allow_empty'];
|
2017-04-20 07:57:16 +00:00
|
|
|
switch($conf['internal']) {
|
|
|
|
case "categories":
|
|
|
|
$categories = $dms->getDocumentCategories();
|
|
|
|
if($categories) {
|
2018-02-06 16:03:35 +00:00
|
|
|
echo "<select class=\"chzn-select".($allowempty ? "-deselect" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_category")."\">";
|
|
|
|
if($allowempty)
|
|
|
|
echo "<option value=\"\"></option>";
|
2017-04-20 07:57:16 +00:00
|
|
|
foreach($categories as $category) {
|
|
|
|
echo "<option value=\"".$category->getID()."\"";
|
|
|
|
if(in_array($category->getID(), $selections))
|
|
|
|
echo " selected";
|
|
|
|
echo ">".htmlspecialchars($category->getName())."</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "users":
|
|
|
|
$users = $dms->getAllUsers();
|
|
|
|
if($users) {
|
2018-02-06 16:03:35 +00:00
|
|
|
echo "<select class=\"chzn-select".($allowempty ? "-deselect" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_user")."\">";
|
|
|
|
if($allowempty)
|
|
|
|
echo "<option value=\"\"></option>";
|
2017-04-20 07:57:16 +00:00
|
|
|
foreach($users as $curuser) {
|
|
|
|
echo "<option value=\"".$curuser->getID()."\"";
|
|
|
|
if(in_array($curuser->getID(), $selections))
|
|
|
|
echo " selected";
|
|
|
|
echo ">".htmlspecialchars($curuser->getLogin()." - ".$curuser->getFullName())."</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
}
|
|
|
|
break;
|
2017-04-21 15:19:31 +00:00
|
|
|
case "groups":
|
|
|
|
$recs = $dms->getAllGroups();
|
|
|
|
if($recs) {
|
2018-02-06 16:03:35 +00:00
|
|
|
echo "<select class=\"chzn-select".($allowempty ? "-deselect" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_group")."\">";
|
|
|
|
if($allowempty)
|
|
|
|
echo "<option value=\"\"></option>";
|
2017-04-21 15:19:31 +00:00
|
|
|
foreach($recs as $rec) {
|
|
|
|
echo "<option value=\"".$rec->getID()."\"";
|
|
|
|
if(in_array($rec->getID(), $selections))
|
|
|
|
echo " selected";
|
|
|
|
echo ">".htmlspecialchars($rec->getName())."</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "attributedefinitions":
|
|
|
|
$recs = $dms->getAllAttributeDefinitions();
|
|
|
|
if($recs) {
|
2018-02-06 16:03:35 +00:00
|
|
|
echo "<select class=\"chzn-select".($allowempty ? "-deselect" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_attribute_value")."\">";
|
|
|
|
if($allowempty)
|
|
|
|
echo "<option value=\"\"></option>";
|
2017-04-21 15:19:31 +00:00
|
|
|
foreach($recs as $rec) {
|
|
|
|
echo "<option value=\"".$rec->getID()."\"";
|
|
|
|
if(in_array($rec->getID(), $selections))
|
|
|
|
echo " selected";
|
|
|
|
echo ">".htmlspecialchars($rec->getName())."</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
}
|
|
|
|
break;
|
2017-04-20 07:57:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2013-05-02 20:32:11 +00:00
|
|
|
default:
|
2017-05-12 11:26:20 +00:00
|
|
|
$this->showTextField("extensions[".$extname."][".$confkey."]", isset($settings->_extensions[$extname][$confkey]) ? $settings->_extensions[$extname][$confkey] : '', '', '');
|
|
|
|
/*
|
2013-05-02 20:32:11 +00:00
|
|
|
?>
|
2017-05-02 19:00:36 +00:00
|
|
|
<input type="text" name="<?php echo "extensions[".$extname."][".$confkey."]"; ?>" title="<?php echo isset($conf['help']) ? $conf['help'] : ''; ?>" value="<?php if(isset($settings->_extensions[$extname][$confkey])) echo $settings->_extensions[$extname][$confkey]; ?>" <?php echo isset($conf['size']) ? 'size="'.$conf['size'].'"' : ""; ?>" />
|
2013-05-02 20:32:11 +00:00
|
|
|
<?php
|
2017-05-12 11:26:20 +00:00
|
|
|
*/
|
2013-05-02 20:32:11 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td></tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
2016-08-08 20:38:51 +00:00
|
|
|
<?php $this->contentContainerEnd(); ?>
|
|
|
|
</div>
|
2012-12-14 07:53:13 +00:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if(is_writeable($settings->_configFilePath)) {
|
|
|
|
?>
|
2013-04-19 13:22:25 +00:00
|
|
|
<button type="submit" class="btn"><i class="icon-save"></i> <?php printMLText("save")?></button>
|
2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
2016-03-15 07:30:53 +00:00
|
|
|
$this->contentEnd();
|
2012-12-14 07:53:13 +00:00
|
|
|
$this->htmlEndPage();
|
|
|
|
} /* }}} */
|
|
|
|
}
|
|
|
|
?>
|