|
@@ -991,6 +991,7 @@ class Database
|
|
|
public function list_search_time(&$result, $search, $prefix, $key, $config, $type = 'time')
|
|
|
{
|
|
|
$start = $end = true;
|
|
|
+ $eq = false;
|
|
|
if (is_array($config)) {
|
|
|
$lang = $config['lang'];
|
|
|
$search_key = $config['key'];
|
|
@@ -1002,12 +1003,24 @@ class Database
|
|
|
$start = true;
|
|
|
} elseif ($temp[1] == 'end') {
|
|
|
$end = true;
|
|
|
+ } elseif ($temp[1] == 'eq') {
|
|
|
+ $eq = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
$lang = $config;
|
|
|
}
|
|
|
+
|
|
|
+ if ($eq) {
|
|
|
+ $value['name'] = $prefix . 'option_' . $key;
|
|
|
+ $value['lang'] = $lang;
|
|
|
+ if (isset($search[$value['name']])) {
|
|
|
+ $value['value'] = Dever::maketime($search[$value['name']]);
|
|
|
+ Dever::setInput($value['name'], $value['value'], 'search_');
|
|
|
+ }
|
|
|
+ $result .= Html::$type($value, false);
|
|
|
+ }
|
|
|
|
|
|
if ($start) {
|
|
|
$value['name'] = $prefix . 'option_start_' . $key;
|