<!-- #include virtual = "/include/myopen.asp" -->
<%
	set RS = Server.CreateObject("ADODB.RecordSet")
	set RS1 = Server.CreateObject("ADODB.RecordSet")
%>
<%
IF Request.Cookies ("USER_NAME") = ""  THEN

	descr_url=Request.ServerVariables("SCRIPT_NAME")
	'订购的登陆
	
	'没有登陆
	Response.Redirect ("/member/login.asp?source_url=" & descr_url & "")
	
END IF

	'进行付款
		TOTAL =0
		SQL = "SELECT ORDER_ID FROM ID"
		RS.Open SQL,CONN,adOpenStatic ,adLockReadOnly 
			ORDER_NO = RS(0)
			P=ORDER_NO + 1
		RS.Close 
		SQL = "UPDATE ID SET ORDER_ID = '" & P & "'"
		CONN.Execute (SQL)
	
	SQL = "SELECT SUM(CARD_TOTAL) AS TOTAL FROM ORDER_TEMP WHERE USER_NAME = '" & Request.ServerVariables("REMOTE_ADDR") & "'"
	RS.Open SQL,CONN,adOpenKeyset ,adLockReadOnly
		IF RS.RecordCount >0 THEN
			'可以付款
			'取本用户的联系方法
			'Response.Write RS("TOTAL")
			TOTAL = RS("TOTAL")
			SQL = "SELECT * FROM MEMBER WHERE USER_NAME = '" & Request.Cookies ("USER_NAME") & "'"
			RS1.Open SQL,CONN,adOpenStatic ,adLockReadOnly
				IF RS1.RecordCount >0 THEN
					TURE_NAME = RS1("TRUE_NAME")
					POST_CODE = RS1("POST_CODE")
					ADDRESS = RS1("ADDRESS")
				END IF
			RS1.Close 
		ELSE
		'连接够物车
		'	Response.Redirect ("order_card.asp")
		END IF
	RS.Close 
	%>
	<html>
<head>
<title>收银台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
-->
</style>
<link rel="stylesheet" href="../news%5B1%5D.css">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
 <!-- #include virtual = "/plate/top.htm" -->
<br>
<form method="post" action="order_buy_send.asp" name="un">
<input type=hidden name=order_no value="<%=order_no%>">
  <table width="67%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="20" background="../images/index-3.gif">
          <tr>
            <td>
              <div align="center"><img src="../images/qingdan.gif" width="118" height="13"></div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td> 
        <div align="center">
          <table border="0" cellpadding="0" align="center" cellspacing="1" width="95%">
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <font color="#000000">用户名称：</font><font color="#000000"><%=Request.Cookies ("USER_NAME")%></font> 
              </td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"><font color="#000000">真实姓名：</font><font color="#000000"><%=TURE_NAME%></font></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <font color="#000000">商品总价格：</font><font color="#000000"><%=TOTAL%>元</font></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td width="67" class="word" valign="middle"> <font color="#000000"><br>
                付款方式：</font></td>
              <td colspan="3" class="word" width="432" valign="top"> <font color="#000000"> 
                </font> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0" height="25">
                  <tr> 
                    <td height="25"><font color="#FF0033"><b></b></font><font color="#000000"> 
                      </font><font color="#000000"> 
                      <input type="radio" name="pay_mode" value="邮局汇款" checked>
                      邮局汇款 </font></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td height="25"><font color="#FF0000"><b></b></font><font color="#000000">
                      <input type="radio" name="pay_mode" value="货到付款">
                      货到付款 <b>（<a href="../hdfk.htm" target="_blank">请点此查看货到付款开通城市</a>）</b> 
                      </font></td>
                  </tr>
                  <tr> 
                    <td height="25"><font color="#000000">
                      <input type="radio" name="pay_mode" value="银行汇款">
                      银行汇款 </font></td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> 
                <div class="word"><font color="#000000">送货方式：</font> 
                  <select name="send_mode" class="stedit">
                    <option value="普通邮寄">普通邮寄+收10元 （送货周期3-7天）</option>
                    <option value="送货上门">货到付款+收40元 （送货周期3-5天）</option>
                    <option value="特快邮寄">EMS快递+收30元 （送货周期1-3天）</option>
                  </select>
                </div>
              </td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"><font color="#000000">送货日期：</font><font color="#000000"> 
                <input type="text" name="send_date" size="16" value="<%=date+1%>" class="stedit">
                </font></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <font color="#000000">送货地点：</font><font color="#000000"> 
                <input type="text" name="send_addr" value="<%=ADDRESS%>" class="stedit">
                </font><font color="#000000"></font><font color="#000000"></font></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <font color="#000000">邮政编码：</font><font color="#000000"> 
                <input type="text" name="send_post" size="6" maxlength="6" value="<%=POST_CODE%>" class="stedit">
                </font></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <font color="#000000">说明备注：</font><font color="#000000"> 
                <input type="text" name="send_desc" size="60" class="stedit">
                </font></td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </table>
  <div align="center">
    <p><br>
      <input type="submit" name="order_send" value="付 款" class="stbtm">
      <input type="reset" name="Reset" value="重 填" class="stbtm">
    </p>
    <p><font color="#FF0033">请选择<b>货到付款</b>的顾客先<a href="../hdfk.htm" target="_blank"><b>点此查看已开通货到付款的城市</b></a>，并确认在注册会员时留下了正确的联系电话，如果没有留下电话号码请<a href="http://www.e24time.com/member/login.asp" target="_blank"><b>点此登录您的会员帐户</b></a>，在注册信息修改中填写好您的联系电话，以便我们进行电话确认。</font> 
    </p>
  </div>
</form>
 <!-- #include virtual = "/plate/button.htm" -->
</body>
</html>

