<!-- #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">
<form method="post" action="order_buy_send.asp" name="un">
<input type=hidden name=order_no value="<%=order_no%>">
  <br>
  <table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr valign="top"> 
      <td width="160"><img src="../images/img/logo.gif" width="160" height="65"> 
      </td>
      <td valign="middle" width="484"> 
        <div align="center"><a href="../liansuo.htm"><img src="../images/images/banner.gif" width="468" height="60" border="0"></a></div>
      </td>
      <td valign="middle" width="116"> 
        <div align="center"> <img src="../images/phone.gif" width="120" height="60"></div>
      </td>
    </tr>
  </table>
  <table width="760" border="0" cellspacing="0" cellpadding="0" height="20" align="center">
    <tr> 
      <td width="160" bgcolor="#FF6666"> 
        <div align="center"><font color="#FFFFFF">欢迎光临美慎成人用品商城</font></div>
      </td>
      <td bgcolor="#FF0000"> 
        <div align="center"><a href="/default.asp"><font color="#FFFFFF">首 页</font></a> 
          | <a href="/member/member_register.asp" target="_blank"><font color="#FFFFFF">会员注册</font></a> 
          | <a href="../sales/order_bqz.asp" target="_blank"><font color="#FFFFFF">购物车/结帐</font></a> 
          | <a href="../member/login.asp" target="_blank"><font color="#FFFFFF">会员登陆</font></a> 
          | <a href="../buyway.htm" target="_blank"><font color="#FFFFFF">购物指南</font></a> 
          | <a href="../member/login.asp" target="_blank"><font color="#FFFFFF">订单查询</font></a> 
          | <a href="/liansuo.htm" target="_blank"><font color="#FFFFFF">加盟连锁店</font></a><span class=channel style="FONT-SIZE: 9pt"> 
          |</span><a href="mailto:sales@mensun.com"> <font color="#FFFFFF">批发合作</font></a></div>
      </td>
    </tr>
  </table>
  <br>
  <table width="760" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#FF3333">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">
          <tr bgcolor="#FFCCCC"> 
            <td> 
              <div align="center"> 订 单 资 料</div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td> 
        <div align="center"><br>
          <table border="0" cellpadding="0" align="center" cellspacing="1" width="650" bgcolor="#999999">
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="30"> 
                <div align="center"><font color="#000000"><b>真实姓名：</b><%=TURE_NAME%></font></div>
              </td>
            </tr>
            <tr bgcolor="#CCCCCC"> 
              <td colspan="4" class="word" height="20"><b>订购商品清单：</b></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="25"> <br>
                <table width="550" border="0"  align="center" cellpadding="0" cellspacing="1" bgcolor="#FF0033">
                  <tr  align="center" bgcolor="#FFCCCC" > 
                    <td colspan="5" height="20">购 物 车</td>
                  </tr>
                  <tr  align="center" bgcolor="#FFFFFF" > 
                    <td height="20" width="251">商品名称</td>
                    <td height="20" width="115">优惠价(元)</td>
                    <td height="20" width="114">订购数量</td>
                    <td height="20" width="111">小计(元)：</td>
                  </tr>
                  <%
                  TOTAL = 0
   				SQL = "SELECT * FROM ORDER_TEMP WHERE USER_NAME = '" & Request.ServerVariables("REMOTE_ADDR") & "'"
				RS.Open SQL,CONN,adOpenKeyset ,adLockReadOnly
				DO WHILE NOT RS.EOF 
	
   	    	 %> 
                  <tr align='center' bgcolor="#FFFFFF"> 
                    <td align=left height="20" width="251"> 
                      <div align="center"><a href='/sales/detail.asp' target="_blank" onClick="javascript:window.close();"><%=RS("CARD_NAME")%></a></div>
                    </td>
                    <td height="20" width="115"><%=RS("CARD_PRICE_A")%></td>
                    <td height="20" width="114"> <%=RS("CARD_NUMBER")%> </td>
                    <td height="20" width="111"><%=RS("CARD_TOTAL")%></td>
                  </tr>
                  <%
				TOTAL = TOTAL + RS("CARD_TOTAL")
				RS.MoveNext 
				LOOP
				RS.Close 
		%> 
                  <tr align="center" bgcolor="#FFFFFF"> 
                    <td colspan="2" height="20">&nbsp;</td>
                    <td height="20" width="114">总计(元)：</td>
                    <td height="20" width="111"><font color="#ff0000"><%=TOTAL%></font></td>
                  </tr>
                </table>
                <br>
              </td>
            </tr>
            <tr bgcolor="#CCCCCC"> 
              <td colspan="4" class="word" height="20"><b>付款方式：</b></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" valign="middle" bgcolor="#FFFFFF"> 
                <font color="#000000"> </font> <br>
                <table width="548" border="0" cellspacing="0" cellpadding="0" height="25" align="center">
                  <tr bgcolor="#FFCCCC"> 
                    <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="548" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr bgcolor="#FFCCCC"> 
                    <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 bgcolor="#FFCCCC"> 
                    <td height="25"><font color="#000000"> 
                      <input type="radio" name="pay_mode" value="银行汇款">
                      银行汇款 </font></td>
                  </tr>
                  <tr bgcolor="#FFCCCC"> 
                    <td height="25"><font color="#000000"> 
                      <input type="radio" name="pay_mode" value="网上支付">
                      网上支付 （<b><a href="../payonline.htm" target="_blank">请点击查看网上支付支持的银行卡</a></b>）</font></td>
                  </tr>
                </table>
                <br>
              </td>
            </tr>
            <tr bgcolor="#CCCCCC"> 
              <td colspan="4" class="word" valign="middle" height="20"><b>送货方式：</b></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="60"> 
                <div class="word"> 
                  <div align="center"><br>
                    <select name="send_mode" class="stedit">
                      <option value="普通邮寄">普通邮寄（加收10元；送货周期3-7天）</option>
                      <option value="货到付款">货到付款（加收30元；送货周期2-3天）</option>
                      <option value="特快邮寄">EMS快递 （加收25元；送货周期1-3天）</option>
                      <option value="送货上门">送货上门（内环加收20元、外环加收30元；只限上海地区，时时送达）</option>
                    </select>
                    <br>
                  </div>
                </div>
              </td>
            </tr>
            <tr bgcolor="#CCCCCC"> 
              <td colspan="4" class="word" height="20"><b>备注说明：</b></td>
            </tr>
            <tr bgcolor="#FFFFFF"> 
              <td colspan="4" class="word" height="60"> 
                <div align="center"><font color="#000000"> 
                  <input type="text" name="send_desc" size="60" class="stedit" value="无">
                  </font></div>
              </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>
    <table width="760">
      <tr>
        <td height="64"> 
          <p>请选择<b>货到付款</b>的顾客先<font color="#FF0033"><a href="../hdfk.htm" target="_blank"><b>点此查看已开通货到付款的城市</b></a></font><a href="../hdfk.htm" target="_blank"><b></b></a>，并确认在注册会员时留下了正确的联系电话，如果没有留下电话号码请<font color="#FF0033"><a href="../member/login.asp" target="_blank"><b>点此登<br>
            <br>
            录您的会员帐户</b></a></font>，在注册信息修改中填写好您的联系电话，以便我们进行电话确认。</p>
          </td>
      </tr>
    </table>
    
    <table width="760" border="0" cellspacing="0" cellpadding="0" height="20" align="center">
      <tr bgcolor="#FF0000"> 
        <td colspan="2"> 
          <div align="center"> 网上购物步骤=> 选购商品-> 加入购物车-> 去收银台->加入会员-> 会员登录-> 选择付款配送方式-> 
            完成支付-> 购物完成 </div>
        </td>
      </tr>
    </table>
    <table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td width="21"><img src="../images/img/gwzn.gif" width="30" height="82"></td>
        <td width="739"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td height="20" width="31%"> 
                <div align="center"><b><a href="../dingou-fangshi.htm" target="_blank">订 
                  购 方 式 <img src="../images/img/gwzn1.gif" border="0" width="11" height="6"></a></b></div>
              </td>
              <td height="20" width="23%"> <b><a href="../peisong-fangshi.htm" target="_blank">配 
                送 方 式 <img src="../images/img/gwzn1.gif" width="11" height="6" border="0"></a></b></td>
              <td height="20" width="23%"> <b><a href="../fukuan-fangshi.htm" target="_blank">付 
                款 方 式 <img src="../images/img/gwzn1.gif" width="11" height="6" border="0"></a></b></td>
              <td height="20" width="23%"> <b><a href="../fuwu-baozheng.htm" target="_blank">服 
                务 保 证 <img src="../images/img/gwzn1.gif" width="11" height="6" border="0"></a></b></td>
            </tr>
            <tr> 
              <td rowspan="4" width="31%"> 
                <div align="center"><img src="../images/img/new4.gif" width="8" height="8"> 
                  <a href="../dingou-fangshi.htm#1" target="_blank">网 上 订 购</a> 
                  <br>
                  <img src="../images/img/new4.gif" width="8" height="8"> <a href="../dingou-fangshi.htm#2" target="_blank">电 
                  话 订 购</a> <br>
                  <img src="../images/img/new4.gif" width="8" height="8"> <a href="../dingou-fangshi.htm#3" target="_blank">邮 
                  寄 订 购</a> <br>
                  <img src="../images/img/new4.gif" width="8" height="8"> <a href="../dingou-fangshi.htm#4" target="_blank">传 
                  真 订 购</a> </div>
              </td>
              <td rowspan="4" width="23%"> <img src="../images/img/new4.gif" width="8" height="8"> 
                <a href="../peisong-fangshi.htm#1" target="_blank">送 货 上 门</a> 
                <br>
                <img src="../images/img/new4.gif" width="8" height="8"> <a href="../peisong-fangshi.htm#2" target="_blank">货 
                到 付 款</a> <br>
                <img src="../images/img/new4.gif" width="8" height="8"> <a href="../peisong-fangshi.htm#3" target="_blank">普 
                通 邮 寄</a> <br>
                <img src="../images/img/new4.gif" width="8" height="8"> <a href="../peisong-fangshi.htm#4" target="_blank">EMS 
                特 快 专 递</a> </td>
              <td rowspan="4" width="23%"> <img src="../images/img/new4.gif" width="8" height="8"> 
                <a href="../fukuan-fangshi.htm#1" target="_blank">货 到 付 款</a> 
                <br>
                <img src="../images/img/new4.gif" width="8" height="8"> <a href="../fukuan-fangshi.htm#2" target="_blank">邮 
                政 汇 款</a> <br>
                <img src="../images/img/new4.gif" width="8" height="8"> <a href="../fukuan-fangshi.htm#3" target="_blank">银 
                行 汇 款</a> </td>
              <td rowspan="4" width="23%"> 
                <p><img src="../images/img/new4.gif" width="8" height="8"> <a href="../fuwu-baozheng.htm#1" target="_blank">隐 
                  私 保 护</a> </p>
                <p> <img src="../images/img/new4.gif" width="8" height="8"> <a href="../fuwu-baozheng.htm#2" target="_blank">商 
                  品 退 换</a> </p>
              </td>
            </tr>
            <tr> </tr>
            <tr> </tr>
            <tr> </tr>
          </table>
        </td>
      </tr>
    </table>
    <table width="760" border="0" cellspacing="0" cellpadding="0" height="20">
      <tr> 
        <td width="160" bgcolor="#FF6666"> 
          <div align="center"><font color="#FFFFFF">欢迎光临美慎成人用品商城</font></div>
        </td>
        <td bgcolor="#FF0000"> 
          <div align="center"><a href="/default.asp"><font color="#FFFFFF">首 页</font></a> 
            | <a href="/about.htm"><font color="#FFFFFF">关于我们</font></a><a href="/member/member_register.asp"></a> 
            | <a href="/ad.htm"><font color="#FFFFFF">广告业务</font></a> | <a href="../contact.htm"><font color="#FFFFFF">联系我们</font></a> 
            | <a href="../buyway.htm" target="_blank"><font color="#FFFFFF">购物指南</font></a> 
            | <a href="/liansuo.htm" target="_blank"><font color="#FFFFFF">加盟连锁店</font></a><span class=channel style="FONT-SIZE: 9pt"> 
            |</span><a href="mailto:sales@mensun.com"> <font color="#FFFFFF">批发合作</font></a></div>
        </td>
      </tr>
    </table>
    <table width="760" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td colspan="2" height="45" > 
          <p align="center">Copyright 2000 - 2001 MENSUN.com, All Rights Reserved 
            <br>
            本站由 上海美慎科技发展有限公司 制作</p>
        </td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>

