📄 orderstatus.jsp
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%@ page contentType="text/html;charset=gb2312" import="java.util.*,com.j2eeapp.cdstore.vo.*,java.util.*" errorPage="error.jsp" %>
<title>J2EE 应用开发 </title>
<jsp:include page="header.jsp" flush="true"/>
<jsp:include page="sidebar.jsp" flush="true"/>
<jsp:useBean id="shoppingSession" scope="session" class="com.j2eeapp.cdstore.bean.ShoppingSession" />
<IMG height=35 alt="" src="images/shopping_cartbanner.gif" width=160 border=0><br>
<table border="0" cellspacing="0" cellpadding="2" width="500">
<tr>
<th background="images/titlebar_stretch.gif" valign="top" class="title" align="left">订单号</th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">时间 </th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">状态 </th>
<th background="images/titlebar_stretch.gif" align="right" valign="center" class="title">取消 </th>
</tr>
<%
if(shoppingSession.isLoggedIn())
{
Collection c=shoppingSession.getOrderStatus();
Iterator it=c.iterator();
while(it.hasNext())
{
OrderStatus orderStatus=(OrderStatus)it.next();
%>
<tr>
<td class="heading"><a href="showorder.jsp?orderId=<%=orderStatus.getOrderId()%>" class="heading"><%=orderStatus.getOrderId()%></a></td>
<td class="heading"><%=orderStatus.getTimeStamp()%></td>
<td class="heading"><%=orderStatus.getStatus()%></td>
<td class="heading"><a href="cancelorder?orderId=<%=orderStatus.getOrderId()%>">取消</a></td>
</tr>
<% }//while
%>
<tr><td bordercolor="#00FF00"><% if(c.size()!=0){%><a href="cancelall">取消所有订单</a>
<%} else{%>没有可以取消的订单 <%}%></td>
</tr>
<%
}//if
else {
%>
<i>你必须先<a href="loginform">登陆</a> before you can purchase the items in your shopping cart</i>
<%
}%>
</table>
<jsp:include page="footer.jsp" flush="true"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -