帝国cms动态页调用搜索关键词的方法

来自:互联网
时间:2020-03-19
阅读:

效果如下:

帝国cms动态页调用搜索关键词的方法

利用自定义js进行调用

帝国cms动态页调用搜索关键词的方法

Sql语句:

select searchid as id,keyboard as title from [!db.pre!]enewssearch where iskey=0 order by searchid desc limit 5

帝国cms动态页调用搜索关键词的方法

帝国cms动态页调用搜索关键词的方法

模板内容如下:

[!--empirenews.listtemp--]<li><a href="/e/search/result/?searchid=[!--id--]" title="[!--oldtitle--]">[!--title--]</a></li>[!--empirenews.listtemp--]
返回顶部
顶部