order.jsp
上传用户:tanyanyong
上传日期:2013-06-23
资源大小:1355k
文件大小:3k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  2. <%@ page session="true" %>
  3. <%
  4. String username = (String)session.getAttribute("username");
  5. if ( username == null || username.equals("") ){
  6. response.sendRedirect("login.jsp?msg=nologin");
  7. }
  8. %>
  9. <%@ page import="bookshop.book.book "%>
  10. <%@ page import="bookshop.util.*" %>
  11. <%@ page import="bookshop.book.allorder" %>
  12. <%@ page import="bookshop.run.op_book" %>
  13. <jsp:useBean id="myIndentlist" scope="page" class="bookshop.run.op_buy" />
  14. <jsp:useBean id="mybook" scope="page" class="bookshop.run.op_book" />
  15. <%
  16. String mesg = "";
  17. long Id=0;
  18. String indentNo = request.getParameter("orderno");
  19. if( (indentNo==null)|| indentNo.equals("")) {
  20. mesg = "你要查看的订单清单不存在!";
  21. } else {
  22. try {
  23. Id = Long.parseLong(request.getParameter("id"));
  24. if (!myIndentlist.getAllorder(indentNo)){
  25. mesg = "你要查看的订单清单不存在!";
  26. }
  27. } catch (Exception e){
  28. mesg = "你要查看的订单清单不存在!";
  29. }
  30. }
  31. %>
  32. <html>
  33. <head>
  34. <title>隽隽电子书店 查看订购清单资料</title>
  35. <link rel="stylesheet" href="books.css" type="text/css">
  36. </head>
  37. <body bgcolor="#FFCC99" text="#000000" onload="javascript:window.focus();" >
  38. <div align="center">
  39.   
  40.   <% if(!mesg.equals("")){
  41. out.println(mesg);
  42.   } else {
  43. %>
  44. <p>隽隽书店图书订单<%= indentNo %>&nbsp;清单:</p>
  45.           <table width="95%" border="1" cellspacing="1" cellpadding="1" bordercolor="#CC9966">
  46.           <tr align="center"> 
  47.             <td>图书名称</td>
  48.             <td>作者</td>
  49.             <td>图书类别</td>
  50.             <td>单价(元)</td>
  51.             <td>数量</td>
  52.           </tr>
  53. <%
  54. for (int i=0; i<myIndentlist.getOrder_list().size();i++){
  55. allorder idList = (allorder) myIndentlist.getOrder_list().elementAt(i);
  56. //out.print(idList.getBookNo());
  57. if (mybook.getOnebook((int)idList.getBookNo()) ){
  58. book bk = (book) mybook.getBooklist().elementAt(0);
  59. %>   
  60.       <tr align="center"> 
  61.             <td><%= bk.getBookName() %></td>
  62.             <td><%= bk.getAuthor() %></td>
  63.             <td><%= bk.getClassname() %></td>
  64.             <td><%= bk.getPrince() %></td>
  65.             <td><%= idList.getAmount() %></td>
  66.           </tr>
  67. <%
  68. }
  69. }%>
  70. </table>
  71. <% } %>
  72.   <br><p><a href="javascript:window.close()">关闭窗口</a></p>
  73.   <table width="100%" border="0" cellspacing="2" cellpadding="2">
  74.     <tr>
  75.       <td align="center">隽隽书店版权所有<br>
  76.         CopyRight@2003 <br>
  77.         Email:<a href="mailto:wxy8108123@163.com">wxy8108123@163.com</a></td>
  78.     </tr>
  79.   </table>
  80.   
  81. </div>
  82. </body>
  83. </html>