mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
add configuration for number of entries on viewfolder page
This commit is contained in:
parent
074aee914d
commit
dec3b44123
|
@ -229,6 +229,10 @@ class Settings { /* {{{ */
|
|||
var $_showFullPreview = false;
|
||||
// convert to pdf for preview on document details page
|
||||
var $_convertToPdf = false;
|
||||
// maximum number of documents/folders on ViewFolder page
|
||||
var $_maxItemsPerPage = 0;
|
||||
// number of documents/folders fetched when scrolling to bottom of ViewFolder page
|
||||
var $_incItemsPerPage = 0;
|
||||
// Show form to submit missing translations at end of page
|
||||
var $_showMissingTranslations = false;
|
||||
// Extra Path to additional software, will be added to include path
|
||||
|
@ -418,6 +422,10 @@ class Settings { /* {{{ */
|
|||
$this->_previewWidthDropFolderList = intval($tab["previewWidthDropFolderList"]);
|
||||
$this->_showFullPreview = Settings::boolVal($tab["showFullPreview"]);
|
||||
$this->_convertToPdf = Settings::boolVal($tab["convertToPdf"]);
|
||||
if(isset($tab["maxItemsPerPage"]))
|
||||
$this->_maxItemsPerPage = intval($tab["maxItemsPerPage"]);
|
||||
if(isset($tab["incItemsPerPage"]))
|
||||
$this->_incItemsPerPage = intval($tab["incItemsPerPage"]);
|
||||
|
||||
// XML Path: /configuration/site/edition
|
||||
$node = $xml->xpath('/configuration/site/edition');
|
||||
|
@ -735,6 +743,8 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "previewWidthDropFolderList", $this->_previewWidthDropFolderList);
|
||||
$this->setXMLAttributValue($node, "showFullPreview", $this->_showFullPreview);
|
||||
$this->setXMLAttributValue($node, "convertToPdf", $this->_convertToPdf);
|
||||
$this->setXMLAttributValue($node, "maxItemsPerPage", $this->_maxItemsPerPage);
|
||||
$this->setXMLAttributValue($node, "incItemsPerPage", $this->_incItemsPerPage);
|
||||
|
||||
// XML Path: /configuration/site/edition
|
||||
$node = $this->getXMLNode($xml, '/configuration/site', 'edition');
|
||||
|
|
|
@ -70,6 +70,8 @@ if ($action == "saveSettings")
|
|||
$settings->_previewWidthDetail = $_POST["previewWidthDetail"];
|
||||
$settings->_showFullPreview = getBoolValue("showFullPreview");
|
||||
$settings->_convertToPdf = getBoolValue("convertToPdf");
|
||||
$settings->_maxItemsPerPage = $_POST["maxItemsPerPage"];
|
||||
$settings->_incItemsPerPage = $_POST["incItemsPerPage"];
|
||||
|
||||
// SETTINGS - SITE - EDITION
|
||||
$settings->_strictFormCheck = getBoolValue("strictFormCheck");
|
||||
|
|
|
@ -207,6 +207,14 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_convertToPdf");?>:</td>
|
||||
<td><input name="convertToPdf" type="checkbox" <?php if ($settings->_convertToPdf) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
<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>
|
||||
|
||||
<!--
|
||||
-- SETTINGS - SITE - EDITION
|
||||
|
|
Loading…
Reference in New Issue
Block a user