📄 shoppingcartbody.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@page import="netshop.util.*"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<PRE></PRE>
<TABLE cellSpacing=5 cellPadding=0 width=630 border=0>
<TBODY>
<TR>
<TD align="center">
<TABLE cellSpacing=0 cellPadding=0 style="border: 1px solid #C0C0C0"
width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=8 height=30>
<P><B> <bean:message key="shopping.cart.items" /> </B></P>
</TD>
</TR>
<TR>
<TD align="center" width=10 height=30></TD>
<TD align="center" height=30><bean:message
key="shopping.cart.item.name" /></TD>
<TD align=center height=30><bean:message
key="shopping.cart.item.baseprice" /></TD>
<TD align=center height=30><bean:message
key="shopping.cart.item.quantity" /></TD>
<TD align=center height=30><bean:message
key="shopping.cart.item.totalprice" /></TD>
<TD align=center height=30> </TD>
<TD align="center" height=30><bean:message
key="shopping.cart.action" /></TD>
<TD align="center" width=10 height=30></TD>
</TR>
<%--logic:iterator--%>
<logic:present name="<%=Constants.SHOPPING_CART_KEY%>"
scope="session">
<logic:empty name="<%=Constants.SHOPPING_CART_KEY%>"
property="items">
<TR>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" colSpan=8 height=30><bean:message
key="shopping.cart.empty" /></TD>
</TR>
</logic:empty>
<logic:iterate id="item" name="<%=Constants.SHOPPING_CART_KEY%>"
property="items">
<html:form action="/shoppingCartAction">
<html:hidden property="id" name="item" />
<TR>
<TD align="center" width=10 height=30></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30><html:link
page="/detailViewAction.do" paramId="itemId" paramName="item"
paramProperty="id" target="blank">
<bean:write name="item" property="name" />
</html:link></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30>¥ <bean:write name="item"
property="basePrice" /></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30><html:text name="item"
property="quantity" size="2" /></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30>¥ <bean:write name="item"
property="unitPrice" /></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30> </TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
align="center" height=30><html:submit property="action">
<bean:message key="button.change" />
</html:submit> <html:submit property="action">
<bean:message key="button.delete" />
</html:submit></TD>
<TD align="center" width=10 height=30></TD>
</TR>
</html:form>
</logic:iterate>
<TR>
<TD align="center" colSpan=8 height=30><bean:message
key="shopping.cart.totalprice" /> ¥ <bean:write
name="<%=Constants.SHOPPING_CART_KEY%>" property="totalPrice" />
</TD>
</TR>
</logic:present>
<%--logic:iterator--%>
<TR>
<TD align="center" colSpan=8 height=30><html:button property=""
onclick="javascript:window.open('javascript:history.go(-1)','_self','')">
<bean:message key="button.continue.shopping" />
</html:button> <html:button property=""
onclick="window.open('/netshop/checkOutAction.do','_self')">
<bean:message key="button.checkout" />
</html:button></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -