常用分页代码

暂时没有
共有[ ]条信息 分 条/页 当前第 首页 上页 上页 下页 下页 &Page= >尾页

<table width="564" border="0" cellspacing="0" cellpadding="0" >
         <% sql="select * from tw where area='"&area2&"'order by id desc"
          rs.open sql,cn,1,1
          rs.pagesize=40
dim Page
                        Page =1
if request("Page") <> "" then
                        Page=cint(request("Page"))
                        end if
if not rs.eof and not rs.bof then
                        rs.absolutepage=Page
                        end if
                        count=rs.pagesize
 
if rs.recordcount=0 then
                       response.write ""
                       else
   a=1
   i=0
   k=0
   do while not rs.eof and count > 0
 
   
    k=k+1
    if k/2=int(k/2) then
      bg="#ffffff"
    else
      bg="#FFF4F4"
    end if
   %>
  <tr bgcolor="<%=bg%>" >
            <td ><img src="images/readmore.gif" width="15" height="15"><a href="xianlu_content.asp?id=<% =rs("id") %>" target="_blank">&nbsp;&nbsp;<%=rs("hy_rout")%></a>
</td>
  </tr>
        <% 
 rs.movenext
 count=count-1    
                   loop    
 %>
<tr>
<td width="100%" height="20" align="right" valign="middle" class="font">共有<font color="#FF2D00">[<%=rs.RecordCount%>]</font>条信息
                          分<font color="#FF2D00"><%=rs.pagecount%></font>页 <font color="#FF2D00"><%=rs.pagesize%></font>条/页
                          当前第<font color="#FF2D00"><%=Page%></font>页 <a href="?Class=<%=News_Class%>&Page=1">首页</a>
                          <%if Page>1 then%>
                          <a href="?Class=<%=News_Class%>&Page=<%=Page-1%>">上页</a>
                          <%else%>
                          上页
                          <%end if%>
                          <%if Page < rs.pagecount then %>
                          <a href="?Class=<%=News_Class%>&Page=<%=Page+1%>">下页</a>
                          <%else%>
                          下页
                          <%end if%>
                          <a href=?Class=<%=News_Class%>&Page=<%=rs.pagecount%>>尾页</a>
                 <%end if%>
                      
                </td>

</tr>
</table>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值