orderlist.jsp
上传用户:sami52198
上传日期:2010-02-11
资源大小:5174k
文件大小:7k
源码类别:

电子政务应用

开发平台:

MultiPlatform

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <% request.setCharacterEncoding("gb2312"); %>
  3. <%@ include file="include/config.jsp"%>
  4. <%@include file="include/bean.jsp"%>
  5. <%@include file="include/head.jsp"%>
  6. <html>
  7. <head>
  8. <title>欢迎来到乐趣工作室!</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <LINK href="../css/style.css" rel=stylesheet type=text/css>
  11. </head>
  12. <%
  13.   if(session.getAttribute("id") == null || session.getAttribute("id") == "")
  14.    {        
  15.           response.sendRedirect("../user/login.jsp?nextpage=../myshop/orderlist.jsp");  
  16.    }   
  17.  String userid = (String)session.getAttribute("id"); 
  18. %>
  19. <body leftmargin="0">
  20. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  21.   <tr> 
  22.     <td><table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23.         <tr> 
  24.           <td width="150"><img src="images/logo.gif" width="150" height="42"></td>
  25.           <td width="500"> <div align="center"><img src="images/bannar.gif" width="458" height="60"></div></td>
  26.           <td width="110"><table width="110" border="0" cellspacing="0" cellpadding="0">
  27.               <tr> 
  28.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  29.                     </font></div></td>
  30.               </tr>
  31.               <tr> 
  32.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  33.                     </font></div></td>
  34.               </tr>
  35.               <tr> 
  36.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  37.                     </font></div></td>
  38.               </tr>
  39.             </table></td>
  40.         </tr>
  41.       </table></td>
  42.   </tr>
  43.   <tr> 
  44.     <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  45.   </tr>
  46.   <tr> 
  47.     <td height="22" valign="middle" bgcolor="#FCCB05"> 
  48.     <div align="center">
  49. <%@include file="include/board1.jsp"%>    
  50.         </div>
  51.         </td>
  52.   </tr>
  53.   <tr> 
  54.     <td height="17" bgcolor="#FC9803">&nbsp;</td>
  55.   </tr>
  56.   <tr> 
  57.     <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
  58.   </tr>
  59. </table>
  60. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  61.   <tr> 
  62.     <td valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  63.         <tr> 
  64.           <td height="20" align="center" bgcolor="#FFCC00"><font size="2">个人订单管理</font></td>
  65.         </tr>
  66.         <tr> 
  67.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  68.         </tr>
  69.       
  70.         <tr> 
  71.           <td> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CD9501" bordercolordark="#FFFFFF">
  72.               <tr bgcolor="#FFFBEC"> 
  73.                 <td width="20%" height="25"> <div align="center"><font size="2">订单编号</font></div></td>
  74.                 <td width="20%" height="25"> <div align="center"><font size="2">产品名称</font></div></td>
  75.                 <td width="20%" height="25"> <div align="center"><font size="2">订单总金额</font></div></td>
  76.                 <td width="20%" height="25"> <div align="center"><font size="2">订单状态</font></div></td>
  77.                 <td width="20%" height="25"> <div align="center"><font size="2">删除</font></div></td>
  78.               </tr>
  79. <%
  80.    //System.out.println(order.getOrderList(userid));
  81.     m_vct = order.getOrderList(userid);
  82.   // m_vct = pageCtl.getcurData(order.getOrderList(userid),3,1);
  83.     
  84.     if(m_vct!=null&&m_vct.size()>0)
  85.      {
  86.          for(int i=0;i<m_vct.size();i++)
  87.           {  
  88.              Vector t_vct = (Vector)m_vct.get(i);
  89.              String status = (String)t_vct.get(6);
  90.                %>
  91.                   <tr> 
  92.                    <td width="20%" height="25"> <div align="center"><a href="orderdetail1.jsp?ordernum=<%=t_vct.get(0)%>" target="_blank"><%=t_vct.get(0)%></a></div></td>
  93.                    <td width="20%" height="25"> <div align="center"><font size="2"><%=t_vct.get(1)%></font></div></td>
  94.                    <td width="20%" height="25"> <div align="center"><font size="2"><%=t_vct.get(4)%></font></div></td>
  95.                    <td width="20%" height="25"> <div align="center">
  96.                    <font size="2">
  97.                    <%
  98.                       if(status!=null&&status.equals("01"))
  99.                        {
  100.                           %>
  101.                           已发货
  102.                           <%
  103.                        }
  104.                       else
  105.                        {
  106.                           %>
  107.                           <%=t_vct.get(5)%>
  108.                           <%
  109.                        } 
  110.                    %>
  111.                    </font></div></td>
  112.                    <td width="20%" height="25"> <div align="center"><font size="2">删除</font></div></td>
  113.                   </tr>        
  114.                <%
  115.           }  
  116.      }
  117.     
  118. %>                
  119.             </table></td>
  120.         </tr>
  121.         <tr> 
  122.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  123.         </tr>
  124.       </table> </td>
  125.   </tr>
  126.   <tr> 
  127.     <td height="20" bgcolor="#FFCC00"><font size="2">&nbsp;&gt;&gt; 合作伙伴</font></td>
  128.   </tr>
  129.   <tr> 
  130.     <td height="60" bgcolor="#FFFBEC"> <table width="750" border="0" cellspacing="0" cellpadding="0">
  131.         <tr> 
  132.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  133.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  134.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  135.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  136.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  137.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  138.         </tr>
  139.         <tr> 
  140.           <td><div align="center"></div></td>
  141.           <td><div align="center"></div></td>
  142.           <td><div align="center"></div></td>
  143.           <td><div align="center"></div></td>
  144.           <td><div align="center"></div></td>
  145.           <td><div align="center"></div></td>
  146.         </tr>
  147.       </table></td>
  148.   </tr>
  149.   <tr> 
  150.     <td height="10"><hr size="1"></td>
  151.   </tr>
  152.   <tr> 
  153.     <td height="10"><div align="center"><font size="2">公司简介 | 公司简介 | 公司简介 | 公司简介 
  154.         | 公司简介 | 公司简介 | 公司简介 | 公司简介 </font></div></td>
  155.   </tr>
  156.   <tr> 
  157.     <td height="30"> <div align="center"><font size="2">Copyright &copy;乐趣工作室2rich.net 
  158.         客户服务中心信箱:2rich@2rich.net </font></div></td>
  159.   </tr>
  160. </table>
  161. </body>
  162. </html>