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

电子政务应用

开发平台:

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. <script language="JavaScript" src="../js/JsInclude.js"></script>
  13. <script language="javascript">
  14. function sub()
  15.  {
  16.     if(isWhitespace(document.form1.name.value))
  17.      {
  18.          alert("请输入联系人姓名!");
  19.          document.form1.name.focus();
  20.          return false;
  21.      }
  22.      
  23.     if(isWhitespace(document.form1.mobilephone.value)&&isWhitespace(document.form1.tel.value))
  24.      {
  25.          alert("请输入联系手机或电话!");
  26.          document.form1.mobilephone.focus();
  27.          return false;
  28.      }     
  29.      
  30.     if(isWhitespace(document.form1.email.value))
  31.      {
  32.          alert("请输入电子邮件地址!");
  33.          document.form1.email.focus();
  34.          return false;
  35.      }    
  36.     
  37.     if(!isEmail(document.form1.email.value))
  38.      {
  39.          alert("请输入正确的电子邮件地址!");
  40.          document.form1.email.focus();
  41.          return false;     
  42.      }  
  43.     if(isWhitespace(document.form1.address.value))
  44.      {
  45.          alert("请输入联系地址!");
  46.          document.form1.address.focus();
  47.          return false;
  48.      }   
  49.      
  50.     if(isWhitespace(document.form1.zipcode.value))
  51.      {
  52.          alert("请输入邮政编码!");
  53.          document.form1.zipcode.focus();
  54.          return false;
  55.      }      
  56.     
  57.     if(document.form1.yudingxuzhi[1].checked)
  58.      {
  59.          alert("请先阅读预定须知!");        
  60.          return false;     
  61.      }
  62.       
  63.     document.form1.action="orderdetail.jsp";
  64.     document.form1.submit();
  65.  }
  66. </script>
  67. <body leftmargin="0">
  68. <%  
  69.   String id = request.getParameter("nextpar")==null?request.getParameter("id"):request.getParameter("nextpar");  
  70. %>
  71. <form name="form1" method="post" action="../user/login.jsp">
  72. <input type="hidden" name="nextpage" value="../myshop/fillorder.jsp">
  73. <input type="hidden" name="nextpar" value="<%=id%>">
  74. <input type="hidden" name="id" value="<%=id%>">
  75. <%
  76.   if(session.getAttribute("id") == null || session.getAttribute("id") == "")
  77.    {   
  78.      %>
  79.       <script language="javascript">
  80.        document.form1.submit();
  81.       </script> 
  82.      <%     
  83.    }  
  84.    
  85.   String userid = (String)session.getAttribute("id"); 
  86. %>
  87. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  88.   <tr> 
  89.     <td><table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  90.         <tr> 
  91.           <td width="150"><img src="images/logo.gif" width="150" height="42"></td>
  92.           <td width="500"> <div align="center"><img src="images/bannar.gif" width="458" height="60"></div></td>
  93.           <td width="110"><table width="110" border="0" cellspacing="0" cellpadding="0">
  94.               <tr> 
  95.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  96.                     </font></div></td>
  97.               </tr>
  98.               <tr> 
  99.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  100.                     </font></div></td>
  101.               </tr>
  102.               <tr> 
  103.                 <td height="20" valign="middle"> <div align="center"><font size="2">设为首页 
  104.                     </font></div></td>
  105.               </tr>
  106.             </table></td>
  107.         </tr>
  108.       </table></td>
  109.   </tr>
  110.   <tr> 
  111.     <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  112.   </tr>
  113.   <tr> 
  114.     <td height="22" valign="middle" bgcolor="#FCCB05"> 
  115.     <div align="center">
  116. <%@include file="include/board1.jsp"%>    
  117.         </div>
  118.         </td>
  119.   </tr>
  120.   <tr> 
  121.     <td height="17" bgcolor="#FC9803">&nbsp;</td>
  122.   </tr>
  123.   <tr> 
  124.     <td height="10"><img src="images/tmtp.gif" width="2" height="2"></td>
  125.   </tr>
  126. </table>
  127. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  128.   <tr> 
  129.     <td width="150" valign="top"> <table width="150" border="0" cellpadding="0" cellspacing="0">
  130.         <%@include file="include/board3.jsp"%> 
  131.         <tr> 
  132.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  133.         </tr>
  134.         <tr> 
  135.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  136.         </tr>
  137.         <tr> 
  138.           <td height="22" background="images/hydl3.jpg"><div align="center"><font size="2">联系方式</font></div></td>
  139.         </tr>
  140.         <tr> 
  141.           <td height="20" valign="bottom" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;电话:64704946</font></td>
  142.         </tr>
  143.         <tr> 
  144.           <td height="18" background="images/hydl.jpg"> <p><font size="2">&nbsp;&nbsp;E-mail:</font></p></td>
  145.         </tr>
  146.         <tr> 
  147.           <td height="18" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;MSN:</font></td>
  148.         </tr>
  149.         <tr> 
  150.           <td height="18" valign="top" background="images/hydl.jpg"><font size="2">&nbsp;&nbsp;QQ:</font></td>
  151.         </tr>
  152.         <tr> 
  153.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  154.         </tr>
  155.         <tr> 
  156.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  157.         </tr>
  158.                 <%@include file="include/board2.jsp"%>
  159.         <tr> 
  160.           <td height="5" background="images/hydl.jpg"><img src="images/tmtp.gif" width="2" height="2"></td>
  161.         </tr>
  162.         <tr> 
  163.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  164.         </tr>
  165.         <tr> 
  166.           <td height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  167.         </tr>
  168.         <tr> 
  169.           <td height="22" background="images/hydl3.jpg"><div align="center"><font size="2">友情链接</font></div></td>
  170.         </tr>
  171.         <tr> 
  172.           <td height="150" background="images/hydl.jpg">&nbsp;</td>
  173.         </tr>
  174.         <tr> 
  175.           <td height="1"><img src="images/hydl2.jpg" width="150" height="1"></td>
  176.         </tr>
  177.       </table></td>
  178.     <td width="610" valign="top"><table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
  179.         <tr> 
  180.           <td height="30"> <div align="center"><strong><font color="#000000" size="3">在 
  181.               线 订 购</font></strong></div></td>
  182.         </tr>
  183.         <tr> 
  184.           <td height="20" bgcolor="#FFCC00"><font size="2">订购信息: 您在预订时,请先阅读<a href="#">预订须知</a>。 
  185.             </font></td>
  186.         </tr>
  187.         <tr> 
  188.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  189.         </tr>
  190.         <tr> 
  191.           <td> <table width="580" border="1" cellpadding="0" cellspacing="0" bordercolor="#CD9501" bordercolordark="#FFFFFF">
  192.               <tr bgcolor="#FFFBEC"> 
  193.                 <td width="20%" height="25"> <div align="center"><font size="2">产品编号</font></div></td>
  194.                 <td width="20%" height="25"> <div align="center"><font size="2">产品名称</font></div></td>
  195.                 <td width="20%" height="25"> <div align="center"><font size="2">非会员价格</font></div></td>
  196.                 <td width="20%" height="25"> <div align="center"><font size="2">会员价格</font></div></td>
  197.                 <td width="20%" height="25"> <div align="center"><font size="2">订购数量</font></div></td>
  198.               </tr>
  199.             
  200. <%
  201.     m_vct = order.getGoodsInfo(id);
  202.     Vector t_vct = (Vector)m_vct.get(0);
  203. %>              
  204.               <tr> 
  205.                 <td width="20%" height="25"> <div align="center"><%=((t_vct.get(0)).toString())==null?"":((t_vct.get(0).toString()))%></div></td>
  206.                 <td  height="25"> <div align="center"><font size="2"><%=((String)(t_vct.get(1)))==null?"":((String)(t_vct.get(1)))%></font></div></td>
  207.                 <td width="20%" height="25"> <div align="center"><font size="2"><%=((t_vct.get(3)).toString())==null?"":((t_vct.get(3).toString()))%></font></div></td>
  208.                 <td width="20%" height="25"> <div align="center"><font size="2"><%=((t_vct.get(4)).toString())==null?"":((t_vct.get(4)).toString())%></font></div></td>
  209.                 <td width="20%" height="25"> <div align="center"> 
  210.                     <input name="ordernum" type="text" size="4" value="1">
  211.                   </div></td>
  212.               </tr>
  213.             </table></td>
  214.         </tr>
  215.         <tr> 
  216.           <td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
  217.         </tr>
  218.         <tr> 
  219.           <td height="20" bgcolor="#FFCC00"><font size="2">联系信息:</font></td>
  220.         </tr>
  221.         <tr> 
  222.           <td height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  223.         </tr>
  224. <%
  225.    Vector u_vct = order.getUserInfo(userid);  
  226.    Vector t_u_vct = (Vector)u_vct.get(0);
  227. %>        
  228.         <tr> 
  229.           <td><table width="580" border="1" cellpadding="0" cellspacing="0" bordercolor="#CD9501" bordercolordark="#FFFFFF">
  230.               <tr> 
  231.                 <td width="100" height="30"> <div align="center"><font size="2">昵  称:</font></div></td>
  232.                 <td width="480" height="30">&nbsp; <%=session.getAttribute("nickname")%></td>
  233.               </tr>          
  234.               <tr> 
  235.                 <td width="100" height="30"> <div align="center"><font size="2">联系人:</font></div></td>
  236.                 <td width="480" height="30">&nbsp; <input type="text" name="name" value="<%=((String)(t_u_vct.get(0)))==null?"":((String)(t_u_vct.get(0)))%>"></td>
  237.               </tr>
  238.               <tr bgcolor="#FFFBEC"> 
  239.                 <td width="100" height="30"> <div align="center"><font size="2">手机:</font></div></td>
  240.                 <td width="480" height="30">&nbsp; <input type="text" name="mobilephone" value="<%=((String)(t_u_vct.get(1)))==null?"":((String)(t_u_vct.get(1)))%>"></td>
  241.               </tr>
  242.               <tr> 
  243.                 <td width="100" height="30"> <div align="center"><font size="2">电话:</font></div></td>
  244.                 <td width="480" height="30">&nbsp; <input type="text" name="tel"  value="<%=((String)(t_u_vct.get(2)))==null?"":((String)(t_u_vct.get(2)))%>"></td>
  245.               </tr>
  246.               <tr bgcolor="#FFFBEC"> 
  247.                 <td width="100" height="30"> <div align="center"><font size="2">传真:</font></div></td>
  248.                 <td width="480" height="30">&nbsp; <input type="text" name="fax" value="<%=((String)(t_u_vct.get(3)))==null?"":((String)(t_u_vct.get(3)))%>"></td>
  249.               </tr>
  250.               <tr> 
  251.                 <td width="100" height="30"> <div align="center"><font size="2">E_mail:</font></div></td>
  252.                 <td width="480" height="30">&nbsp; <input type="text" name="email" value="<%=((String)(t_u_vct.get(4)))==null?"":((String)(t_u_vct.get(4)))%>"></td>
  253.               </tr>              
  254.               <tr bgcolor="#FFFBEC"> 
  255.                 <td width="100" height="30"> 
  256.                 <div align="center"><font size="2">确认方式:</font></div>
  257.                 </td>
  258.                 <td width="480" height="30">&nbsp; 
  259.                   <select name="confirm_type">
  260.                     <option value="01">电话确认</option>
  261.                     <option value="00">不用确认</option>                    
  262.                     <option value="02">FAX确认</option>
  263.                     <option value="03">Email确认</option>
  264.                     <option value="10">其他</option>                 
  265.                   </select>               
  266.                 </td>
  267.               </tr>
  268.               <tr > 
  269.                 <td width="100" height="30"> 
  270.                 <div align="center"><font size="2">付款方式:</font></div>
  271.                 </td>
  272.                 <td width="480" height="30">&nbsp; 
  273.                   <select name="pay_type">
  274.                     <option value="00">款到发货</option>
  275.                     <option value="01">网上转帐</option>
  276.                     <option value="10">其他</option>                 
  277.                   </select>               
  278.                 </td>
  279.               </tr>              
  280.               <tr bgcolor="#FFFBEC"> 
  281.                 <td height="30"> <div align="center"><font size="2">邮寄地址:</font></div></td>
  282.                 <td height="30">&nbsp; <input name="address" type="text" size="50" value="<%=((String)(t_u_vct.get(5)))==null?"":((String)(t_u_vct.get(5)))%>"></td>
  283.               </tr>
  284.               
  285.               <tr> 
  286.                 <td height="30"> <div align="center"><font size="2">邮政编码:</font></div></td>
  287.                 <td height="30">&nbsp; <input type="text" name="zipcode" value="<%=((String)(t_u_vct.get(6)))==null?"":((String)(t_u_vct.get(6)))%>"></td>
  288.               </tr>
  289.             </table></td>
  290.         </tr>
  291.         <tr> 
  292.           <td height="8"><font size="2">&nbsp;<img src="images/tmtp.gif" width="2" height="2"></font></td>
  293.         </tr>
  294.         <tr> 
  295.           <td height="20" bgcolor="#FFCC00"><font size="2">&nbsp;特殊要求:</font></td>
  296.         </tr>
  297.         <tr>
  298.           <td height="5"><img src="images/tmtp.gif" width="2" height="2"></td>
  299.         </tr>
  300.         <tr>
  301.           <td><table width="580" border="1" cellpadding="0" cellspacing="0" bordercolor="#CD9501" bordercolordark="#FFFFFF">
  302.               <tr> 
  303.                 <td width="100" height="30" bgcolor="#FFFBEC">
  304.                  <div align="center">
  305.                  <font size="2"> 
  306.                     特殊说明: </font></div></td>
  307.                 <td width="480" height="30">
  308.                   <table width="400" border="0" cellspacing="0" cellpadding="0">
  309.                     <tr>
  310.                       <td valign="center">&nbsp;
  311.                       <textarea name="remark" cols="50" rows="6" maxlength="4000" maxchar=4000></textarea>
  312.                       </td>
  313.                     </tr>                    
  314.                   </table>
  315.                   
  316.                 </td>
  317.               </tr>              
  318.               <tr> 
  319.                 <td width="100" height="30" bgcolor="#FFFBEC">
  320.                 <div align="center"><font size="2">预定须知:</font></div></td>
  321.                 <td width="480" height="30">&nbsp;&nbsp;<font size="2"><input type="radio" name="yudingxuzhi" value="">同意 <input type="radio" name="yudingxuzhi" value="2" checked="true">不同意</font></td>
  322.               </tr>
  323.             </table></td>
  324.         </tr>
  325.         <tr>
  326.           <td>&nbsp;</td>
  327.         </tr>
  328.         <tr>
  329.           <td align="center">&nbsp;<input type="button" onclick="sub()" value="提交订单"></td>
  330.         </tr>
  331.         <tr>
  332.           <td>&nbsp;</td>
  333.         </tr>
  334.       </table> </td>
  335.   </tr>
  336.   <tr> 
  337.     <td height="20" colspan="2" bgcolor="#FFCC00"><font size="2">&nbsp;&gt;&gt; 
  338.       合作伙伴</font></td>
  339.   </tr>
  340.   <tr> 
  341.     <td height="60" colspan="2" bgcolor="#FFFBEC">
  342. <table width="750" border="0" cellspacing="0" cellpadding="0">
  343.         <tr> 
  344.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  345.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  346.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  347.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  348.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  349.           <td><div align="center"><img src="images/2rich.gif" width="88" height="31"></div></td>
  350.         </tr>
  351.         <tr> 
  352.           <td><div align="center"></div></td>
  353.           <td><div align="center"></div></td>
  354.           <td><div align="center"></div></td>
  355.           <td><div align="center"></div></td>
  356.           <td><div align="center"></div></td>
  357.           <td><div align="center"></div></td>
  358.         </tr>
  359.       </table></td>
  360.   </tr>
  361.   <tr> 
  362.     <td height="10" colspan="2"><hr size="1"></td>
  363.   </tr>
  364.   <tr> 
  365.     <td height="10" colspan="2"><div align="center"><font size="2">公司简介 | 公司简介 
  366.         | 公司简介 | 公司简介 | 公司简介 | 公司简介 | 公司简介 | 公司简介 </font></div></td>
  367.   </tr>
  368.   <tr> 
  369.     <td height="30" colspan="2"> <div align="center"><font size="2">Copyright 
  370.         &copy;乐趣工作室2rich.net 客户服务中心信箱:2rich@2rich.net </font></div></td>
  371.   </tr>
  372. </table>
  373. </form>
  374. </body>
  375. </html>