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
    %>

  • 相关阅读:
    非控制台应用程序输出信息到输出面板
    使用token实现接口权限验证
    创建虚拟目录http://localhost:1780/失败,错误:无法访问iis元数据库。您没用足够的特权访问计算机上的IIS网站
    隐藏桌面的回收站
    本地电脑与远程服务器之间不能复制粘贴解决方法
    移动端使用控制台打印 vconsole
    npm无法安装node-sass的解决方法
    远程报:这可能是由于credssp加密oracle修正
    L2TP连接尝试失败,因为安全层在初始化与远程计算机的协商时遇到一个处理错误
    让一张图片居中在中间(代码片段)
  • 原文地址:https://www.cnblogs.com/zerogo/p/2209404.html
Copyright © 2011-2022 走看看