<%
set conn=server.CreateObject("adodb.connection")
conn.open "provider=microsoft.jet.oledb.4.0;data source="&server.mappath("adminn/mynews.asp")
set rs=server.createobject("adodb.recordset")
exce="select * from article order by newsid desc"
rs.open exce,conn,1,1
%>
<%
if rs.eof then
response.Write " 暫無(wú)信息!"
else
rs.PageSize =35 '每頁(yè)記錄條數(shù)
iCount=rs.RecordCount '記錄總數(shù)
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
%>
<%For i=1 To x%>
|
我們的宗旨和目標(biāo)是:以質(zhì)量求發(fā)展,重合同,守信用,以精品取信。