<!--#include file="../../fy_inc/fy.User.asp"-->
 <!--#include file="payfun.asp"-->
<html>
<head>
<title>form submit</title>

</head>
<%
Dim OrderID,PaymentPlat,Money,ProductName,KSUser,PayMentField,PayUrl,ReturnUrl,Title,RealPayMoney,RealPayUSDMoney,RateByUser,PayOnlineRate,UserHS
	Set UserHS = New ACT_User
	'IF Cbool(UserHS.UserLoginChecked)=false then
	 ' Response.Write "<script>top.location.href ='login.asp' ;</script>"
	 '  Response.end
	'End If	
ConnectionDatabase
If Not  IsNumeric(fycms.s("alimoney")) Then  die "请输入金额"
Money=FormatNumber(fycms.s("alimoney"))
PaymentPlat=ChkNumeric(fycms.s("PaymentPlat"))
OrderID=Year(Now)&right("0"&Month(Now),2)&right("0"&Day(Now),2)&fycms.MakeRandom(8)
 Call GetPayMentField(OrderID,PaymentPlat,Money,0,ProductName,"",UserHS,PayMentField,PayUrl,ReturnUrl,Title,RealPayMoney,RealPayUSDMoney,RateByUser,PayOnlineRate)

%>
<body onLoad="submitForm();">
正在为您接入在线支付平台，请稍等....
<FORM name="myform"  id="myform" action="<%=PayUrl%>" <%if PaymentPlat=11 or PaymentPlat=9 then response.write "method=""get""" else response.write "method=""post"""%> >
		  <table style='display:none' id="c1" class=border cellSpacing=1 cellPadding=2 width="100%" align=center border=0>
 			<tr class=title>
			  <td align=middle colSpan=2 height=22><B> 确 认 款 项</B></td>
			</tr>
			<tr class=tdbg>
			  <td align=right width=167>用户名：</td>
			  <td width="505"><%=userhs.username%></td>
			</tr>
			<tr class=tdbg>
			  <td width="167" align=right>支付编号：</td>
			  <td><%=OrderID%>&nbsp;</td>
		    </tr>
			<tr class=tdbg>
			  <td align=right width=167>支付金额：</td>
			  <td><%=formatnumber(Money,2,-1)%> 元</td>
			</tr>
			
             <%If PaymentPlat=12 Then%>
			<tr class=tdbg>
			  <td align=right width=167>实际支付美金：</td>
			  <td style="color:#FF6600;font-weight:bold">
			  $<%=formatnumber(RealPayUSDMoney,2,-1)%> USD</td>
			</tr>
			<%End If%>
						<%if title<>"" then%>
			<tr class=tdbg>
			  <td align=right width=167>支付用途：</td>
			  <td style="color:red">“<%=title%>”</td>
			</tr>
			<%end if%>
			<%
			if RateByUser=1 then
			%>
			<tr class=tdbg>
			  <td align=right width=167>手续费：</td>
			  <td><%=PayOnlineRate%>%</td>
			</tr>
			<%end if%>

			<tr class=tdbg>
			  <td colspan=2>点击“确认支付”按钮后，将进入在线支付界面，在此页面选择您的银行卡。</td>
		    </tr>
			<tr class=tdbg>
			  <td align=middle colSpan=2 height=40>
			    <%=PayMentField%>
				<%if PaymentPlat=9 then%>
				<Input class="button" id=Submit type=button onClick="myform.submit()" value=" 确定支付 " onClick="document.all.c1.style.display='none';document.all.c2.style.display='';">
				<%else%>
				<Input class="button" id=Submit type=submit value=" 确定支付 " onClick="document.all.c1.style.display='none';document.all.c2.style.display='';">
				<%end if%>
				<input class="button" type="button" value=" 上一步 " onClick="javascript:history.back();"> </td>
			</tr>
		  </table>
		</FORM>
 		<script type="text/javascript">
		   myform.submit();
		</script>
</body>
</html> 