Salad UN

To Taste The Salad Of Life.

« 修改FC编辑器 上传过滤KingCMS标签zebra斑马线的使用 »

Kingcms列表页修改部分

[ At 2008-9-2 By Ash   0 comments ]

列表页只调用推荐的文章, 分页可用

*****************************************************
type=list 时用

    2 list01= head头条 commend推荐 up置顶 是否(部分显示)
    3 {king:article type="list" list01="commend"  

number="1"}
*****************************************************

public sub createlist(l1)
找到
set rs=conn.execute("select "&sql&" from

kingarticle where artshow=1 and listid="&datalist(0,j)&" or

listids like '%,"&datalist(0,j)&",%' order by artup

desc,artorder "&jsorder&",artid "&jsorder&";")

替换为

'修改list-up,list-commend,list-head
dim list01
list01=king.getlabel(tmphtmlist,"list01")
if lcase(list01)="head" then list01="and arthead=1"
if lcase(list01)="commend" then list01="and artcommend=1"
if lcase(list01)="up" then list01="and artup=1"

                set rs=conn.execute("select "&sql&" from

kingarticle where artshow=1 "&list01&" and

listid="&datalist(0,j)&" or listids like '%,"&datalist

(0,j)&",%' order by  artup desc,artorder "&jsorder&",

artid "&jsorder&";")

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722 Code detection by Codefense

Copyright 2008 www.s-un.cn. Some Rights Reserved.