admin.jsp
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- <html>
- <head>
- <title>Administrator Page</title>
- </head>
- <%@ page errorPage="error.jsp" %>
- <%@ page import="java.util.*,day21ex.order.OrderDetails"%>
- <h3>Pending order List</h3>
- <table border=1>
- <tr>
- <th><b>Order Id<b></b></th>
- <th><b>Student Id</b></th>
- <th><b>Order Date</b></th>
- <th><b>Amount</b></th>
- <th><b>Status</b></th>
- <th><b>Action</b></th>
- </tr>
- <%
- Collection orders
- = (java.util.Collection) session.getAttribute("orderToApproveList");
- if ( orders != null ) {
- Iterator it = orders.iterator();
- while ( it != null && it.hasNext() ) {
- OrderDetails orderDetails = (OrderDetails)it.next();
- %>
- <tr>
- <td><%= orderDetails.getOrderId() %> </td>
- <td> <%= orderDetails.getStudentId() %> </td>
- <td> <%= java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG).format( orderDetails.getOrderDate()) %> </td>
- <td> <%= java.text.NumberFormat.getCurrencyInstance().format(orderDetails.getAmount()) %> </td>
- <td> <%= orderDetails.getStatus() %> </td>
- <td> <a href="/ursday21ex/URSControllerServlet?pageName=adminPage&orderId=<%=orderDetails.getOrderId()%>">Approve</a> </td>
- </tr>
- <%
- }
- }
- %>
- </table>
- </body>
- </html>