日期:2014-05-20 浏览次数:20698 次
<table cellspacing="0" id="products">
<tr>
<th class="product">产品</th>
<th class="price">单价</th>
<th class="count">数量</th>
<!-- <th class="total">小计</th> -->
<th>操作</th>
</tr>
<c:forEach items="${cart }" var="item">
<tr>
<%-- <input type="hidden" name="goodsid" id="goodsid" value="${item.goods.goodsid }"/> --%>
<td id="tp_id" style="display:none">${item.goods.goodsid
}</td>
<td class="product" id="goodsname">${item.goods.goodsname}</td>
<td class="price" id="price">¥<fmt:formatNumber
value="${item.goods.price}" pattern=".00"></fmt:formatNumber>
</td>
<td class="count"><span class="goods_cut"
onclick="goods_cut(${item.goods.goodsid});changePrice();">
<img src="${ initParam.resource }/image/jian.gif" alt="减少"
width="15px" height="15px" /> </span> <input
id="${item.goods.goodsid }count" class="num" type="text"
name="${item.goods.goodsid }count" value="${item.quantity}"
size="2" onblur="changePrice()" /> <span class="goods_add"
onclick="goods_add(${item.goods.goodsid});changePrice();">
<img src="${ initParam.resource }/image/jia.gif" alt="增加"
width="15px" height="15px" /> </span>
</td>
<td id="smalltotal" style="display:none">${item.goods.price
* item.quantity }</td>
<%-- <td class="total" id="total">¥<span id="amount"><fmt:formatNumber
value="${ item.goods.price * item.quantity }" pattern=".00"></fmt:formatNumber>
</span>
</td> --%>
<td class="count"><a href="javascript:void(0);"
onclick="javascript:toDelete(${item.goods.goodsid});">[删除]</a>
<!-- <input type="submit" name="action" value="删除" onclick="javascript:toDelete();"/> -->
</td>
</tr>
</c:forEach>
</table>
<div class="order_total">
<p id="discount" class="discount_tip"> </p>