mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +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('createenddate', $createendts);
|
||||
$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('expenddate', !empty($expenddate) ? getReadableDate($expendts) : '');
|
||||
$view->setParam('statusstartdate', !empty($statusstartdate) ? getReadableDate($statusstartts) : '');
|
||||
$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('recordtype', isset($record_type) ? $record_type : null);
|
||||
$view->setParam('categories', isset($categories) ? $categories : '');
|
||||
|
|
|
@ -419,13 +419,13 @@ $(document).ready(function() {
|
|||
$createstartdate = $this->params['createstartdate'];
|
||||
$createenddate = $this->params['createenddate'];
|
||||
$created = $this->params['created'];
|
||||
$modifystartdate = $this->params['modifystartdate'];
|
||||
$modifyenddate = $this->params['modifyenddate'];
|
||||
$modified = $this->params['modified'];
|
||||
$expstartdate = $this->params['expstartdate'];
|
||||
$expenddate = $this->params['expenddate'];
|
||||
$statusstartdate = $this->params['statusstartdate'];
|
||||
$statusenddate = $this->params['statusenddate'];
|
||||
$creationdate = $this->params['creationdate'];
|
||||
$expirationdate = $this->params['expirationdate'];
|
||||
$statusdate = $this->params['statusdate'];
|
||||
$status = $this->params['status'];
|
||||
$record_type = $this->params['recordtype'];
|
||||
$this->query = $this->params['query'];
|
||||
|
@ -635,9 +635,11 @@ $(document).ready(function() {
|
|||
$openfilterdlg = true;
|
||||
if($status)
|
||||
$openfilterdlg = true;
|
||||
if($expirationdate)
|
||||
if($modifyenddate || $modifystartdate)
|
||||
$openfilterdlg = true;
|
||||
if($statusdate)
|
||||
if($expenddate || $expstartdate)
|
||||
$openfilterdlg = true;
|
||||
if($statusstartdate || $statusenddate)
|
||||
$openfilterdlg = true;
|
||||
|
||||
/* Start of fields only applicable to documents */
|
||||
|
@ -685,6 +687,14 @@ $(document).ready(function() {
|
|||
'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(
|
||||
getMLText("expires")." (".getMLText('from').")",
|
||||
$this->getDateChooser($expstartdate, "expirationstart", $this->params['session']->getLanguage())
|
||||
|
|
Loading…
Reference in New Issue
Block a user