page=1
rs.pagesize=22
if not isempty(request("page")) then
page=cint(request("page"))
if page>rs.pagecount then
rs.absolutepage=rs.pagecount
elseif page<=0 then
page=1
else
rs.absolutepage=page
end if
end if
do while not rs.eof and m<=rs.pagesize
n=n+1
if n mod 2=0 then
bg="#d1d1d1"
else
bg="#ececec"
end if
%>
<table width="100%" border="0" cellspacing="0">
<tr bgcolor="<%=bg%>">
<td width="10%"><div align="center"><span class="fq"><a href="adm_dp.asp?id=dp_cz&dd=<%=rs("id")%>"><%=rs("id")%></a></span></div></td>
<td width="23%"><div align="left">
<%if rs("cz_yn")=true then pianming=("<font color='red'><strike>"&rs("pianming")&"</strike></font>") else pianming=rs("pianming") end if%>
<%=pianming%></div></td>
<td width="21%" height="20"><div align="left"><%=rs("zuyan")%></div></td>
<td width="16%"><div align="center"><%=rs("suoshu")%></div></td>
<td width="8%"><div align="center"><span class="fq2"><a href="adm_dp.asp?id=dp_edit&dd=<%=rs("id")%>">编辑</a></span></div></td>
<td width="9%"><div align="center"><span class="fq2"><a href="adm_dp.asp?id=dp_del&dd=<%=rs("id")%>">删除</a></span></div></td>
<td width="13%"><div align="center"><%=rs("suoshuren")%></div></td>
</tr>
</table>
<%
m=m+1
rs.movenext
loop%>
<table width="100%" border="0" cellpadding="0">
<tr>
<td><div align="right">
<%if rs.pagecount>1 then %>
第
<%end if %>
<br>
<%if rs.pagecount<>1 then
if request("dd")="" then
dd=1
else dd=request("dd")
end if
for i=dd to rs.pagecount
'------------------------------------向上翻页-------------------------------------
if i=dd+0 and dd<>1 then response.Write("<a href='adm_dp.asp?id=dp_cx&sel="&request("sel")&"&cx_text="&request("cx_text")&"&page="&i&"&dd="&dd-5&"'>←</a> ")
'------------------------------------向下翻页-------------------------------------
if i>4+dd then
response.Write("<a href='adm_dp.asp?id=dp_cx&sel="&request("sel")&"&cx_text="&request("cx_text")&"&page="&i&"&dd="&i&"'>→</a> ")
exit for
end if
response.write("<a href='adm_dp.asp?id=dp_cx&sel="&request("sel")&"&cx_text="&request("cx_text")&"&page="&i&"&dd="&dd&"'>"&i&"</a> ")
next
else
end if
response.write("<br><br><font color='red'>本次查寻共计:"&bj&"</font>")
end sub%>
for i=1 to 10
if i= cint(request.querystring("page_no")) then
color="red"
else
color=""
end if
if rs.pagecount>i then
response.write "<a href='page.asp?page_no=" & i & "><font color='" & color & "'>" & i & "</font></a>"
end if
next
for i=1 to 10
if i= cint(request.querystring("page_no")) then
color="red"
end if
if rs.pagecount>i then
response.write "<a href='page.asp?page_no=" & i & "><font color='" & color & "'>" & i & "</font></a>"
end if
next