zoukankan      html  css  js  c++  java
  • asp多行多列的分页以及form中传递特殊字符的应用(2)

    今天下好大的雨,出去吃饭忘记关窗户了,水漫家里,真是倒霉啊!心情不好,郁闷着,就把代码拷贝给大家看看!没有心情!!!不过代码肯定是没有问题的。

    <%rs.pagesize=16
              totalrec=rs.recordcount
              totalpage=rs.pagecount
              if page>totalpage then page=totalpage
              rs.absolutepage=page
              rs.cachesize=rs.pagesize%>

    <%i=0
              do while not rs.eof and (i<rs.pagesize)
              i=i+1
             %>
                                                          <td width="25%" height="134" align="left" bgcolor="#FFFFFF">
                  <div align="center">
     <table width="100" border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
                         
                          <tr>
                            <td align="center" width="100" height="100">
                            <a target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>">
                            <img border="0" src="<%=rs("hw_pic")%>" width="90" height="90"  style="border: 1px solid #C0C0C0"></a></td>
                          </tr> <tr>
                            <td valign="bottom" align="center" height="20"><b><%=rs("hw_name")%></b></td>
                          </tr>

          <tr>
                            <td align="center">会员价:<font color="#D03430"><%=rs("hw_cash")%></font>元</td>
                          </tr>
         
                                                <tr>
                            <td valign="top" align="center">
                            <a target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>"><img border="0" src="img/xiang.gif"></a>
                            <a href='javascript:openbag(<%=rs("hw_id")%>)'><img border="0" src="img/buy.gif"></a></td>
                          </tr>
                          </table>
    </div>
    </td>
    <%
      if (i mod 4=0) and i>=4 then

    '这个方法大家应该看到过的,不过我看到最多是用再分类的列表的时候.
    %>
                                                        </tr>
                 <tr>
                           <%
     end if
    rs.movenext
    loop
    rs.close
    %>

  • 相关阅读:
    ls命令输出文件的绝对路径
    grep命令用关系或查询多个字符串
    pthread_cond_timedwait
    移位运算溢出:右操作数须小于左操作数的位数
    Source Insight symbol not found
    break和continue能否跳出函数
    Oracle ORA-01033: ORACLE initialization or shutdown in progress 错误解决办法. 重启服务
    git bash中不能显示中文
    docker初探
    C++ STL常见数据结构(容器)分类
  • 原文地址:https://www.cnblogs.com/zerogo/p/2209404.html
Copyright © 2011-2022 走看看