领星动网编程开发之爆炸小宇宙

cnitblog.com/lxasp - - 有一种信念叫做编程
posts - 61, comments - 34, trackbacks - 0, articles - 0
<!--#include file="acp/acp.asp"-->
<!--#INCLUDE FILE="acp/clsList.asp"-->
<!--#include file="config.asp"-->
<%

Response.Write ShowList()

ca.removeall

Function ShowList()
    
Dim ls,t

    use.ls ls
    
Set ls.Cache=ca
    
If ls.Open("./tpl/default/list.htm"Then
        
        ls.PSize
=20
        
        ls.SetRS(conn,
"SELECT COUNT(*) FROM AE_Demo1")="SELECT ab_id, ab_title, ab_date FROM AE_Demo1 ORDER BY ab_date DESC"
        
        t
=ls.Text
        
        
If ls.HasErr Then
            zerr ls.GetErr
        
End If
        
        t
=Replace(t,"{=dirSKIN}","./tpl/default/")
        t
=Replace(t,"{=info_runtimer}",GetTimer)
        t
=Replace(t,"{=info_sqlcount}",sqlcount)
        t
=Replace(t,"{=title}", GPV_site_name )
        
        
        ShowList
=t
        
    
Else
        
        Pause 
"打开模板失败"
        
    
End If
    
End Function


%
>

Feedback

# re: 列表分页代码┅领星ASP开发平台(ACP框架┄ASP开发框架)  回复  更多评论   

2009-09-05 21:04 by ugg boots
ding
只有注册用户登录后才能发表评论。