* finish task #6837.

This commit is contained in:
wangyidong
2020-02-05 10:57:50 +08:00
parent 4db7034029
commit 96adea19b9
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -1,3 +1,10 @@
<?php
$config->search = new stdclass();
$config->search->groupItems = 3;
$config->search->dynamic['$lastMonth'] = '$lastMonth';
$config->search->dynamic['$thisMonth'] = '$thisMonth';
$config->search->dynamic['$lastWeek'] = '$lastWeek';
$config->search->dynamic['$thisWeek'] = '$thisWeek';
$config->search->dynamic['$yesterday'] = '$yesterday';
$config->search->dynamic['$today'] = '$today';
+1
View File
@@ -149,6 +149,7 @@ class searchModel extends model
}
else
{
if($operator == 'between' and !isset($this->config->search->dynamic[$value])) $operator = '=';
$condition = $operator . ' ' . $this->dbh->quote($value) . ' ';
}