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

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.io.*,java.util.*" errorPage="" %>
  3. <jsp:useBean id="shop" scope="page" class="MyFly.Book.Purchase" />
  4. <%!
  5.    String fun(String str)
  6.    {
  7.       try
  8.   {
  9.       return new String(str.getBytes("ISO8859_1"));
  10.   }
  11.   catch(Exception e)
  12.   {
  13.      return "";
  14.   }
  15.    }
  16. %>
  17. <%
  18.  String totalprice=(String)request.getParameter("totalprice");
  19.  float sum=Float.valueOf(request.getParameter("sum"));
  20.  //System.out.print(sum);
  21.  String post=(String)request.getParameter("post");
  22.  String Recname=(String)request.getParameter("Recname");
  23.  String RecPhone=(String)request.getParameter("RecPhone");
  24.  String Recmail=(String)request.getParameter("Recmail");
  25.  String ZipCode=(String)request.getParameter("ZipCode");
  26.  String address=(String)request.getParameter("address");
  27.  String gettime=(String)request.getParameter("gettime");
  28.  String fukuan=fun((String)request.getParameter("fukuan"));
  29.  String fapiao=fun(request.getParameter("fapiao"));
  30.  String content=fun((String)request.getParameter("content"));
  31.  String peisong=fun((String)request.getParameter("peisong"));//配送方式
  32.   //System.out.print(peisong);
  33.   String mesg="";
  34.  String name=(String)session.getAttribute("name");
  35.  if (Recname != null && !Recname.equals("") ) {
  36. if (shop.payout(request) ) {
  37. mesg = "";
  38. session.removeAttribute("shopcar");
  39. } else {
  40. if(!shop.getIsLogin())
  41. mesg = "对不起您无权访问此页";
  42. else
  43. mesg = "对不起,您不能重复提交购物单"; 
  44. }
  45. }
  46.   
  47. %>
  48. <HTML><HEAD><TITLE>订单提交成功</TITLE>
  49. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  50. <meta name="CMBNETPAYMENT" content="China Merchants Bank">
  51. <link rel="stylesheet" href="../image/buyok_shop.css" type="text/css">
  52. <style type="text/css">
  53. <!--
  54. .STYLE1 {color: #FF0000}
  55. -->
  56. </style>
  57. </HEAD>
  58. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
  59. <%
  60.  if(!mesg.equals(""))
  61.    out.println("<Script language=JavaScript>alert('"+mesg+"');javascript:history.back();</Script>");
  62. else
  63. {
  64.  session.removeAttribute("goods_num");
  65.  session.removeAttribute("goods_price");
  66.  //session.s
  67. %>
  68. <table width="450" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EBEBEB">
  69.   <tr>
  70.     <td><table width=450 border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC" valign=absmiddle>
  71.       <tr bgcolor="#FFFFFF">
  72.         <td height=19 colspan="3" align="center" valign="middle"><font color="#FF3333"><br>
  73.           </font>
  74.           <div align="center"><span class="red">购物清单</span> <img src="../image/gowu1.gif" width="11" height="7"> <span class="red">收货人信息[配送方式]</span> <img src="../image/gowu1.gif" width="11" height="7"><span class="red"> 检查订单信息</span> <img src="../image/gowu1.gif" width="11" height="7"> <span class="red">生成订单</span> </div></td>
  75.       </tr>
  76.       <tr bgcolor="#FFFFFF">
  77.         <td height=20 colspan="3" align="center" valign="middle"><span class="new"><font color="#FF3333">恭喜,订单提交成功!您可以在会员中心,订单管理内查看这张订单。</font></span></td>
  78.       </tr>
  79.       <tr bgcolor="#FFFFFF">
  80.         <td height=40 colspan="3" align="center" valign="middle"><font color="#FF3333"><span class="new">您的订单号码是:</span><b><%=shop.getIndentNo()%></b>&nbsp;&nbsp;&nbsp;&nbsp;<span class="new">本次交易金额为:</span><b><%=sum%></b><span class="new"> 元</span></font></td>
  81.       </tr>
  82.       <tr bgcolor="#FFFFFF">
  83.         <td  height=40 colspan="3" align="center" valign="middle">您选择的付款方式是:<font color="#FF3333"><b><%=fukuan%>  </b></font>
  84.        </td>
  85.       </tr>
  86.       <tr bgcolor="#FFFFFF">
  87.         <td  height=40 colspan="3" align="center" valign="middle"><span class="STYLE1">邮政平邮的顾客只有付款成功后,才能完成本次交易。(特快专递货到付款)</span></td>
  88.       </tr>
  89.       <tr bgcolor="#FFFFFF">
  90.         <td width="124"  height=40 align="center" valign="middle"><a href="../dil_way.jsp" target="_blank"><img src="../image/bt_6.gif" width="110" height="27" border="0"></a></td>
  91.         <td width="153" height="40" align="center" valign="middle"><a href="../UserCenter/usermanage.jsp" target="_blank"><img src="../image/bt_7.gif" width="110" height="27" border="0"></a></td>
  92.         <td width="153" align="center" valign="middle"><img src="../image/bt_9.gif" width="97" height="27" onClick="javascript:window.close()"></td>
  93.       </tr>
  94.       <tr bgcolor="#FFFFFF">
  95.         <td  height=40 colspan="3" align="center" valign="middle">付款后请尽快与我们联系,以便我们及时查帐并为您发货。</td>
  96.       </tr>
  97.   <tr bgcolor="#FFFFFF">
  98.         <td  height=40 colspan="3" align="center" valign="middle"><span class="STYLE1">(请您在七天内付款或和我们联系,不然您的订单将作废)</span></td>
  99.       </tr>
  100.     </table></td>
  101.   </tr>
  102. </table>
  103. <%}%>
  104. </body></HTML>