📄 page.asp
字号:
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="tdg2">
<tr>
<td height="20"><table width="100%" border="0">
<tr>
<td width="120" align="center" class="s_in">
<%response.Write("第<b>"&cstr(pageno)&"</b>页 <b>[</b>每页<b>"&cstr(pagenum)&"</b>个<b>]</b>")%>
</td>
<td width="480" align="right" class="s_in">
<%
dim m
m=10
if mpage < m then
for pp=1 to mpage
if pp=Cint(pageno) then
response.Write("<b><u>"&cstr(pp)&"</u></b> ")
else
response.Write("<a href='?pageno="&cstr(pp)&"' class='i'><b>"&cstr(pp)&"</b></a> ")
end if
next
else
dim pe,p,pb
p=((pageno-1)\m)*m
pe=p+1
pb=p+m
if pb>mpage then
pb=mpage
end if
if pe>m then
response.Write("<a href='guestbook.asp' class='i'>首页</a> ")
response.Write("<a href='?pageno="&cstr(pe-m)&"' class='i' title='上"&m&"页'><<<</a> ")
end if
for pp=pe to pb
if pp=Cint(pageno) then
response.Write("<b><u>"&cstr(pp)&"</u></b> ")
else
response.Write("<a href='?pageno="&cstr(pp)&"' class='i'><b>"&cstr(pp)&"</b></a> ")
end if
next
if pb<mpage then
response.Write("<a href='?pageno="&cstr(pb+1)&"' class='i' title='下"&m&"页'>>>></a> ")
response.Write("<a href='?pageno="&cstr(mpage)&"' class='i'>尾页</a>")
end if
end if
%>
<%response.Write(" <b>[</b>共<b>"&cstr(mpage)&"</b>页 共<b>"&cstr(countnum)&"</b>个<b>]</b>")%>
</td>
</tr>
</table> </td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -