mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	add file upload via drag&drop
can be enabled in the settings
This commit is contained in:
		
							parent
							
								
									a507a94c00
								
							
						
					
					
						commit
						289649b6ee
					
				|  | @ -143,8 +143,10 @@ class Settings { /* {{{ */ | |||
| 	var $_calendarDefaultView = "y"; | ||||
| 	// first day of the week (0=sunday, 1=monday, 6=saturday)
 | ||||
| 	var $_firstDayOfWeek = 0; | ||||
| 	// enable/disable display of the clipboard
 | ||||
| 	var $_enableClipboard = true; | ||||
| 	// enable/disable display of the clipboard
 | ||||
| 	var $_enableClipboard = true; | ||||
| 	// enable/disable display of the drop zone for file upload
 | ||||
| 	var $_enableDropUpload = true; | ||||
| 	// enable/disable display of the folder tree
 | ||||
| 	var $_enableFolderTree = true; | ||||
| 	// count documents and folders for folderview recursively
 | ||||
|  | @ -325,6 +327,7 @@ class Settings { /* {{{ */ | |||
| 		$this->_enableEmail = Settings::boolVal($tab["enableEmail"]); | ||||
| 		$this->_enableUsersView = Settings::boolVal($tab["enableUsersView"]); | ||||
| 		$this->_enableClipboard = Settings::boolVal($tab["enableClipboard"]); | ||||
| 		$this->_enableDropUpload = Settings::boolVal($tab["enableDropUpload"]); | ||||
| 		$this->_enableFolderTree = Settings::boolVal($tab["enableFolderTree"]); | ||||
| 		$this->_enableRecursiveCount = Settings::boolVal($tab["enableRecursiveCount"]); | ||||
| 		$this->_maxRecursiveCount = intval($tab["maxRecursiveCount"]); | ||||
|  | @ -585,7 +588,8 @@ class Settings { /* {{{ */ | |||
|     $this->setXMLAttributValue($node, "enableConverting", $this->_enableConverting); | ||||
|     $this->setXMLAttributValue($node, "enableEmail", $this->_enableEmail); | ||||
|     $this->setXMLAttributValue($node, "enableUsersView", $this->_enableUsersView); | ||||
| 	$this->setXMLAttributValue($node, "enableClipboard", $this->_enableClipboard); | ||||
| 		$this->setXMLAttributValue($node, "enableClipboard", $this->_enableClipboard); | ||||
| 		$this->setXMLAttributValue($node, "enableDropUpload", $this->_enableDropUpload); | ||||
|     $this->setXMLAttributValue($node, "enableFolderTree", $this->_enableFolderTree); | ||||
|     $this->setXMLAttributValue($node, "enableRecursiveCount", $this->_enableRecursiveCount); | ||||
|     $this->setXMLAttributValue($node, "maxRecursiveCount", $this->_maxRecursiveCount); | ||||
|  |  | |||
|  | @ -67,7 +67,8 @@ if ($action == "saveSettings") | |||
|   $settings->_enableEmail =getBoolValue("enableEmail"); | ||||
|   $settings->_enableUsersView = getBoolValue("enableUsersView"); | ||||
|   $settings->_enableFullSearch = getBoolValue("enableFullSearch"); | ||||
|   $settings->_enableClipboard = getBoolValue("enableClipboard"); | ||||
|   $settings->_enableClipboard = getBoolValue("enableClipboard"); | ||||
|   $settings->_enableDropUpload = getBoolValue("enableDropUpload"); | ||||
|   $settings->_enableFolderTree = getBoolValue("enableFolderTree"); | ||||
|   $settings->_enableRecursiveCount = getBoolValue("enableRecursiveCount"); | ||||
|   $settings->_maxRecursiveCount = intval($_POST["maxRecursiveCount"]); | ||||
|  |  | |||
|  | @ -58,6 +58,7 @@ if($view) { | |||
| 	$view->setParam('orderby', $orderby); | ||||
| 	$view->setParam('enableFolderTree', $settings->_enableFolderTree); | ||||
| 	$view->setParam('enableClipboard', $settings->_enableClipboard); | ||||
| 	$view->setParam('enableDropUpload', $settings->_enableDropUpload); | ||||
| 	$view->setParam('expandFolderTree', $settings->_expandFolderTree); | ||||
| 	$view->setParam('showtree', showtree()); | ||||
| 	$view->setParam('cachedir', $settings->_cacheDir); | ||||
|  |  | |||
|  | @ -155,10 +155,14 @@ if(!is_writeable($settings->_configFilePath)) { | |||
|         <td><?php printMLText("settings_stopWordsFile");?>:</td>
 | ||||
|         <td><input type="text" name="stopWordsFile" value="<?php echo $settings->_stopWordsFile; ?>" size="100" /></td> | ||||
|       </tr> | ||||
| 	  <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>
 | ||||
|       </tr> | ||||
| 	    <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>
 | ||||
|       </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>
 | ||||
|       </tr> | ||||
|       <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>
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann