?? ordersbody.jsp
字號:
<%@ page contentType="text/html; charset=GBK"%>
<%@page import="netshop.util.*,netshop.businessobjects.*"%>
<%@ 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"%>
<TABLE cellSpacing=5 cellPadding=0 width=630 bgColor=#eeeeee border=0>
<TBODY>
<TR>
<TD align="center" bgColor=#eeeeee>
<TABLE
style="BORDER-RIGHT: #c0c0c0 1px solid; BORDER-TOP: #c0c0c0 1px solid; BORDER-LEFT: #c0c0c0 1px solid; BORDER-BOTTOM: #c0c0c0 1px solid"
cellSpacing=0 cellPadding=5 width="100%"
background="<%=request.getContextPath()%>/images/pattern.gif" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=30>
<P style="MARGIN: 5px 5px 5px 10px; LINE-HEIGHT: 150%"><B><bean:message
key="orders.inventory" /></B></P>
</TD>
<TD align=right colSpan=4 height=30><%-- <P style="MARGIN-RIGHT: 20px"><html:link
href="">所有訂單</html:link>:
<html:link href="">未處理</html:link>
<html:link href="">無效訂單</html:link>
</P>
--%></TD>
</TR>
<TR>
<TD align="center" width=13 height=30></TD>
<TD width=187 height=30><bean:message key="order.number" /></TD>
<TD width=240 height=30><bean:message key="order.date" /></TD>
<!--<TD width=126 height=30>xcx</TD>-->
<TD width=111 height=30><bean:message key="order.state" /></TD>
<TD align="center" width=17 height=30></TD>
</TR>
<logic:present name="<%=Constants.ORDERS_VIEWER_KEY %>"
scope="session">
<bean:define id="viewer" name="<%=Constants.ORDERS_VIEWER_KEY%>"
scope="session" type="netshop.util.OrdersViewer" />
<logic:notEmpty name="viewer" property="orders">
<logic:iterate id="order" name="viewer" property="orders"
offset="<%=new Integer(viewer.getBeginIndex()).toString()%>"
length="<%=new Integer(viewer.getOrderCountPerPage()).toString()%>">
<TR>
<TD align="center" width=13 height=30></TD>
<%String orderId = ((Order) pageContext
.getAttribute("order")).getId().toString();%>
<%String link = "javascript:window.open('/netshop/showChosenOrderAction.do?orderId="
+ orderId
+ "','newwindow','toolbar=no,scrollbars=yes,resizable=no,top=0,left=0,width=600,height=600');";%>
<%--System.out.println(link); --%>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
width=187 height=35><html:link page="/main/showOrders.jsp"
onclick="<%=link%>">
<bean:write name="order" property="orderNumber" />
</html:link></TD>
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
width=240 height=35><%=((Order) order).getGenTime().toString()%></TD>
<!--<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
width=126 height=35> </TD>-->
<TD
style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM: #c0c0c0 1px solid; BORDER-RIGHT-WIDTH: 1px"
width=111 height=35><%if (((Order) order).getFinished()) {
%><bean:message key="order.state.finished" /><%}
{%><bean:message key="order.state.unfinished" /><%}
%></TD>
<TD align="center" width=17 height=30></TD>
</TR>
</logic:iterate>
<TR>
<TD align="center" width="100%" colSpan=6 height=23><bean:message
key="item.viewer.page"
arg0="<%=new Integer(((OrdersViewer)pageContext.getAttribute("viewer")).getPageId()).toString()%>"
arg1="<%=new Integer(((OrdersViewer)pageContext.getAttribute("viewer")).getTotalPage()).toString()%>" />
<%if (viewer.hasPrevious()) {
pageContext.setAttribute("previous", "previous");
%> <html:link page="/showPagesAction2.do" paramId="method"
paramName="previous">
<bean:message key="page.previous" />
</html:link> <%} else {
%> <bean:message key="page.previous" /> <%}
%> <%if (viewer.hasNext()) {
pageContext.setAttribute("next", "next");
%> <html:link page="/showPagesAction2.do" paramId="method"
paramName="next">
<bean:message key="page.next" />
</html:link> <%} else {
%> <bean:message key="page.next" /> <%}
%></TD>
</logic:notEmpty>
<logic:empty name="viewer" property="orders">
<TR>
<TD align=middle width="100%" colSpan=6 height=23>ni shang wu
ding gou</TD>
</TR>
</logic:empty>
</TR>
<TR>
<TD colSpan=6 height=30>
<P style="MARGIN: 5px 5px 5px 10px; LINE-HEIGHT: 150%"> </P>
</TD>
</TR>
</logic:present>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -