<!--#include file="include/nowshop.asp" -->
<!--#include file="md5.asp"-->
<%
call aspsql()
call CheckForm()

if request("edit")="ok" then call edit()
%>
<html>
<head>
<title>汇款确认-<%=sitename%>-<%=siteurl%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="images/css.css" type=text/css rel=stylesheet>
<LINK href="list/newhead.css" type=text/css rel=stylesheet>
<script language="JavaScript">
function CheckForm()
{
if (document.order.hk2.value.length <1 ) {
alert("请填写付款金额");
document.order.hk2.focus();
return false;
}
if (document.order.hk4.value.length < 1) {
alert("请填写银行名称");
document.order.hk4.focus();
return false;
}
if (document.order.hk5.value.length < 1) {
alert("请填写付款姓名");
document.order.hk5.focus();
return false;
}

if (document.order.hk6.value.length < 6 || document.order.hk6.value.length > 30) {
alert("请检查您输入的联系电话");
document.order.hk6.focus();
return false;
}
if (document.order.hk8.value.length <2 || document.order.hk8.value.length >=100) {
alert("请检查您输入的电子信箱");
document.order.hk8.focus();
return false;
}
if (document.order.hk8.value.length > 0 && !document.order.hk8.value.match( /^.+@.+$/ ) ) {
 alert("请检查您输入的电子信箱");
 document.order.hk8.focus();
return false;
}
return true;
}
</script>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<!--#include file="top.asp"-->
<%
set rs=conn.execute("select * from buser where UserId='"&request.cookies("buyok")("userid")&"'")
%>
<table width="768" border="0" cellspacing="0" cellpadding="0">
  <tr> 
      <td width="186" align="center" valign="top" bgcolor="#f4f5fd"><!--#include file="zuo_member.asp"--></td>
    <td align="center" valign="top"> <TABLE width=560 border=0 cellPadding=0 cellSpacing=0 bordercolor="#587ad9">
        <TBODY>
          <TR> 
            <TD height=12><table>
                  <tr> 
                    <td align="center" valign="middle"><TABLE cellSpacing=0 cellPadding=0 width=547 border=0 style="BORDER-RIGHT: #b1bfee 1px solid; BORDER-TOP: #b1bfee 1px solid; BORDER-LEFT: #b1bfee 1px solid; BORDER-BOTTOM: #b1bfee 1px solid" 
>
                        <TBODY>
                          <TR> 
                            <TD bgColor=#f4f5fd height=25><font color="#000000">　请在付款后及时填写汇款确认信息，以便我们及时查帐并处理您的订单。请据实填写以下表格：</font></TD>
                          </TR>
                        </TBODY>
                      </TABLE></td>
                  </tr>
                  <tr> 
                    <td align="center" valign="middle">
					
					  <form name="order" action="my_huikuan.asp" method=post  onSubmit="return CheckForm();">
                        <table width="547" border="0" cellpadding="4" cellspacing="0" bordercolor="#C0C0C0" align=center bordercolordark="#FFFFFF" style="BORDER-RIGHT: #b1bfee 1px solid; BORDER-TOP: #b1bfee 1px solid; BORDER-LEFT: #b1bfee 1px solid; BORDER-BOTTOM: #b1bfee 1px solid">
                        <tr> 
                          <td>订 单 号：</td>
                          <td><input name="hk1" type="text" size="25" maxlength="14" class=regtxt> 
                            <font color="#FF0000">若没有订单号，可不填写</font></td>
                        </tr>
                        <tr> 
                          <td>付款金额：</td>
                          <td><input name="hk2" type="text" size="25" maxlength="10" class=regtxt> 
                            <font color="#FF0000">填写实付金额，不应包括您汇款的手续费</font></td>
                        </tr>
                        <tr> 
                          <td>付款方式：</td>
                          <td> <input name="hk3" type="radio" value="1" checked>
                            在线支付 
              <% set rs_pay=conn.execute("select * from pay") 
			  
			  if rs_pay("pay1")<>"0" then%>

							<input name="hk3" type="radio" value="2">
                              支付宝支付 
			 <%end if%>

                              <input name="hk3" type="radio" value="3">
                              银行电汇 
                              <input name="hk3" type="radio" value="4">
                              邮局汇款</td>
                        <tr> 
                          <td>银行名称：</td>
                          <td><input name="hk4" type="text" size="25" maxlength="25" class=regtxt> 
                            <font color="#FF0000">填写银行名称</font></td>
                        </tr>
                        <tr> 
                          <td>付款姓名：</td>
                          <td><input name="hk5" type="text" size="25" maxlength="25" class=regtxt> 
                            <font color="#FF0000">填写付款人姓名</font></td>
                        </tr>
                        <tr> 
                          <td>联系电话：</td>
                          <td><input name="hk6" type="text" size="25" maxlength="25" class=regtxt> 
                            <font color="#FF0000">建议留下您的联系方式，以便联络</font></td>
                        </tr>
                        <tr> 
                          <td>电子邮箱：</td>
                          <td><input name="hk8" type="text" size="25" maxlength="100" class=regtxt></td>
                        </tr>
                        <tr> 
                          <td>联系地址：</td>
                          <td><input name="hk7" type="text" size="25" maxlength="50" class=regtxt></td>
                        </tr>
                        <tr> 
                          <td valign=top>附言内容：<br> <font color=red>≤200字</font></td>
                          <td><textarea alt="有关您的付款情况的其它说明" rows="4" name="hk9" cols="60" class=regtxt2><%=Replace(request("huifu"),"<br>",vbCRLF)%></textarea> 
                          </td>
                        </tr>
                        <tr> 
                          <td height=50 colspan=2 align=center><input type="submit" value="立即发送" name="Input" class=button> 
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input name="reset" type="reset" value="重新填写" class=button>
                              <input type=hidden name=edit value="ok">
							  <input type=hidden name=hk10 value="<%=rs("UserID")%>"></td>
                        </tr>
                      </table></form>
                      </td>
                  </tr>
                </table></TD>
          </TR>
        </TBODY>
      </TABLE>
    </td>
  </tr>
</table>
<!--#include file="down.asp"-->
</center>

</body>
</html>
<%
sub edit()

hk1=request.form("hk1")
hk2=request.form("hk2")
hk3=request.form("hk3")
hk4=request.form("hk4")
hk5=request.form("hk5")
hk6=request.form("hk6")
hk7=request.form("hk7")
hk8=request.form("hk8")
hk9=request.form("hk9")
hk10=request.form("hk10")

set rsadd=server.createobject("adodb.recordset")
sql="select * from hand"
rsadd.open sql,conn,1,3
rsadd.AddNew 
rsadd("hk1")=hk1
rsadd("hk2")=hk2
rsadd("hk3")=hk3
rsadd("hk4")=hk4
rsadd("hk5")=hk5
rsadd("hk6")=hk6
rsadd("hk7")=hk7     '配送方式
rsadd("hk8")=hk8     '配送费用
rsadd("hk9")=hk9
rsadd("hk10")=hk10

rsadd.Update
rsadd.close
set rsadd=nothing

response.write "<script language='javascript'>"
response.write "alert('操作成功，您已经成功提交汇款确认。我们会尽快给您发货！');"
response.write "location.href='my_huikuan.asp';"
response.write "</script>"
response.end

end sub

conn.close
set conn=nothing
%>

