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

你可能感兴趣的:(form)