zoukankan      html  css  js  c++  java
  • xxxxxx(示列)

    连接语句...

    if not isempty(request("page")) then  
     pagecount=cint(request("page"))  
    else  
     pagecount=1
    end if
    i=1
    rs.pagesize=24
    rs.AbsolutePage=pagecount
    if rs.eof and rs.bof then
       response.write "<center>没有资料,请添加</center>"
    end if
    do while not rs.eof

    列表....

    rs.movenext
    i=i+1
    if i>rs.pagesize then exit do
    loop    

    结束...

        <form action="#" method="get" id="form1" name="form1">
                <div id="pagefy">每页显示<%=rs.pagesize%>条&nbsp;页次: <b><font color="red"><%=pagecount%></font>/<%=rs.pagecount%></b>
                  <% if pagecount=1 and rs.pagecount<>pagecount and rs.pagecount<>0 then%>
                   <a href="?page=<%=cstr(pagecount+1)%>">下一页</a>
                  <% end if %>
                  <% if rs.pagecount>1 and rs.pagecount=pagecount then %>
                   <a href="?page=<%=cstr(pagecount-1)%>">上一页</a>
                  <%end if%>
                  <% if pagecount<>1 and rs.pagecount<>pagecount then%>
                   <a href="?page=<%=cstr(pagecount-1)%>">上一页</a>&nbsp;<a href="?page=<%=cstr(pagecount+1)%>">下一页</a>
                  <%end if%>
        </div>
         </form>

    感谢:jude_lau 

  • 相关阅读:
    How Ironic Inspector Works
    tinyipa make
    dib build ipa image Injection password
    coreos ipa image Injection of public key
    Buildroot ipa image
    diskimage-builder
    ironic baremetal node rescue/unrescue mode
    OpenStack-Ironic裸金属简介
    Python之错误与异常处理
    Python之上下文管理协议
  • 原文地址:https://www.cnblogs.com/xred/p/2461227.html
Copyright © 2011-2022 走看看