- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD background="" colSpan=3 height=1></TD></TR>
- <TR>
- <TD class=style1 align=middle
- height=35>页次:<B><FONT color=#ff0000><%=CurrentPage%></FONT></B>/<B><FONT
- color=#ff0000><%=Cstr(rs_c.pagecount)%></FONT></B>页 每页<B><FONT
- color=#ff0000><%=PerPage%></FONT></B>条记录 总数<B><FONT
- color=#ff0000><%=Cstr(rs_c.RecordCount)%></FONT></B>条</TD>
- <TD class=13font align=middle ><SPAN
- class=Bfont> <% If currentpage > 1 Then %>
- <a href='?classid=<%=mclassID%>&keywords=<%=server.urlencode(m_keywords)%>&area=<%=m_area%>&page=<%=cstr(1)%>'><img alt='首页' src='images/arrow4.gif' border=0 width='11' height='11'></a>
- <a href='?classid=<%=mclassID%>&keywords=<%=server.urlencode(m_keywords)%>&area=<%=m_area%>&page=<%=Cstr(currentpage-1)%>'><img alt='上一页' src='images/arrow3.gif' border=0 width='14' height='11'></a>
- <% Else %>
- <img alt='首页' src='images/arrow4-1.gif' border=0 width='11' height='11'>
- <span class="content">上一页</span>
- <% end if %>
- <%
- if rs_c.pagecount>10 then
- n_star=currentpage
- n_end=currentpage+9
- else
- n_star=1
- n_end=rs_c.pagecount
- end if
- %>
- <% FOR n=n_star to n_end %>
- <% if n>rs_c.pagecount then exit for end if%>
- <a href='?classid=<%=mclassID%>&area=<%=m_area%>&keywords=<%=server.urlencode(m_keywords)%>&page=<%=n%>'>[<%=n%>]</a>
- <%
- next
- %>
- <% If currentpage < Rs_c.PageCount Then %>
- <a href='?classid=<%=mclassID%>&area=<%=m_area%>&keywords=<%=server.urlencode(m_keywords)%>&page=<%=Cstr(currentPage+1)%>'><img alt='下一页' src='images/arrow1.gif' border=0 width='14' height='11'></a>
- <a href='?classid=<%=mclassID%>&area=<%=m_area%>&keywords=<%=server.urlencode(m_keywords)%>&page=<%=Cstr(Rs_c.PageCount)%>'><img alt='末页' src='images/arrow2.gif' border=0 width='11' height='11'></a>
- <% else %>
- <span class="content">下一页</span>
- <img alt='末页' src='images/arrow2-1.gif' border=0 width='11' height='11'>
- <% end if %></SPAN>
- </TD>
- </TR>
- </TABLE>
asp 分页代码
最新推荐文章于 2016-06-02 12:51:41 发布