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