<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include virtual="/inc/conn.asp"-->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>向商家付款</title>

<style type="text/css">
a{text-decoration : none}
</style>

</head>

<body>

    
<%
total_fee=SafeRequestform("total_fee")
out_trade_no=SafeRequestform("out_trade_no")
act=SafeRequestform("act")
shouid=SafeRequestform("shouid")
	

	
if shouid=""  then
response.Write "缺少参数shouid"
response.End()
end if

if total_fee=""  then
response.Write "缺少参数total_fee"
response.End()
end if

if out_trade_no="" then
response.Write "缺少参数out_trade_no"
response.End()
end if

if act="" then
response.Write "缺少参数act"
response.End()
end if


if act<>"ali" and act<>"wei" and act<>"qq" then 
response.Write "场景错误"
response.End()
end if


ddku=getddku(out_trade_no)

rs.open "select top 1 aydingdanuser,aydingdansum from "&ddku&" where aydingdansum='"&out_trade_no&"'" ,conn,1,1	
if not(rs.bof and rs.eof) then
uid=rs("aydingdanuser")
end if
rs.close

uqq=""
uwx=""
uma=""
rs.open "select * from ayname where aynameid="&uid&"",conn,1,1
if not(rs.bof and rs.eof) then
uqq=trim(rs("ayqq"))
uwx=trim(rs("ayweixinid"))

if cint(rs("ayisweixinok"))=2 then
uma=trim(rs("ayweixinpic"))
end if

end if
rs.close


tishi="款项由商家直接收取，付款后请联系商家获取卡密！"
%>

<script language="javascript">
window.onload = function(){layer.alert('<%=tishi%>',{title: '重要提示',});}
</script>


<%

if act="ali" then
shoukuanid="商家"
quname="支付宝"
%>
<style type="text/css">body {background-color: #2d95e0;}</style>
<%end if%>

<%
if act="wei" then
shoukuanid="商家"
quname="微信"
%>
<style type="text/css">body {background-color: #22ab38;}</style>
<%end if%>

<%
if act="qq" then
shoukuanid="商家"
quname="QQ"
%>
<style type="text/css">body {background-color: #3bc4af;}</style>
<%end if
%>

<div style="margin:0 auto;border-radius:6px;width:500px; height:400px; background-color:#FFF"> 

    <div style="margin:0 auto; padding-top:20px;width:320px; height:60px; font-size:18px; color:333333; text-align:center">
    <span style="font-size:22px; color:#F30">第1步  </span><%=quname%>扫一扫，向<span style="color:#F30;font-weight:bold"><%=shoukuanid%></span>付款
    </div>

    <div style="margin:0 auto;width:260px;">
    <img src="<%=shouid%>" width="260" />
    </div>

</div>


<div style="margin:0 auto; margin-top:20px;border-radius:6px;width:500px; height:100px; background-color:#FFF"> 

    <div style="margin:0 auto; padding-top:20px;width:320px; height:60px; font-size:18px; color:333333; text-align:center">
    <span style="font-size:22px; color:#F30">第2步  </span>
    <span style=" color:333333">输入金额 </span>
    <span style="font-size:40px; color:#F30;"><i><%=Formatnumber(total_fee,2,true,-1,0)%></i></span>
    </div>

</div>


<div style="margin:0 auto; margin-top:20px;border-radius:6px;width:500px; height:100px; background-color:#FFF"> 

    <div style="margin:0 auto; padding-top:30px;width:420px; height:60px; font-size:18px; color:333333; text-align:center">
    
    
	<%if act="ali" then%>
    
    <span style="font-size:30px;color:#108ee9;">3.支付后请联系商家获取卡密！</span>
    
	<%elseif act="wei" then%>
    
    <span style="font-size:30px;color:#22ab38;">3.支付后请联系商家获取卡密！</span>
    
	<%elseif act="qq" then%>
    
    <span style="font-size:30px;color:#3bc4af;">3.支付后请联系商家获取卡密！</span>
    
    <%end if%>
    
    </div> 
 
</div>
  


<div style="margin:0 auto; padding-top:30px;width:520px; height:60px; font-size:18px; color:333333; text-align:center">

<span style="font-size:13px; color:#ffffff">
<%=tishi%><br><br>

商家QQ：<%=uqq%> (请先添加好友)<br>

<%if uwx<>"" then%>
商家微信：<%=uwx%> (请先添加好友)<br>
<%end if%>

<%if uma<>"" then%>
商家微信二维码 (微信扫一扫添加好友)<br>
<img src="<%=uwx%>" width="260" />
<%end if%>

</span>
</div>




</body>
</html>
