67,512
社区成员
发帖
与我相关
我的任务
分享
<div class="pro">
<sql:query var="rs" dataSource="${ds}" sql="select top ${num} * from goods where newgoods=1 order by goods_id desc"></sql:query>
<table width="590" border="0" cellspacing="0" cellpadding="0" align="center">
<c:set var="i" value="0"/>
<c:forEach items="${rs.rows}" var="good">
<c:if test="${i%3==0}">
<tr>
</c:if>
<td width="195" align="center" valign="top"> <table width="196" height="115" border="0" cellpadding="0" cellspacing="0" class="main">
<tr>
<td width="50%"><TABLE width=98 height=100 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 onmouseover="this.style.backgroundColor='#FF6600'" onmouseout="this.style.backgroundColor=''">
<TBODY>
<TR>
<TD width=92 height=100 bgColor=#ffffff align=center>
<a href=list.jsp?id=${good.goods_id} target="_blank">
<c:if test="${good.goods_pic==null}">
<img src="/goods/noproduct.gif" alt="商品图片" width=85 height=75 border=0 align=absmiddle>
</c:if>
<c:if test="${good.goods_pic!=null}">
<img src="./${good.goods_pic}" alt="商品图片" width=85 height=75 border=0 align=absmiddle>
</c:if>
</a>
</TD>
</TR>
</TBODY>
</TABLE> </td>
<td valign=middle width="50%"><a href=list.jsp?id=${good.goods_id} target="_blank">
<font color="#FF0000">
${good.goods_name}
</font></a>
<br> <br>
现价:${good.goods_price}元<br>
原价:${good.goods_yuan_price}元
<table width="100%" cellpadding=0 cellspacing=0>
<tbody>
<tr>
<td width="116"><div align="center"><a href="gouwu.jsp" target="_blank" ><img src="./images/dg.gif" width="45" height="20" border=0></a><a href="/souchang?user_id=${userinfo.user_id}&goods_id=${good.goods_id}" target="_blank"><img src="./images/sc.gif" width="45" height="20" border=0></a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</table>
</td>
<c:set var="i" value="${i+1}"/>
<c:if test="${i==3}">
</tr>
</c:if>
</c:forEach>
</table>
</div>
</div>