%PageName="Dong"%>
<%
dim Id,HeaName
sql="select * from Xy_Gt where GtFLag=1 order by GtDate Desc"
conn.CursorLocation = 3
set rsGt=conn.execute(sql)
totalPut=rsGt.recordcount
if rsGt.recordcount=0 then
errors=errors+"
暂无信息!"
founderr=true
end if
if founderr=true then
call error()
else
Page_BiBn
HeaName=BiName
Page_Hea
%>
本站动态
主题
发布时间
<%
MaxPerPage=20
dim totalPut,CurrentPage,TotalPages,j,ActionPage
ActionPage="Dong.asp?action="
if Not isempty(request("page")) then
currentPage=Cint(request("page"))
else
currentPage=1
end if
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,ActionPage
else
if (currentPage-1)*MaxPerPage0 then
ClassColor="table3"
else
ClassColor="table10"
end if
RsFDate="" & year(rsGt("GtDate")) & "-" & month(rsGt("GtDate")) & "-" & day(rsGt("GtDate")) & " " & Hour(rsGt("GtDate")) & ":" & Minute(rsGt("GtDate")) & ""
%>
<% i=i+1
if i>=MaxPerPage then Exit Do
rsGt.movenext
loop
rsGt.close
response.write "
"
end Sub
Function showpage(totalnumber,maxperpage,filename)
Dim n,strNA
If totalnumber Mod maxperpage=0 Then
n= totalnumber \ maxperpage
Else
n= totalnumber \ maxperpage+1
end If
strNA = strNA & "
"
strNA = strNA & "
"
response.write strNA
end Function
response.write "