<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />


<BODY>
<title><%=webname%>-最高权限-财务详情</title>
<%
call logquanxian("e1",1)
%>
<DIV>

<DIV id=main1200> 
<%
c=SafeRequest("c")
id=SafeRequest("id")
cid=SafeRequest("cid")

if c<>"" then
sql="select * from aycaiwu where aycailiushui='"&c&"'" 
elseif id<>"" then
sql="select * from aycaiwu where aycaiwudingdan='"&id&"'" 
elseif cid<>"" then
sql="select * from aycaiwu where aycaiwuid="&cid&"" 
end if

rs.open sql,conn,1,1
if rs.bof and rs.eof then
call PopErr("未找到订单")
end if

%>



<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>
<STYLE>.apply_style {
	POSITION: absolute
}
.right_title A {
	LINE-HEIGHT: 27px; WIDTH: 126px; DISPLAY: inline-block; BACKGROUND: url(<%=ossurl%>images/bg22.gif) no-repeat; HEIGHT: 27px
}
.right_title A.current {
	BACKGROUND: url(<%=ossurl%>images/main_right_title_bg.gif) no-repeat; COLOR: #fff; FONT-WEIGHT: bold
}
.table_style_1 TD {
	HEIGHT: 38px
}
.table_style_home_info TD {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; HEIGHT: 30px; PADDING-TOP: 0px
}
</STYLE>

<DIV class=right_titleadmin>&nbsp;&nbsp;财务详情</DIV>
<DIV class=main><br>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">

       <tr>
        <th width="25%" align="center" class="border_right border_bottom" >财务流水号：
        <td width="26%" align="center" class="border_right border_bottom" style="font-size: 14px; color: #FF0000; font-weight: bold" >
		<%if trim(rs("aycailiushui"))<>"" then
		response.Write rs("aycailiushui")
			if cint(rs("isalipayfz"))=1 then 
			response.Write("<span style=color: '#FF6600'>[分]</span>")
			end if
		else
		response.Write ("-")
		end if
		%></td>
        
        <th width="23%" align="center" class="border_right border_bottom">财务状态：
        <td width="26%" align="center" class="border_right border_bottom">
		  <%
		if not isnull(rs("aycaiwuzhifu")) and cint(rs("aycaiwuleibie"))=3 then
		if cint(rs("aycaiwuzt"))=0 then response.Write("未处理")
		if cint(rs("aycaiwuzt"))=1 then response.Write("交易成功")
		if cint(rs("aycaiwuzt"))=2 then response.Write("交易失败")
		elseif rs("aycaiwuleibie")="9" then
			if rs("aycaiwutxcl")="0" then
			response.Write "未处理"
			elseif rs("aycaiwutxcl")="1" then
			response.Write "<font color=#00CC00>提现成功</font>"
			elseif rs("aycaiwutxcl")="2" then
			response.Write "申请中"
			elseif rs("aycaiwutxcl")="3" then
			response.Write "<font color=red>提现失败</font>"
			end if
		else
		response.Write("-")
		end if
		%></td>                
		
       </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
        <th align="center" class="border_right border_bottom">付款交易号：
        <td align="center" class="border_right border_bottom">
		<%
		if trim(rs("aycaiwuptjy"))<>"" then
		response.Write rs("aycaiwuptjy")
		else
		response.Write("-")
		end if
		%></td>
        <th align="center" class="border_right border_bottom">交易方向：
        <td align="center" class="border_right border_bottom"><%
		if cint(rs("aycaiwuleibie"))=0 then response.Write("入款")
		if cint(rs("aycaiwuleibie"))=1 then response.Write("系统结算")
		if cint(rs("aycaiwuleibie"))=2 then response.Write("支出")
		if cint(rs("aycaiwuleibie"))=3 then response.Write("充值")
		if cint(rs("aycaiwuleibie"))=9 then response.Write("自助提现")
		if cint(rs("aycaiwuleibie"))=11 then response.Write("冻结")
		%></td>
        </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">发生金额：      
	    <td align="center" class="border_right border_bottom" style="color: #FF0000; font-weight: bold"><%=Formatnumber(rs("aycaiwujine"),3,true,-1,0)%>元</td>
	    <th align="center" class="border_right border_bottom">提现状态：
	    <td align="center" class="border_right border_bottom">
		<%
		if cint(rs("aycaiwuleibie"))=1 then
		if cint(rs("aycaiwutxcl"))=0 then response.Write("未处理")
		if cint(rs("aycaiwutxcl"))=1 then response.Write("已处理")
		if cint(rs("aycaiwutxcl"))=2 then response.Write("申请中")
		else
		response.Write("-")
		end if
		%>		</td>
	  </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">支付方式：      
	    <td align="center" class="border_right border_bottom" >
		<%
		if rs("aycaiwuzhifu")<>"" then
		if cint(rs("aycaiwuzhifu"))=0 then response.Write("网银")
		if cint(rs("aycaiwuzhifu"))=1 then response.Write("充值卡")
		if cint(rs("aycaiwuzhifu"))=2 then response.Write("支付宝")
		if cint(rs("aycaiwuzhifu"))=3 then response.Write("财付通")
		if cint(rs("aycaiwuzhifu"))=4 then response.Write("快捷")
		if cint(rs("aycaiwuzhifu"))=99 then response.Write("账户余额")
		if cint(rs("aycaiwuzhifu"))=5 then response.Write("API接口")
		else
		response.Write("-")
		end if
		%>		</td>
	    <th align="center" class="border_right border_bottom">支付通道代码：
	    <td align="center" class="border_right border_bottom">
		<%if trim(rs("aycaiwupid"))<>"" then
		response.Write rs("aycaiwupid")
		else
		response.Write("-")
		end if
		%>		</td> 
	  </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">发生时间：
	    <td align="center" class="border_right border_bottom"><%=rs("aycaiwudate")%></td>
	    <th align="center" class="border_right border_bottom">会员：
	    <td align="center" class="border_right border_bottom"><%=rs("aycaiwuuser")%></td>
	  </tr>
	  <%

%>
	  
	  
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <td colspan="4" align="left" class="border_right border_bottom" style="font-size: 13px">&nbsp;&nbsp;<span style="font-weight: bold">该订单支付方式为充值卡支付</span></td>	    
	  </tr>

	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">点卡名称：
	    <td align="center" class="border_right border_bottom"><%=diankaname%></td>
	    <th align="center" class="border_right border_bottom">&nbsp;</th> 
	    <td align="center" class="border_right border_bottom">&nbsp;</td>
	  </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">支付结果：
	    <td align="center" class="border_right border_bottom"><%
		if rs("r1_Code")="1" then 
		response.Write("<font color=#00CC00>充值卡支付成功</font>")
		else
		response.Write("<font color=red>充值卡支付失败</font>")
		end if
		%></td>
	    <th align="center" class="border_right border_bottom">卡状态组提示：	          
	    <td align="center" class="border_right border_bottom">
		
		</td>
	  </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">充值卡组面值：
	    <td align="center" class="border_right border_bottom"></td>
	    <th align="center" class="border_right border_bottom">
	    成功金额：
	    <td align="center" class="border_right border_bottom"><%=rs("aycaiwujine")%>元</td>
	  </tr>
	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
	    <th align="center" class="border_right border_bottom">充值卡组卡号：
	    <td align="center" class="border_right border_bottom"></td>
	    <th align="center" class="border_right border_bottom">充值卡组密码：
	    <td align="center" class="border_right border_bottom"></td>
	  </tr>
	  <tr >
	    <td height="10" colspan="4" class="border_right border_bottom">&nbsp;</td>      
	    </tr>

	 

	  <%

	  %>
    </table>
</DIV>
<%rs.close%>

</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>
<SCRIPT>
$(function(){
$('.left_title').each(function(){
   $(this).click(function(){
	   var index=$('.left_title').index(this);
	   if($(this).next().hasClass('hide_m')){
		   $(this).next().removeClass('hide_m');
           $(this).next().show();		 
		   $(this).find('img').attr('src','<%=ossurl%>images/expansion.gif');
		   $.cookie('m_index_'+index,'',{expires:0});
	   } else {
	       $(this).next().hide();
		   $(this).next().addClass('hide_m');
		   $(this).find('img').attr('src','<%=ossurl%>images/shrank.gif');		   
		   $.cookie('m_index_'+index,'none',{expires:365});
	   }
   })
})

$('.left_title').each(function(){
	var index=$('.left_title').index(this);
    $(this).next().css('display',$.cookie('m_index_'+index) ? $.cookie('m_index_'+index) : '');
	if($.cookie('m_index_'+index)){
	    $(this).next().addClass('hide_m');
	}
	$(this).find('img').attr('src',$.cookie('m_index_'+index) ? '<%=ossurl%>images/shrank.gif' : '<%=ossurl%>images/expansion.gif');
})
})

</SCRIPT>


<!--#include virtual="/show/footadmin.asp"-->

