<!--#include file="inc/payconn.asp"-->
<!--#include file="buy/func.asp"-->
<!--#include file="buy/fun.asp"-->
<%
num=Lcase(session("num"))
'num = (Request("num"))
uid = Lcase(session("uid"))
wid = Lcase(session("wid"))

If num = "" Then
	Call WriteErr("操作超时，请返回上一步重试。","1")
End If
	Call ConnectionDatabase()
if num<>"" then 

	SQL = "Select * ,(select wooolname from L_woool where id=wooolid) as wooolname From [mobile1] Where num='"&num&"'"
	Set Res = Server.CreateObject("ADODB.Recordset")
	Res.Open SQL,Conn,1,1
	if res.eof or res.bof then
	Call WriteErr("没有对应的数据记录。","1")
	else
	m=res("time")
	price=res("price")
	okprice=res("okprice")
	username=res("number")
	mobile=res("usercode")
	codepassword=res("usercode2")
	wooolname=res("wooolname")
	PayID=res("port")
	eBank=res("eBank")
	des=res("des")
	des2=res("des2")
	stat=res("stat")
	stat2=res("stat2")	
	if stat=0 then des="<img align=absmiddle src=images/loading.gif /><span style=color:Gray>验证中</span>"
	if stat=1 then des="<span style=color:Green>交易成功</span>"
	if stat=2 and des="" then des="<span style=color:Red>交易失败</span>"
	if stat=2 then des="<span style=color:Red>"&des&"</span>"

End If
End If

call DBConnEnd

%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>在线支付 - <%=wooolname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<%if stat<>0 then%>

<%else%>
<meta http-equiv="refresh" content="10">
<%end if%>
<link type="text/css" rel="stylesheet" href="css/reset.css" />
<link type="text/css" rel="stylesheet" href="css/main.css" />
<link type="text/css" rel="stylesheet" href="css/template.css" />
<script type="text/javascript" src="/scripts/common.js"></script>
</head>
<body>
	<div id="header">
		<div id="pagetitle"><%=wooolname%></div>
		<div id="utils">
			<a href="/queryorder.asp" class="underline" target="_blank">订单查询</a><span class="separator"> | </span>
			<a id="msgEntry" href="#" class="underline">给管理员留言</a>
		</div>
		<div class="clear"></div>
	</div>
	<div id="outer">
		<div id="outerpad">
			<div id="notice">
				<span>所有充值业务即时自动生效，充值完成以后自动领取，无需向管理员索要。</span>
			</div>



			<div id="main">
				<div id="progress" style="background-image:url(images/progress4.jpg);"></div>
				<div id="layout">

					

					<div id="responsePart">
						<div class="highlightArea">
							<span class="bold t2 bigger">您的支付申请已提交，本页面会刷新显示此次交易的状态进度。</span>
						</div>
						<div class="vspace"></div>

						<div class="gridwrap">
							<table cellpadding="5" cellspacing="0" class="grid fixed">
								<thead>
									<th width="100">充值账号</th>
									<th width="120">卡号</th>
									<th width="200">系统订单号</th>
									<th rowspan=2>状态</th>
								</thead>
								<tr style="font-size:12px !important">
									<td><span class="bold"><%=username%></span></td>
									<td><span class="t2"><%=mobile%></span></td>
									<td><span class="t2" id="rOrderId"><%=num%></span></td>
									<td><span id="rStatus"><%=des%></span></td>
								</tr>

							</table>
						</div>
						<div class="vspace"></div>


						<div>
							
							您的支付申请已提交，本页面会刷新显示此次交易的状态进度，请等待上方状态栏显示“<span style="color:Green">交易成功</span>”字样。
							<div class="lb"></div>
							<ul style="line-height:22px; font-size:12px !important">
								<li><span style="color:Gray">验证中</span> &nbsp; 表示正在验证您的支付卡，请耐心等待。</li>
								<li><span style="color:Red">交易失败</span> &nbsp;  表示你的卡不存在、已使用、作废、冻结、密码错误、过期等问题，一切以官方数据为准。</li>
								<li><span style="color:Green">交易成功</span> &nbsp; 表示此次交易成功，系统已发货。</li>
								<li>其它 &nbsp; 参照错误描述。</li>
							</ul>
							<div class="lb"></div>
							若您在付款完成后仍长时间未看到交易成功的结果，请记下系统订单号并点击 <a target="_blank" class="underline bold" href="queryorder.asp">查询订单状况</a>。
						</div>
						<div class="vspace"></div>
						<div class="vspace"></div>

						<div class="center">
<input id="back" type="button" value="上一步" class="button" onclick="javascript:history.back();" />&nbsp; 
							<input type="button" value="已完成支付" style="width:100px" class="button" onclick="javascript:window.close();" />
						</div>
					</div>
				</div>
			</div>
		
		</div>
	</div>
	<div id="msgLayer" class="floatLayer" style="display:none">
		<table cellpadding="0" cellspacing="0" style="width:375px">
			<tr>
				<td><h3 class="bigger">给管理员留言</h3></td>
				<td class="right"><a id="msgClose" href="#" class="underline">取消</a></td>
			</tr>
		</table>
		<div class="vspace"></div>
		<input type="hidden" id="msgToMerchantId" value="<%=uid%>" />
		<select id="msgType">
				<option value="3">意见建议</option>
				<option value="1">充值失败</option>
				<option value="2">服务器故障</option>
				<option value="4">投诉抱怨</option>
				<option value="99">其它</option>
			</select>
		<div class="lb"></div>
		<textarea id="msgContent" style="width:369px; height:90px"></textarea>
		<div class="vspace"></div>
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td>我的游戏帐号:<br /><input type="input" id="msgSender" maxlength="16" style="width:85px" /> &nbsp; <div class="lb"></div></td>
				<td valign="top"><span style="visibility:hidden">　</span><br /><span class="t2">(必填)</span></td>
				<td></td>
			</tr>
			<tr>
				<td>我的QQ:<br /><input type="input" id="msgQQ" maxlength="11" style="width:85px" /> &nbsp; </td>
				<td>我的手机:<br /><input type="input" id="msgCell" maxlength="11" style="width:85px" /> &nbsp; </td>
				<td>我的Email:<br /><input type="input" id="msgEmail" maxlength="36" style="width:175px" /></td>
			</tr>
		</table>
		<div class="vspace"></div>
		<div class="center">
			<input type="button" id="msgSend" value="发送" style="width:90px !important; height:23px !important" class="button" />
			<input type="button" id="msgCancel" value="取消" style="width:90px !important; height:23px !important" class="button" />
		</div>
	</div>
	<script language="javascript" src="/scripts/SendMessage.js"></script>
</body>
</html>
