mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	make preview image size configurable
This commit is contained in:
		
							parent
							
								
									a3cd77dd17
								
							
						
					
					
						commit
						d87296c859
					
				|  | @ -168,6 +168,10 @@ class Settings { /* {{{ */ | |||
| 	var $_adminIP = ""; | ||||
| 	// Max Execution Time
 | ||||
| 	var $_maxExecutionTime = null; | ||||
| 	// Preview image width in lists
 | ||||
| 	var $_previewWidthList = 40; | ||||
| 	// Preview image width on document details page
 | ||||
| 	var $_previewWidthDetail = 100; | ||||
| 	// Extra Path to additional software, will be added to include path
 | ||||
| 	var $_extraPath = null; | ||||
| 	// DB-Driver used by adodb (see adodb-readme)
 | ||||
|  | @ -305,6 +309,8 @@ class Settings { /* {{{ */ | |||
| 		$this->_printDisclaimer = Settings::boolVal($tab["printDisclaimer"]); | ||||
| 		$this->_language = strval($tab["language"]); | ||||
| 		$this->_theme = strval($tab["theme"]); | ||||
| 		$this->_previewWidthList = intval($tab["previewWidthList"]); | ||||
| 		$this->_previewWidthDetail = intval($tab["previewWidthDetail"]); | ||||
| 
 | ||||
| 		// XML Path: /configuration/site/edition
 | ||||
| 		$node = $xml->xpath('/configuration/site/edition'); | ||||
|  | @ -564,6 +570,8 @@ class Settings { /* {{{ */ | |||
|     $this->setXMLAttributValue($node, "printDisclaimer", $this->_printDisclaimer); | ||||
|     $this->setXMLAttributValue($node, "language", $this->_language); | ||||
|     $this->setXMLAttributValue($node, "theme", $this->_theme); | ||||
|     $this->setXMLAttributValue($node, "previewWidthList", $this->_previewWidthList); | ||||
|     $this->setXMLAttributValue($node, "previewWidthDetail", $this->_previewWidthDetail); | ||||
| 
 | ||||
|     // XML Path: /configuration/site/edition
 | ||||
|     $node = $this->getXMLNode($xml, '/configuration/site', 'edition'); | ||||
|  |  | |||
|  | @ -57,6 +57,8 @@ if ($action == "saveSettings") | |||
|   $settings->_printDisclaimer = getBoolValue("printDisclaimer"); | ||||
|   $settings->_language = $_POST["language"]; | ||||
|   $settings->_theme = $_POST["theme"]; | ||||
|   $settings->_previewWidthList = $_POST["previewWidthList"]; | ||||
|   $settings->_previewWidthDetail = $_POST["previewWidthDetail"]; | ||||
| 
 | ||||
|   // SETTINGS - SITE - EDITION
 | ||||
|   $settings->_strictFormCheck = getBoolValue("strictFormCheck"); | ||||
|  |  | |||
|  | @ -114,6 +114,14 @@ if(!is_writeable($settings->_configFilePath)) { | |||
|           </SELECT> | ||||
|         </td> | ||||
|       </tr> | ||||
|       <tr title="<?php printMLText("settings_previewWidthList_desc");?>"> | ||||
|         <td><?php printMLText("settings_previewWidthList");?>:</td>
 | ||||
|         <td><input name="previewWidthList" type="text" value="<?php echo $settings->_previewWidthList ?>" /></td> | ||||
|       </tr> | ||||
|       <tr title="<?php printMLText("settings_previewWidthDetail_desc");?>"> | ||||
|         <td><?php printMLText("settings_previewWidthDetail");?>:</td>
 | ||||
|         <td><input name="previewWidthDetail" type="text" value="<?php echo $settings->_previewWidthDetail ?>" /></td> | ||||
|       </tr> | ||||
| 
 | ||||
|       <!-- | ||||
|         -- SETTINGS - SITE - EDITION | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann