📄 cart.jsp
字号:
<%@ page
language="java"
pageEncoding="gb2312"
%>
<%@ include file="/include/top.jspf"%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td valign="top" align="center">
<h2 align="center">购物车</h2>
<html:form action="/cart/updateItem.do" method="post" >
<TABLE class=font1 cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width="99%" align=center bgColor=#ffffff borderColorLight=#003686 border=1>
<tr bgcolor="#C4E669">
<td><b>项目 ID</b></td> <td><b>产品 ID</b></td> <td><b>说明</b></td> <td><b>数量</b></td> <td><b>价格</b></td> <td> </td>
</tr>
<logic:equal name="cartForm" property="cart.numberOfItems" value="0">
<tr bgcolor="#fffdd7"><td colspan="6"><b>购物车中没有货物.</b></td></tr>
</logic:equal>
<logic:iterate id="cartItem" name="cartForm" property="cart.cartItems">
<tr bgcolor="#fffdd7">
<td><b>
<html:link paramId="itemId" paramName="cartItem" paramProperty="item.itemId" page="/product/viewItem.jsp">
<bean:write name="cartItem" property="item.itemId" /></html:link></b></td>
<td><bean:write name="cartItem" property="item.productId" /></td>
<td>
<bean:write name="cartItem" property="item.product.name" />
<bean:write name="cartItem" property="item.attr1" />
<bean:write name="cartItem" property="item.attr2" />
<bean:write name="cartItem" property="item.attr3" />
<bean:write name="cartItem" property="item.attr5" />
</td>
<td align="center">
<input type="text" size="3" name="<bean:write name="cartItem" property="item.itemId"/>" value="<bean:write name="cartItem" property="quantity"/>" />
</td>
<td align="right"><bean:write name="cartItem" property="item.listPrice" /></td>
<td><html:link paramId="theItemId" paramName="cartItem" paramProperty="item.itemId" page="/cart/removeItem.do">
<img border="0" src="../images/button_remove.gif" /></html:link></td>
</tr>
</logic:iterate>
<tr bgcolor="#fffdd7">
<td colspan="5" align="right">
<b>小计: <bean:write name="cartForm" property="cart.subTotal" /></b><br />
<input type="image" border="0" src="../images/button_update_cart.gif" name="update" />
</td><td> </td>
</tr>
</table>
</html:form>
<logic:notEqual name="cartForm" property="cart.numberOfItems" value="0">
<br /><center><html:link page="/cart/checkout.jsp"><img border="0" src="../images/button_checkout.gif" /></html:link></center>
</logic:notEqual>
</td>
</tr>
</table>
<%@ include file="/include/bottom.jspf"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -