<!--#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> 
<%
act=SafeRequestform("act")
if act="edit1" then
cid=trim(SafeRequestform("cid"))
aycaiwuzt=trim(SafeRequestform("aycaiwuzt"))
aycaiwuleibie=trim(SafeRequestform("aycaiwuleibie"))
aycaiwujine=trim(SafeRequestform("aycaiwujine"))
aycaiwutxcl=trim(SafeRequestform("aycaiwutxcl"))
aycaiwuyue=trim(SafeRequestform("aycaiwuyue"))
aytxjj=trim(SafeRequestform("aytxjj"))
aycaiwulastjin=trim(SafeRequestform("aycaiwulastjin"))
alipayfzfei=trim(SafeRequestform("alipayfzfei"))
sql="select * from aycaiwu where aycaiwuid="&cid&"" 
rs.open sql,conn,1,3
if not(rs.eof) then
rs("aycaiwuzt")=aycaiwuzt
rs("aycaiwuleibie")=aycaiwuleibie
rs("aycaiwujine")=aycaiwujine
rs("aycaiwutxcl")=aycaiwutxcl
if aycaiwuyue<>"" then rs("aycaiwuyue")=aycaiwuyue
rs("aytxjj")=aytxjj
if aycaiwulastjin<>"" then rs("aycaiwulastjin")=aycaiwulastjin
rs("alipayfzfei")=alipayfzfei
rs.update
call PopErr2("财务修改成功","adminmycaiwuedit.asp?cid="&cid&"")
else
call PopErr("未找到该财务号")
end if
rs.close

end if



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

		if not isnull(rs("aycaiwuzhifu")) and cint(rs("aycaiwuleibie"))=3 then
		if cint(rs("aycaiwuzhifu"))=1 then response.Redirect ("adminmycaiwucd.asp?c="&c)
		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">
<form method="post" name="form1" id="form1">
       <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">
		<select name="aycaiwuzt" id="aycaiwuzt">
		 <option value="0" <%if cint(rs("aycaiwuzt"))=0 then response.Write"selected"%>>未处理</option>
		 <option value="1" <%if cint(rs("aycaiwuzt"))=1 then response.Write"selected"%>>成功</option>
		 <option value="2" <%if cint(rs("aycaiwuzt"))=2 then response.Write"selected"%>>失败</option>
        </select></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">
		<select name="aycaiwuleibie" id="aycaiwuleibie">
          <option value="0" <%if cint(rs("aycaiwuleibie"))=0 then response.Write("selected")%>>入款</option>
		  <option value="1" <%if cint(rs("aycaiwuleibie"))=1 then response.Write("selected")%>>系统结算</option>
		  <option value="2" <%if cint(rs("aycaiwuleibie"))=2 then response.Write("selected")%>>支出</option>
		  <option value="3" <%if cint(rs("aycaiwuleibie"))=3 then response.Write("selected")%>>充值</option>
		  <option value="4" <%if cint(rs("aycaiwuleibie"))=4 then response.Write("selected")%>>买家返款</option>
		  <option value="5" <%if cint(rs("aycaiwuleibie"))=5 then response.Write("selected")%>>消费</option>
		  <option value="6" <%if cint(rs("aycaiwuleibie"))=6 then response.Write("selected")%>>开通追加消保(消费)</option>
		  <option value="7" <%if cint(rs("aycaiwuleibie"))=7 then response.Write("selected")%>>取消消保(入款)</option>
		  <option value="8" <%if cint(rs("aycaiwuleibie"))=8 then response.Write("selected")%>>引荐返点</option>
		  <option value="9" <%if cint(rs("aycaiwuleibie"))=9 then response.Write("selected")%>>自助提现</option>
		  <option value="9" <%if cint(rs("aycaiwuleibie"))=10 then response.Write("selected")%>>平台利润入账</option>
        </select>      </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"><input name="aycaiwujine" type="text" id="aycaiwujine" value="<%=Formatnumber(rs("aycaiwujine"),3,true,-1,0)%>">	      </td>
	    <th align="center" class="border_right border_bottom">提现状态：<td align="center" class="border_right border_bottom"><select name="aycaiwutxcl" id="aycaiwutxcl">
          <option value="0" <%if cint(rs("aycaiwutxcl"))=0 then response.Write"selected"%>>未处理</option>
          <option value="1" <%if cint(rs("aycaiwutxcl"))=1 then response.Write"selected"%>>已处理</option>
          <option value="2" <%if cint(rs("aycaiwutxcl"))=2 then response.Write"selected"%>>申请中</option>
          <option value="3" <%if cint(rs("aycaiwutxcl"))=3 then response.Write"selected"%>>提现失败</option>
        </select></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"><input name="aycaiwuyue" type="text" id="aycaiwuyue" value="<%=rs("aycaiwuyue")%>"></td>
	    <th align="center" class="border_right border_bottom">是否加急：        
	    
	    <td align="center" class="border_right border_bottom"><select name="aytxjj" id="aytxjj">
          <option value="0" <%if cint(rs("aytxjj"))=0 then response.Write"selected"%>>否</option>
          <option value="1" <%if cint(rs("aytxjj"))=1 then response.Write"selected"%>>是</option>
        </select></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" >
	    <input name="aycaiwulastjin" type="text" id="aycaiwulastjin" value="<%=rs("aycaiwulastjin")%>">	    </td>
	    <th align="center" class="border_right border_bottom">分账手续费:
	    <td align="center" class="border_right border_bottom"><input name="alipayfzfei" type="text" id="alipayfzfei" value="<%=Formatnumber(rs("alipayfzfei"),3,true,-1,0)%>"></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="center" class="border_right border_bottom" style="font-size: 13px"><input name="cid" type="hidden" id="cid" value="<%=cid%>"><input name="act" type="hidden" id="act" value="edit1">
	      <input type="submit" name="Submit" value=" 确 认 修 改 "></td>	    
	  </tr></form>

    </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"-->

