<!--#include file="conn.asp"-->
<title>Discount Voucher codes Verify</title>
<link href=Skin/<%=WrzcNet_skin%>/css.css rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<p style="line-height: 200%; margin-left:20px; margin-right:5px; margin-top:5px; margin-bottom:5px" align="center">
<%
if request("quan_no")<>"" and request("quan_pass")<>"" then
	totalcash=request("tcash")
	set rsp=server.createobject("adodb.recordset")
	rsp.open "select * from WrzcNet_quan where quan_no='"&DelStr(request("quan_no"))&"' and quan_pass='"&DelStr(request("quan_pass"))&"' and quan_date>#"&now()&"#",conn,1,1
	if not rsp.eof then
		quan_man=rsp("quan_man")
		if int(quan_man*100)<=int(totalcash*100) then
			response.write	"<span style=""color:#008000;"">Success, you can save "&fuhao&" "&rsp("quan_cash")*hui&"!</span>"
		else
			response.write	"<span style=""color:#f00;"">Sorry, you can user it when Subtotal more then "&fuhao&" "&quan_man*hui&" !</span>"
		end if
	else
			response.write	"<span style=""color:#f00;"">Error!</span>"
	end if
	rsp.close
	set rsp=nothing
else
			response.write	"<span style=""color:#f00;"">Error!</span>"
end if
%>
<br><a href="javascript:window.close()">Close</a>
</p>