ecshop文章列表添加网站文章简介摘要调用

 2017-05-22 18:27:42  壹网编辑部

$$$$sql = 'SELECT article_id, title, author, add_time, file_url, open_type' .
需要替换的代码如下

//增加搜索条件,如果有搜索内容就进行搜索

' WHERE is_open = 1 AND ' . $$$$cat_str .

' FROM ' .$$$$GLOBALS['ecs']->table('article') .

' ORDER BY article_type DESC, article_id DESC';

{

' WHERE is_open = 1 AND title like \'%' . $$$$requirement . '%\' ' .


{

' ORDER BY article_type DESC, article_id DESC';

if ($$$$requirement != '')
1.修改includes/lib_article.php

}

else

$$$$sql = 'SELECT article_id, title, author, add_time, file_url, open_type' .

' FROM ' .$$$$GLOBALS['ecs']->table('article') .

}

x

在线咨询

微信客服

售后技术

QQ咨询