K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

请教,articlelist如何控制输出数

12Next >

dujun0618 发表于:11-12-14 17:02 11楼 [回复] #Top#
dujun0618 人气:149 积分:7 金币:26656
<ul class="list rank-list">
{king:sql cmd="select top 20 listname,listpath,arthits,artcount,listid1 from (SELECT  kingart_list.listid1,kingart_list.listname,kingart_list.listpath,sum(arthit) as arthits,count(*) as artcount FROM kingart_list INNER JOIN kingart ON kingart_list.listid = kingart.listid group by kingart_list.listname, kingart_list.listpath,kingart_list.listid1) where listid1=[currentlistid/] order by arthits desc,listname;"} 
<li><em class="ranknum rankred">(king:++/)</em><a href="(king:listpath/)"  class="fl">(king:listname/)</a><span class="linum">(点击:(king:arthits/)  文章:(king:artcount/))</span></li>
{/king}
</ul>
2678389407 发表于:11-12-19 17:10 12楼 [回复] #Top#
2678389407 人气:12 积分:137 金币:54
  跟这学习了。谢谢

12Next >

发表回复

帐号 匿名发布 审核后可见 [加载完整在线编辑器]
内容
验证码
KingCMS 内容管理系统

关于我们 联系我们 广告报价 付款方式 站点导航

Copyright © 2004-2015 Focuznet All rights reserved.

广州唯众网络科技有限公司 粤ICP备08008106号