5.3 应用举例 搜索排行 - Lin Huiming (Aaron) - 林茄子
lin huiming
因上努力,果上随缘

5.3 应用举例 搜索排行

  • Lin Huiming
  • 4分钟阅读 4min read

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] 

该内容有帮助吗?Was this helpful?

评论 Comment

已有0人参与,点击查看更多评论