...
|
...
|
@@ -16,6 +16,9 @@ class SearchController extends AbstractAction |
|
|
*/
|
|
|
public function indexAction()
|
|
|
{
|
|
|
// 设置客户端浏览器1小时内不改变
|
|
|
$this->setLastModified(mktime(date('H'), 0, 0, date('n'), date('j'), date('Y')));
|
|
|
|
|
|
$this->setNavHeader('搜索', true, SITE_MAIN);
|
|
|
|
|
|
//$this->_view->html('search');
|
...
|
...
|
@@ -207,7 +210,7 @@ class SearchController extends AbstractAction |
|
|
'discount' => FILTER_DEFAULT,
|
|
|
'gender' => FILTER_DEFAULT,
|
|
|
'p_d' => FILTER_DEFAULT,
|
|
|
'page' => FILTER_VALIDATE_INT, ), false);
|
|
|
'page' => FILTER_VALIDATE_INT,), false);
|
|
|
// 转义分类
|
|
|
if (isset($condition['sort'])) {
|
|
|
$condition['sort'] = rawurldecode($condition['sort']);
|
...
|
...
|
@@ -246,7 +249,6 @@ class SearchController extends AbstractAction |
|
|
// $data = Product\ListModel::getClassData($condition);
|
|
|
|
|
|
$data = Product\SearchModel::getSearchData($condition);
|
|
|
|
|
|
} while (false);
|
|
|
|
|
|
if (empty($data['new'])) {
|
...
|
...
|
@@ -309,7 +311,7 @@ class SearchController extends AbstractAction |
|
|
*
|
|
|
* @return array 模糊搜索的结果
|
|
|
*/
|
|
|
/*public function fuzzysearch()
|
|
|
/* public function fuzzysearch()
|
|
|
{
|
|
|
if ($this->isAjax()) {
|
|
|
$keyword = $this->post('keyword', '');
|
...
|
...
|
@@ -318,6 +320,5 @@ class SearchController extends AbstractAction |
|
|
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
} */
|
|
|
} |
...
|
...
|
|