list_info.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:9k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.lang.*" errorPage="" %>
  3. <%@ page import="MyFly.Book.Indent" %>
  4. <%@ page session="true" %>
  5. <%
  6. String username = (String)session.getAttribute("name");//?
  7. if ( username == null || username.equals("") ){
  8. //response.sendRedirect("login.jsp?msg=nologin");
  9. out.println("<Script language=JavaScript>alert('您还没登录,没有权利查看');javascript:history.back();</Script>");
  10. }
  11. %>
  12. <jsp:useBean id="my_indent" scope="page" class="MyFly.Book.Purchase"/>
  13. <%
  14. String mesg = "";
  15. String Uid = (String) session.getAttribute("userid");//?
  16. long uid = 0;
  17. try {
  18. uid = Long.parseLong(Uid);
  19. } catch (Exception e) {
  20. uid =0;
  21. mesg = "出现不可预知错误!";
  22. }
  23. if (!my_indent.getIndent(uid))//S??????
  24. mesg = "你在本站还没有购买过图书。" ;
  25. //System.out.print(my_indent.getIndent(uid));
  26. %>
  27. <script language="javascript">
  28. function openScript(url,name, width, height){
  29. var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
  30. }
  31. </script>
  32. <HTML><HEAD><TITLE>-查看订单-</TITLE>
  33. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  34. href"../image/buyok_=shop.css" type=text/css rel=stylesheet><LINK 
  35. href="../image/buyok_shop.css" type=text/css rel=stylesheet>
  36. <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
  37. <BODY>
  38. <CENTER>
  39. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  40. bgColor=#ffffff border=0>
  41.   <TBODY>
  42.     <TR>
  43.       <TD width=760>
  44.         <TABLE class=4l borderColor=#ebebeb cellSpacing=0 cellPadding=0 
  45.       width="100%" align=center border=0>
  46.           <TBODY>
  47.             <TR>
  48.               <TD>
  49.                 <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
  50.             border=0>
  51.                   <TBODY>
  52.                     <TR>
  53.                       <TD colSpan=2 height=13></TD>
  54.                     </TR>
  55.                     <TR>
  56.                       <TD width=260>
  57.                         <DIV align=center><IMG height=45 
  58.                   src="../image/logo.gif" width=200></DIV></TD>
  59.                       <TD align=right width=500>
  60.                         <TABLE cellSpacing=0 cellPadding=0 width=500 align=right 
  61.                   border=0>
  62.                           <TBODY>
  63.                             <TR>
  64.                               <TD align=right width=22><IMG height=67 
  65.                         src="../image/top_1.gif" width=7></TD>
  66.                               <TD align=right width=82><A onfocus=this.blur() 
  67.                         href="../default.jsp"><IMG 
  68.                         height=67 src="../image/home.gif" width=82 
  69.                         border=0></A></TD>
  70.                               <TD align=right width=74><A onfocus=this.blur() 
  71.                         href="../newbook.jsp?pageNum=1"><IMG 
  72.                         height=67 src="../image/newbook.gif" 
  73.                         width=74 border=0></A></TD>
  74.                               <TD align=right width=79><A onfocus=this.blur() 
  75.                         href="../tuibook.jsp?pageNum=1"><IMG 
  76.                         height=67 src="../image/jptj.gif" width=79 
  77.                         border=0></A></TD>
  78.                               <TD align=right width=75><A onfocus=this.blur() 
  79.                         href="../upload_show.jsp"><IMG 
  80.                         height=67 src="../image/tejia.gif" 
  81.                         width=75 border=0></A></TD>
  82.                               <TD align=right width=78><a onFocus=this.blur() 
  83.                         href="../messagebox/indexme.jsp"><img 
  84.                         height=67 src="../image/guest.gif" 
  85.                         width=78 border=0></a></TD>
  86.                               <TD align=right width=90><A onfocus=this.blur() 
  87.                         href="../contactus.jsp"><IMG 
  88.                         height=67 src="../image/link_wo.gif" 
  89.                         width=90 
  90.             border=0></A></TD>
  91.                             </TR>
  92.                           </TBODY>
  93.                       </TABLE></TD>
  94.                     </TR>
  95.                   </TBODY>
  96.               </TABLE></TD>
  97.             </TR>
  98.           </TBODY>
  99.       </TABLE></TD>
  100.     </TR>
  101.   </TBODY>
  102. </TABLE>
  103. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  104. bgColor=#ffffff border=0>
  105.   <TBODY>
  106.   <TR>
  107.     <TD vAlign=top align=middle width=185>
  108.       <TABLE cellSpacing=0 cellPadding=0 width=171 align=center border=0>
  109.         <TBODY>
  110.         <TR>
  111.           <TD vAlign=top align=middle width=176><A 
  112.             href="http://www.erbook.com.cn/user_center.asp"><IMG alt=回到用户中心首页 
  113.             src="../image/usermenu1.gif" align=center border=0></A></TD></TR>
  114.         <TR>
  115.           <TD vAlign=top align=middle width=176 
  116.           background=../image/usermenu2.gif height=346><BR>
  117.             <TABLE cellSpacing=0 cellPadding=0 width="80%" border=0>
  118.               <TBODY>
  119.                 <TR>
  120.                   <TD height=30>
  121.                     <DIV align=center><IMG src="../image/xie.gif" 
  122.                   align=center border=0> <A title=修改个人资料 
  123.                   href="usermodity.jsp">个 人 资 料</A></DIV></TD>
  124.                 </TR>
  125.                 <TR>
  126.                   <TD height=30>
  127.                     <DIV align=center><IMG src="../image/xie.gif" 
  128.                   align=center border=0> <A title=修改登陆密码 
  129.                   href="userpass.jsp">密 码 设 置</A></DIV></TD>
  130.                 </TR>
  131.                 <TR>
  132.                   <TD vAlign=center height=30>
  133.                     <DIV align=center><IMG alt=我的收藏 src="../image/xie.gif" 
  134.                   align=center border=0> <A title=查看我的收藏 
  135.                   href="#"  onclick="openScript('collectionuser.jsp','collectionuser',650,300);">我 的 收 藏</A></DIV></TD>
  136.                 </TR>
  137.                 <TR>
  138.                   <TD height=30>
  139.                     <DIV align=center><IMG src="../image/xie.gif" 
  140.                   align=center border=0> <A title=查看个人订单 
  141.                   href="list_info.jsp">订 单 查 看</A></DIV></TD>
  142.                 </TR>
  143.                 <TR>
  144.                   <TD height=30>
  145.                     <DIV align=center><IMG src="../image/xie.gif" 
  146.                   align=center border=0> <A title=接收站内消息 
  147.                   href="recemessage.jsp">接 收 消 息</A></DIV></TD>
  148.                 </TR>
  149.                 <TR>
  150.                   <TD height=30>
  151.                     <DIV align=center><IMG src="../image/xie.gif" 
  152.                   align=center border=0> <A title=发送站内消息 
  153.                   href="sendmessage.jsp">发 送 消 息</A></DIV></TD>
  154.                 </TR>
  155.                 <TR>
  156.                   <TD height=30>
  157.                     <DIV align=center><IMG src="../image/xie.gif" 
  158.                   align=center border=0> <A title=安全退出 
  159.                   href="loginout.jsp">安 全 退 出</A></DIV></TD>
  160.                 </TR>
  161.               </TBODY>
  162.             </TABLE></TD></TR>
  163.         <TR>
  164.           <TD vAlign=top align=middle width=176 height=19><IMG 
  165.             src="../image/usermenu3.gif" 
  166.       align=center></TD></TR></TBODY></TABLE>
  167.       <BR></TD>
  168.     <TD width=1 bgColor=#cccccc></TD>
  169.     <TD vAlign=top width=570 bgColor=#ffffff>
  170.       <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
  171.         <TBODY>
  172.         <TR>
  173.           <TD align=right width=30 height=30><IMG height=11 
  174.             src="../image/jt_2.gif" width=11></TD>
  175.           <TD width=526 height=30>当前位置:<A 
  176.             href="../default.jsp">首页</A> &gt; <A 
  177.             href="#">用户中心</A> &gt; 
  178.         查看订单</TD></TR>
  179.         <TR>
  180.           <TD align=middle background=../image/bgline.gif colSpan=2 
  181.           height=1></TD></TR></TBODY></TABLE><BR>
  182.       <TABLE borderColor=#c0c0c0 cellSpacing=0 borderColorDark=#ffffff 
  183.       cellPadding=4 width="90%" align=center border=1>
  184.         <TBODY>
  185.         <TR>
  186.           <TD width="13%">订单号</TD>
  187.           <TD width="16%">提交时间</TD>
  188.           <TD width="13%">总金额</TD>
  189.           <TD width="23%">订单付款(是/否)</TD>
  190.           <TD width="21%">发货(是/否)</TD>
  191.   <TD width="14%">详情</TD>
  192.   </TR>
  193.         <TR><%
  194. if (!mesg.equals("")) { %>
  195.  <TD align="center" colSpan=6 height=50><%=mesg%></TD></TR>
  196.          <% } else {   %>
  197.         <%
  198. for (int i = 0; i<my_indent.getMy_indent().size();i++){
  199. Indent Ident = (Indent) my_indent.getMy_indent().elementAt(i);
  200. %>
  201.           <tr> 
  202.             <td><font color=red><%=Ident.getIndentNo() %></font></td>
  203.             <td align="center"><%= Ident.getSubmitTime() %></td>
  204.             <td align="center"><%= Ident.getTotalPrice() %></td>
  205.             <td align="center">
  206. <% if (Ident.getIsPayoff() )
  207. out.print("已付清");
  208. else
  209. out.print("未付");
  210. %></td>
  211.             <td align="center">
  212. <% if (Ident.getIsSales())
  213. out.print("已发货");
  214. else 
  215. out.print("未发货");
  216. %></td>
  217.             <td align="center"><a href="#" onclick="openScript('show_indent.jsp?id=<%= Ident.getId() %>&orderno=<%=Ident.getIndentNo() %>','indentlist',550,200);" >查看</a></td>
  218.           </tr>
  219. <%}}%>
  220.  
  221.   </TBODY></TABLE></TD></TR></TBODY></TABLE>
  222. <%@ include file="foot.jsp" %>
  223. </CENTER></BODY></HTML>