5.3 应用举例 搜索排行
搜索格式:[showsearch]每行显示条数,总条数,栏目id,操作类型[/showsearch]
搜索热门排行
[showsearch]4,20,0,0[/showsearch]
灵动标签调用:
[e:loop={"select keyboard,searchid from [!db.pre!]enewssearch where iskey=0 order by onclick desc limit 20 ",20,24,0}]<li><a href="[!--news.url--]e/search/result/?searchid=<?=$bqr[searchid]?>"><?=$bqr[keyboard]?></a></li>[/e:loop]
最新搜索排行
[showsearch]4,20,0,1[/showsearch]
灵动标签调用:
[e:loop={"select keyboard,searchid from [!db.pre!]enewssearch where iskey=0 order by searchid desc limit 20 ",20,24,0}]<li><a href="[!--news.url--]e/search/result/?searchid=<?=$bqr[searchid]?>"><i><?=$bqno?></i><?=$bqr[keyboard]?></a></li>[/e:loop]
- 上一篇
- 下一篇