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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值