mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	add database search by modification date
This commit is contained in:
		
							parent
							
								
									c8d6eafc71
								
							
						
					
					
						commit
						626a325df7
					
				|  | @ -734,13 +734,13 @@ if($settings->_showSingleSearchHit && count($entries) == 1) { | ||||||
| 		$view->setParam('createstartdate', $createstartts); | 		$view->setParam('createstartdate', $createstartts); | ||||||
| 		$view->setParam('createenddate', $createendts); | 		$view->setParam('createenddate', $createendts); | ||||||
| 		$view->setParam('created', $created); | 		$view->setParam('created', $created); | ||||||
|  | 		$view->setParam('modifystartdate', $modifystartts); | ||||||
|  | 		$view->setParam('modifyenddate', $modifyendts); | ||||||
|  | 		$view->setParam('modified', $modified); | ||||||
| 		$view->setParam('expstartdate', !empty($expstartdate) ? getReadableDate($expstartts) : ''); | 		$view->setParam('expstartdate', !empty($expstartdate) ? getReadableDate($expstartts) : ''); | ||||||
| 		$view->setParam('expenddate', !empty($expenddate) ? getReadableDate($expendts) : ''); | 		$view->setParam('expenddate', !empty($expenddate) ? getReadableDate($expendts) : ''); | ||||||
| 		$view->setParam('statusstartdate', !empty($statusstartdate) ? getReadableDate($statusstartts) : ''); | 		$view->setParam('statusstartdate', !empty($statusstartdate) ? getReadableDate($statusstartts) : ''); | ||||||
| 		$view->setParam('statusenddate', !empty($statusenddate) ? getReadableDate($statusendts) : ''); | 		$view->setParam('statusenddate', !empty($statusenddate) ? getReadableDate($statusendts) : ''); | ||||||
| 		$view->setParam('creationdate', isset($creationdate) ? $creationdate : ''); |  | ||||||
| 		$view->setParam('expirationdate', isset($expirationdate) ? $expirationdate: ''); |  | ||||||
| 		$view->setParam('statusdate', isset($statusdate) ? $statusdate: ''); |  | ||||||
| 		$view->setParam('status', $status); | 		$view->setParam('status', $status); | ||||||
| 		$view->setParam('recordtype', isset($record_type) ? $record_type : null); | 		$view->setParam('recordtype', isset($record_type) ? $record_type : null); | ||||||
| 		$view->setParam('categories', isset($categories) ? $categories : ''); | 		$view->setParam('categories', isset($categories) ? $categories : ''); | ||||||
|  |  | ||||||
|  | @ -419,13 +419,13 @@ $(document).ready(function() { | ||||||
| 		$createstartdate = $this->params['createstartdate']; | 		$createstartdate = $this->params['createstartdate']; | ||||||
| 		$createenddate = $this->params['createenddate']; | 		$createenddate = $this->params['createenddate']; | ||||||
| 		$created = $this->params['created']; | 		$created = $this->params['created']; | ||||||
|  | 		$modifystartdate = $this->params['modifystartdate']; | ||||||
|  | 		$modifyenddate = $this->params['modifyenddate']; | ||||||
|  | 		$modified = $this->params['modified']; | ||||||
| 		$expstartdate = $this->params['expstartdate']; | 		$expstartdate = $this->params['expstartdate']; | ||||||
| 		$expenddate = $this->params['expenddate']; | 		$expenddate = $this->params['expenddate']; | ||||||
| 		$statusstartdate = $this->params['statusstartdate']; | 		$statusstartdate = $this->params['statusstartdate']; | ||||||
| 		$statusenddate = $this->params['statusenddate']; | 		$statusenddate = $this->params['statusenddate']; | ||||||
| 		$creationdate = $this->params['creationdate']; |  | ||||||
| 		$expirationdate = $this->params['expirationdate']; |  | ||||||
| 		$statusdate = $this->params['statusdate']; |  | ||||||
| 		$status = $this->params['status']; | 		$status = $this->params['status']; | ||||||
| 		$record_type = $this->params['recordtype']; | 		$record_type = $this->params['recordtype']; | ||||||
| 		$this->query = $this->params['query']; | 		$this->query = $this->params['query']; | ||||||
|  | @ -635,9 +635,11 @@ $(document).ready(function() { | ||||||
| 			$openfilterdlg = true; | 			$openfilterdlg = true; | ||||||
| 		if($status) | 		if($status) | ||||||
| 			$openfilterdlg = true; | 			$openfilterdlg = true; | ||||||
| 		if($expirationdate) | 		if($modifyenddate || $modifystartdate) | ||||||
| 			$openfilterdlg = true; | 			$openfilterdlg = true; | ||||||
| 		if($statusdate) | 		if($expenddate || $expstartdate) | ||||||
|  | 			$openfilterdlg = true; | ||||||
|  | 		if($statusstartdate || $statusenddate) | ||||||
| 			$openfilterdlg = true; | 			$openfilterdlg = true; | ||||||
| 
 | 
 | ||||||
| 		/* Start of fields only applicable to documents */ | 		/* Start of fields only applicable to documents */ | ||||||
|  | @ -685,6 +687,14 @@ $(document).ready(function() { | ||||||
| 				'options'=>$options | 				'options'=>$options | ||||||
| 			) | 			) | ||||||
| 		); | 		); | ||||||
|  | 		$this->formField( | ||||||
|  | 			getMLText("modified")." (".getMLText('from').")", | ||||||
|  | 			$this->getDateChooser(!empty($modifystartdate) ? getReadableDate($modifystartdate) : null, "modified[from]", $this->params['session']->getLanguage()) | ||||||
|  | 		); | ||||||
|  | 		$this->formField( | ||||||
|  | 			getMLText("modified")." (".getMLText('to').")", | ||||||
|  | 			$this->getDateChooser(!empty($modifyenddate) ? getReadableDate($modifyenddate) : null, "modified[to]", $this->params['session']->getLanguage()) | ||||||
|  | 		); | ||||||
| 		$this->formField( | 		$this->formField( | ||||||
| 			getMLText("expires")." (".getMLText('from').")", | 			getMLText("expires")." (".getMLText('from').")", | ||||||
| 			$this->getDateChooser($expstartdate, "expirationstart", $this->params['session']->getLanguage()) | 			$this->getDateChooser($expstartdate, "expirationstart", $this->params['session']->getLanguage()) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann