|
<%if rsnw.eof then%>
| 抱歉,尚未選寫任何常識
|
<%else%>
<%
totalPut=rsnw.recordcount
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,"itam3.asp"
else
if (currentPage-1)*MaxPerPage
<%=rsnw("top")%>...(','letter','scrollbars=yes,resizable=yes,width=400,height=300')">詳文)
<%if year(rsnw("d"))=year(date()) and month(rsnw("d"))=month(date()) and day(rsnw("d"))=day(date()) then%>
<%end if%>
|
<%=rsnw("d")%>
|
 |
<%rsnw.MOVENEXT
IF rsnw.EOF THEN EXIT FOR
NEXT
End Sub
%>
<%end if%>
|
|
<%
Function showpage(totalnumber,maxperpage,filename)
Dim n
If totalnumber Mod maxperpage=0 Then
n= totalnumber \ maxperpage
Else
n= totalnumber \ maxperpage+1
End If
Response.Write ""
End Function
%>
|
|
|