<!--#include file="top.asp" -->
<%
'禁止网页缓存及涮新
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache"
If Session("huiyuan") ="" Then
 Response.Redirect "cart-login.asp?userid="&userid
response.end
end if
set rs = conn.execute("select * from ls_userid where sessionid="&session.sessionid&" order by id")
'如果session为空，没有购物，转入错误界面
if rs.eof then
Response.redirect "nothing.asp?userid="&userid
end if
rs.close%>
<table width="760" bgcolor="#ffffff" border="0" align="center" cellpadding="0" cellspacing="0" class="table-zuoyou">
  <tr>
    <td width="170" valign="top" bgcolor="#FFFFFF" class="table-you"> 
    <!--#include file="conn/logininc.asp" -->
	<!--#include file="conn/searchinc.asp" -->
	<!--#include file="conn/fenleiinc.asp" -->
    </TD>
    <td width="590" height="350" align="center" valign="top">
	 <!--#include file="conn/bannerinc.asp" --> 
	 <table width="590" border="0" align="center" cellpadding="0" cellspacing="0" class="table-shang">
         <tr>
          <td height="40" align="center" valign="middle"><img src="../image/lc2.gif" width="496" height="22"></td>
        </tr>
     <tr><td>
   <script language="javascript">
	<!--//
	function checksignup() {

		if ( document.formSignUp.name.value == '' ) {
			window.alert('请输入您的名称!!');
			document.formSignUp.name.focus();
			return false;
		}
		if ( document.formSignUp.dz.value == '' ) {
			window.alert('请输入联系地址!!');
			document.formSignUp.dz.focus();
			return false;
		}
		if ( document.formSignUp.dz.value.length<5) {
			window.alert('请输入详细的联系地址!!');
			document.formSignUp.dz.focus();
			return false;
		}
		if ( document.formSignUp.yb.value == '' ) {
			window.alert('请输入联系人邮政编码!!');
			document.formSignUp.yb.focus();
			return false;
		}
            if(isNaN(document.formSignUp.yb.value)||( document.formSignUp.yb.value.length!=6)) {
			window.alert('邮政编码必须为6位数字！');
			document.formSignUp.yb.focus();
			return false;
		}
		if ( document.formSignUp.tel.value == '' ) {
			window.alert('请输入联系人电话!!');
			document.formSignUp.tel.focus();
			return false;
		}
		if(isNaN(document.formSignUp.tel.value)||(document.formSignUp.tel.value.length<7)) {
		window.alert("请输入您的有效电话号码,只能是7位以上的数字!!");
		document.formSignUp.tel.focus();
		return false;
	}
           if ( document.formSignUp.mail.value.length> 0 &&!document.formSignUp.mail.value.indexOf("@")==-1|document.formSignUp.mail.value.indexOf(".")==-1 ) {
			window.alert('请输入您正确的Email地址!!');
			document.formSignUp.mail.focus();
			return false;
		}
         if (document.formSignUp.bz.value.length>500)
  {
  window.alert("备注不能超过500个字符！");
  document.formSignUp.bz.focus();
  return false;
  }
		return true;
	}
	//-->
	</script>
<% set rs = conn.execute("select * from huiyuan where huiyuan='"&session("huiyuan")&"'") %>  
      <TABLE width=550 align="center">
        <FORM action=ok.asp?userid=<%=userid%> method=post name=formSignUp id="formSignUp">
          <TR valign="middle" bgcolor="#ff6600"> 
            <TD height=20 colspan="2"><font color="#ffffff">&gt;&gt;购物结算--您的个人信息</font></TD>
          </TR>
          <TR valign="middle" bgcolor="#f7f7f7"> 
            <TD width="94" height=20 align="right" class=main1>真实姓名：</TD>
            <TD width="444" height=20 class=main1> <INPUT                  name=name class="wenbenkuang" id="name"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("name")%>" size=13 maxLength=49> 
              <font color="#ff3333">*</font></TD>
          </TR>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 align="right" class=main1>联系地址：</TD>
            <TD height=20 class=main1> <INPUT                  name=dz class="wenbenkuang" id="dz"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("dz")%>" size=65 maxLength=200> 
              <font color="#ff3333">*</font> </TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 align="right" class=main1>邮政编码：</TD>
            <TD height=20 class=main1> <INPUT                  name=yb class="wenbenkuang" id="yb" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("yb")%>" size=13 maxLength=16> 
              <font color="#ff3333">*</font> </TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 align="right" class=main1>联系电话：</TD>
            <TD height=20 class=main1> <INPUT                  name=tel class="wenbenkuang" id="tel" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("tel")%>" size=23 maxLength=40> 
              <font color="#ff3333">*</font> </TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 align="right" class=main1>电子信箱：</TD>
            <TD height=20 class=main1> <INPUT                  name=mail class="wenbenkuang" id="mail"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("mail")%>" size=35 maxLength=49> 
            </TD>
          </tr>
          <tr valign="middle" bgcolor="#ff6600"> 
            <TD height=20 colspan="2" class=main1><font color="#ffffff">&gt;&gt;购物结算--您的付款方式</font></TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=30 colspan="2" class=main1><input name="fk" type="radio" value="货到付款">              
              货到付款 
              <input name="fk" type="radio" value="邮局汇款">
              邮局汇款<input name="fk" type="radio" value="招商银行一网通" checked>
              在线支付</TD>
          </tr>
          <tr valign="middle" bgcolor="#ff6600"> 
            <TD height=20 colspan="2" class=main1><font color="#ffffff">&gt;&gt;购物结算--商品配送方式</font></TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 colspan="2" class=main1><%rs.close
			set rs = conn.execute("select * from fukuan where userid="&request("userid")&" order by id desc")
	  for i=1 to rs.recordcount
	  Response.Write("<input type=radio name=fs value="&rs("fs")&" checked>"&rs("fs")&"&nbsp;(预计收货时间："&rs("sj")&")<br>&nbsp;&nbsp;配送费用：")
	  Select case rs("rmb_fs")
      case "1"
        Response.Write("<font color=#ff3300>"&rs("rmb1")&"</font>")
     case "2"
	     Response.Write "<font color=#ff3300>0</font>" 
     case "3"
	     Response.Write ("购物总价小于等于<font color=#ff3300>"&rs("rmb2")&"</font>元,配送价格为<font color=#ff3300>"&rs("rmb3")&"</font>元;大于时配送价格为<font color=#ff3300>"&rs("rmb4")&"</font>") 
    End Select
	  Response.Write("元。配送范围：<font color=#ff0000>"&rs("fw")&"</font><br>")
	  rs.movenext
	  next
	  rs.close
set rs=nothing%></TD>
          </tr>
          <tr valign="middle" bgcolor="#ff6600"> 
            <TD height=20 colspan="2" class=main1><font color="#ffffff">&gt;&gt;您的备注留言</font></TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7">
            <TD height=20 colspan="2" class=main1>如果需要<font color="#FF3300"><strong>发票</strong></font>，请在订单备注中标明，并附上开票信息。如果您有其它问题也可在订单备注中填写。</TD>
          </tr>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 align="right" class=main1>↓订单备注：</TD>
            <TD height=20 class=main1> <textarea name="bz" cols="54" rows="4" class="wenbenkuang" id="bz" title="备注的内容，请保持在500字以内。
谢谢您对我们的支持！" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></textarea> 
            </TD>
          </tr>
         
<tr valign="middle" bgcolor="#f7f7f7"> 
            <TD height=20 colspan="2" align="center" class=main1> <input name="Submit" type="button" class="go-wenbenkuang" value="上一步" onFocus="this.blur()" onclick="javascript:window.history.go(-1)"> 
              <input name="Submit2" type="submit" onClick="javascript:return checksignup()" class="go-wenbenkuang" value="OK,提交订单" onFocus="this.blur()"> 
              <input name="userid" type="hidden" id="userid" value="<%=userid%>">
            </TD>
          </tr>
        </FORM>
      </TABLE>
      <br> </TD>
  </TR>
</TABLE></TD>
  </TR>
</TABLE>
<!--#include file="bd.asp" -->