<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->



<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />


<title><%=webname%>-最高权限-财务记录</title>
<%
call logquanxian("e1",1)

admincwku="aycaiwu"
if request.QueryString("cwku")="aycaiwu" then admincwku="aycaiwu"
if request.QueryString("cwku")="aycaiwu01" then admincwku="aycaiwu01"
if request.QueryString("cwku")="aycaiwu02" then admincwku="aycaiwu02"
if request.QueryString("cwku")="aycaiwu03" then admincwku="aycaiwu03"
if request.QueryString("cwku")="aycaiwu04" then admincwku="aycaiwu04"
if request.QueryString("cwku")="aycaiwu05" then admincwku="aycaiwu05"
%>
<DIV>


<DIV id=main1200> 
<%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>
<SCRIPT LANGUAGE="JavaScript">
var checkflag1 = "false";
function check1(field) {
if (checkflag1 == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag1 = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag1 = "false";
return "true"; }
}

function unselectall1()
{
    if(document.myform.chkAll1.checked){
	document.myform.chkAll1.checked = document.myform.chkAll1.checked&0;
	checkflag1 = "false";
    } 	
}
</script>
<SCRIPT LANGUAGE="JavaScript">
function ddel(){

if(confirm("确定要删除财务记录吗？")){
	document.getElementById("isdel").value="alldel";
	document.getElementById(myform).submit();
        return true;
}else{
        return false;
}
}
</script>
<%
if Ubound(split(trim(request.ServerVariables("HTTP_REFERER")),"admincaiwu.asp"))<=0 then
'response.Write("非本页")	
response.Cookies("dateaa")=""
response.Cookies("datebb")=""
response.Cookies("dingdan")=""
response.Cookies("zhuangtai")=""
end if

aycaiwuleibie="99"

aact=request.QueryString("aact")

if request.QueryString("uid")<>"" then uid=request.QueryString("uid")

link="admincaiwu.asp?cact=&uid="&uid&"&cwku="&admincwku

if aact<>"" then link=link&"&aact="&aact


act=request.QueryString("act")

if request.QueryString("act")="fsuoding" then
id=request.QueryString("id")
sql="select aycwissuo,aycaiwuid from "&admincwku&" where aycaiwuid="&id&"" 
rs.open sql,conn,1,3
rs("aycwissuo")=1
rs.update
rs.close 
response.Redirect "admincaiwu.asp?cwku="&admincwku
end if
if request.QueryString("act")="fjiesuo" then
id=request.QueryString("id")
sql="select aycwissuo,aycaiwuid from "&admincwku&" where aycaiwuid="&id&"" 
rs.open sql,conn,1,3
rs("aycwissuo")=0
rs.update
rs.close 
response.Redirect "admincaiwu.asp?cwku="&admincwku
end if

if act="del" then
call lognamecode()
call logquanxian("e2",1)
id=request.QueryString("id")
sql="select * from "&admincwku&" where aycaiwuid="&id&"" 
rs.open sql,conn,1,3
rs.delete
rs.close
call logadd(request.Cookies("aynameid"),"管理-财务记录成功"&id,0,0)
response.Redirect("admincaiwu.asp?cwku="&admincwku&"")
end if



if act="delche" then
call lognamecode()
call logquanxian("e2",1)
id=request.QueryString("id")
jin=request.QueryString("jin")
uid=request.QueryString("uid")
sql="select * from "&admincwku&" where aycaiwuid="&id&"" 
rs.open sql,conn,1,3
rs.delete
rs.close

sql="select * from ayname where aynameid="&uid&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs("ayyue")=ccur(rs("ayyue"))-ccur(jin)
rs.update
end if
rs.close
call PopErr2("操作成功","admincaiwu.asp?cwku="&admincwku&"&uid="&uid&"")
end if



isdel=request.form("isdel")
if isdel="alldel" then
call lognamecode()
call logquanxian("e2",1)
list1=request.form("list1")
cwku=request.form("cwku")
if list1="" then call PopErr("未找到此项目")
	delid=split(list1,",")
	
	For dianka=0 To Ubound(delid) 
	sql="select * from "&cwku&" where aycaiwuid="&trim(delid(dianka))&"" 
	rs.open sql,conn,1,3 
	if rs.bof and rs.eof then
	call PopErr("未找到此项目")
	else
	rs.delete
	rs.close
	end if
	next
	call logadd(request.Cookies("aynameid"),"管理-财务多选删除成功",0,0)
	response.Redirect("admincaiwu.asp?page="&page&"&cwku="&cwku&"")

end if






if act="cha" then
sqldd=""
anian=request.QueryString("anian")
ayue=request.QueryString("ayue")
ari=request.QueryString("ari")
bnian=request.QueryString("bnian")
byue=request.QueryString("byue")
bri=request.QueryString("bri")
dingdan=trim(request.QueryString("dingdan"))
shangid=request.QueryString("shangid")
zhuangtai=request.QueryString("zhuangtai") 
youhui=request.QueryString("youhui")

aycailiushui=request.QueryString("aycailiushui")
aycaiwuptjy=request.QueryString("aycaiwuptjy")


aycaiwuleibie=request.QueryString("aycaiwuleibie")
if aycaiwuleibie<>"99" then
link=link&"&aycaiwuleibie="&aycaiwuleibie
sqldd=sqldd&" and aycaiwuleibie='"&aycaiwuleibie&"'"
end if

if anian<>0 and ayue<>0 and ari<>0 then
	response.Cookies("dateaa")=anian&"-"&ayue&"-"&ari
	if bnian<>0 and byue<>0 and bri<>0 then
	response.Cookies("datebb")=bnian&"-"&byue&"-"&bri
	if DateDiff("d",request.Cookies("dateaa"),request.Cookies("datebb"))<0 then call PopErr("时间输入有误")
	end if
else
response.Cookies("dateaa")=""
response.Cookies("datebb")=""
end if

if dingdan<>"" then
response.Cookies("dingdan")=dingdan
else
response.Cookies("dingdan")=""
end if

if aycailiushui<>"" then
response.Cookies("aycailiushui")=aycailiushui
else
response.Cookies("aycailiushui")=""
end if

if aycaiwuptjy<>"" then
response.Cookies("aycaiwuptjy")=aycaiwuptjy
else
response.Cookies("aycaiwuptjy")=""
end if
'if shangid<>"0" then
'response.Cookies("shangid")=shangid
'else
'response.Cookies("shangid")=""
'end if

if zhuangtai<>"99" then
response.Cookies("zhuangtai")=zhuangtai
else
response.Cookies("zhuangtai")=""
end if

'if youhui<>"" then
'response.Cookies("youhui")=youhui
'else
'response.Cookies("youhui")=""
'end if


end if



if request.Cookies("dateaa")<>"" and request.Cookies("datebb")<>"" then 
sqldd=sqldd&" and  datediff(day,aycaiwudate,'"&request.Cookies("dateaa")&"')<=0 and datediff(day,aycaiwudate,'"&request.Cookies("datebb")&"')>=0"
elseif request.Cookies("dateaa")<>"" then
sqldd=sqldd&" and  datediff(day,aycaiwudate,'"&request.Cookies("dateaa")&"')<=0 and datediff(day,aycaiwudate,'"&now()&"')>=0"
end if
if request.Cookies("dingdan")<>"" then sqldd=sqldd&" and aycaiwudingdan='"&request.Cookies("dingdan")&"'"
'if request.Cookies("shangid")<>"" then sqldd=sqldd&" and ayddshangid='"&request.Cookies("shangid")&"'"
if request.Cookies("zhuangtai")<>"" then sqldd=sqldd&" and aycaiwuzt="&request.Cookies("zhuangtai")&""

if request.Cookies("aycailiushui")<>"" then sqldd=sqldd&" and aycailiushui='"&request.Cookies("aycailiushui")&"'"

if request.Cookies("aycaiwuptjy")<>"" then sqldd=sqldd&" and aycaiwuptjy='"&request.Cookies("aycaiwuptjy")&"'"

'if request.Cookies("youhui")=1 then sqldd=sqldd&" and ayddyouhuiquanzhi<>''"
'if request.Cookies("youhui")=2 then sqldd=sqldd&" and ayddyouhuiquanzhi is null"

if uid<>"" then  sqldd=sqldd&" and aycaiwuuser="&uid&""
%>
<DIV class=right_titleadmin>&nbsp;&nbsp;财务记录-财务库选择
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu">[aycaiwu]</a> 
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu01">[aycaiwu01]</a> 
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu02">[aycaiwu02]</a> 
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu03">[aycaiwu03]</a> 
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu04">[aycaiwu04]</a> 
<a style="color:#090" href="admincaiwu.asp?cwku=aycaiwu05">[aycaiwu05]</a></DIV>
<DIV class=main>

<form action="?act=cha" method="get" name="chaxun" id="chaxun">
&nbsp;交易时间：
<select name="anian" id="anian">
  <option value="0" selected>年</option>
  <option value="0" >不限</option>
  <option value="2015" 
  <%if request.Cookies("dateaa")<>"" then
  if year(request.Cookies("dateaa"))="2015" then response.Write("selected")
  end if
  %>>2015</option>
  <option value="2014" 
  <%if request.Cookies("dateaa")<>"" then
  if year(request.Cookies("dateaa"))="2014" then response.Write("selected")
  end if
  %>>2014</option>
  <option value="2013" 
  <%if request.Cookies("dateaa")<>"" then
  if year(request.Cookies("dateaa"))="2013" then response.Write("selected")
  end if
  %>>2013</option>
</select>
<select name="ayue" id="ayue">
  <option value="0" selected>月</option>
  <option value="0" >不限</option>
  <%for i=1 to 12%>
  <option value="<%=i%>" 
  <%if request.Cookies("dateaa")<>"" then
  if Month(request.Cookies("dateaa"))=i then response.Write("selected")
  end if
  %>><%=i%></option>
  <%next%>
</select>
<select name="ari" id="ari">
  <option value="0" selected>日</option>
  <option value="0" >不限</option>
  <%for i=1 to 31%>
  <option value="<%=i%>" 
  <%if request.Cookies("dateaa")<>"" then 
  if day(request.Cookies("dateaa"))=i then response.Write("selected")
  end if
  %>><%=i%></option>
  <%next%>
</select>
至
<select name="bnian" id="bnian">
  <option value="0" selected>年</option>
  <option value="0" >不限</option>
  <option value="2015" 
  <%if request.Cookies("datebb")<>"" then
  if year(request.Cookies("datebb"))="2015" then response.Write("selected")
  end if
  %>>2015</option>
  <option value="2014" 
  <%if request.Cookies("datebb")<>"" then
  if year(request.Cookies("datebb"))="2014" then response.Write("selected")
  end if
  %>>2014</option>
  <option value="2013" 
  <%if request.Cookies("datebb")<>"" then
  if year(request.Cookies("datebb"))="2013" then response.Write("selected")
  end if
  %>>2013</option>
</select>
<select name="byue" id="byue">
  <option value="0" selected>月</option>
  <option value="0" >不限</option>
  <%for i=1 to 12%>
  <option value="<%=i%>" 
  <%if request.Cookies("datebb")<>"" then
  if Month(request.Cookies("datebb"))=i then response.Write("selected")
  end if
  %>><%=i%></option>
  <%next%>
</select>
<select name="bri" id="bri">
  <option value="0" selected>日</option>
  <option value="0" >不限</option>
  <%for i=1 to 31%>
  <option value="<%=i%>" 
  <%if request.Cookies("datebb")<>"" then 
  if day(request.Cookies("datebb"))=i then response.Write("selected")
  end if
  %>><%=i%></option>
  <%next%>
</select>
<br><br>
订单号：
<input name="dingdan" type="text" id="dingdan" value="<%if request.Cookies("dingdan")<>"" then response.Write trim(request.Cookies("dingdan"))%>" size="20" maxlength="20">
财务流水号：
<input name="aycailiushui" type="text" id="aycailiushui" value="<%if request.Cookies("aycailiushui")<>"" then response.Write trim(request.Cookies("aycailiushui"))%>" size="20">
上级交易号：
<input name="aycaiwuptjy" type="text" id="aycaiwuptjy" value="<%if request.Cookies("aycaiwuptjy")<>"" then response.Write trim(request.Cookies("aycaiwuptjy"))%>" size="20">
<select name="zhuangtai" id="zhuangtai">
  <option value="99">交易状态</option>
  <option value="99">不限</option>
  <option value="0" 
  <%
    if request.Cookies("zhuangtai")<>"" then
	if cint(request.Cookies("zhuangtai"))=0 then response.Write("selected")
	end if
  %>
  >未处理</option>
  <option value="1"
    <%
    if request.Cookies("zhuangtai")<>"" then
	if cint(request.Cookies("zhuangtai"))=1 then response.Write("selected")
	end if
  %>>交易成功</option>
  <option value="2"
    <%
    if request.Cookies("zhuangtai")<>"" then
	if cint(request.Cookies("zhuangtai"))=2 then response.Write("selected")
	end if
  %>>交易失败</option>
</select>
&nbsp;
<input name="act" type="hidden" id="act" value="cha">
<input name="cwku" type="hidden" id="cwku" value="<%=admincwku%>">
<input name="uid" type="hidden" id="uid" value="<%=uid%>">
<select name="aycaiwuleibie" id="aycaiwuleibie">
  <option value="99">交易类别</option>
  <option value="99">不限</option>
  <option value="0" <%if aycaiwuleibie=0 then response.Write("selected")%>>入款</option>
  <option value="1" <%if aycaiwuleibie=1 then response.Write("selected")%>>结算/提现</option>
  <option value="2" <%if aycaiwuleibie=2 then response.Write("selected")%>>支出</option>
  <option value="3" <%if aycaiwuleibie=3 then response.Write("selected")%>>充值</option>
  <option value="4" <%if aycaiwuleibie=4 then response.Write("selected")%>>买家返款</option>
  <option value="5" <%if aycaiwuleibie=5 then response.Write("selected")%>>消费</option>
  <option value="6" <%if aycaiwuleibie=6 then response.Write("selected")%>>开通追加消保(消费)</option>
  <option value="7" <%if aycaiwuleibie=7 then response.Write("selected")%>>解冻消保(入款)</option>
  <option value="8" <%if aycaiwuleibie=8 then response.Write("selected")%>>引荐返点</option>
  <option value="9" <%if aycaiwuleibie=9 then response.Write("selected")%>>自助提现</option>
  <option value="10" <%if aycaiwuleibie=10 then response.Write("selected")%>>点卡余额入款</option>
  <option value="11" <%if aycaiwuleibie=11 then response.Write("selected")%>>冻结</option>
  <option value="14" <%if aycaiwuleibie=14 then response.Write("selected")%>>秒结算手续费</option>
  <option value="15" <%if aycaiwuleibie=15 then response.Write("selected")%>>加急手续费</option>
  <option value="16" <%if aycaiwuleibie=16 then response.Write("selected")%>>自动结算手续费</option>
  <option value="17" <%if aycaiwuleibie=17 then response.Write("selected")%>>收款</option>
  <option value="18" <%if aycaiwuleibie=18 then response.Write("selected")%>>代理入款</option>
</select>
&nbsp;
<input type="submit" name="Submit" value=" 财 务 查 询 ">
<br>
&nbsp;
</form>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
     <form action="" method="post" name="myform" id="myform"> 
       <tr>
         <th align="center" class="border_right border_bottom" >
         <th align="center" class="border_right border_bottom" >财务ID         
         <th align="center" class="border_right border_bottom" >订单号
         <th align="center" class="border_right border_bottom" >付款交易号
         <th align="center" class="border_right border_bottom" >财务流水号         
         <th align="center" class="border_right border_bottom" >会员     
        <th align="center" class="border_right border_bottom">金额
        <th align="center" class="border_right border_bottom">余额        
        <th align="center" class="border_right border_bottom">类别
        <th align="center" class="border_right border_bottom">描述        
        <th align="center" class="border_right border_bottom">时间                       
        <th align="center" class="border_right border_bottom"><span title="当锁定时将需要商户提供相关资金证明截图">风险锁</span>         
        <th align="center" class="border_bottom">删       </tr>
<%


if aact="all" then

sql="select aycwissuo,aycaiwuid,aycaiwuzt,aycailiushui,aycaiwuleibie,aycaiwujine,aycaiwuyue,aycaiwuuser,aycaiwudingdan,aycaiwudate,aycaiwuptjy,aycaiwulastjin,aycaiwutxcl,aycaiwubody,isalipayfz,ayshouname from "&admincwku&" where aycaiwuid<>0"&sqldd&" order by aycaiwuid desc" 

else

sql="select top 200 aycwissuo,aycaiwuid,aycaiwuzt,aycailiushui,aycaiwuleibie,aycaiwujine,aycaiwuyue,aycaiwuuser,aycaiwudingdan,aycaiwudate,aycaiwuptjy,aycaiwulastjin,aycaiwutxcl,aycaiwubody,isalipayfz,ayshouname from "&admincwku&" where aycaiwuid<>0"&sqldd&" order by aycaiwuid desc" 

end if

rs.open sql,conn,1,1
rs.pagesize=50
pagecount=rs.pagecount 
if request("page")="" then 
page=1
else
page=int(request("page")) 
end if
if page<=0 then page=1 
if request("page")="" then page=1
if not(rs.bof and rs.eof) then
rs.absolutepage=page
do while not rs.eof%>

	  <tr onmouseover=this.bgColor='#D2FFFF' onmouseout=this.bgColor='#ffffff'>
        <td align="center" class="border_right border_bottom"> 
          <input name="list1" type="checkbox" id="list1" value="<%=rs("aycaiwuid")%>" onClick="unselectall1()"></td>
        <td align="center" class="border_right border_bottom"><a href="adminmycaiwuc.asp?cid=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>"><%=rs("aycaiwuid")%></a></td>
        <td align="center" class="border_right border_bottom">
		<%if trim(rs("aycaiwudingdan"))<>"" then%>
          <a href="adminmycaiwuc.asp?id=<%=trim(rs("aycaiwudingdan"))%>&cwku=<%=admincwku%>"><%=rs("aycaiwudingdan")%></a>
          <%else
		response.Write("-")
		end if%></td>
        <td align="center" class="border_right border_bottom">
		<%if trim(rs("aycaiwuptjy"))<>"" then%>
          <a href="adminmycaiwuc.asp?cid=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>"><%=rs("aycaiwuptjy")%></a>
		  <%if cint(rs("isalipayfz"))=1 then%><span style="color: #FF6600">[分]</span><%end if%>
          <%else
		response.Write("-")
		end if%>				</td>
        <td align="center" class="border_right border_bottom">
		<%if trim(rs("aycailiushui"))<>"" then%>
        <a href="adminmycaiwuc.asp?cid=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>"><%=rs("aycailiushui")%></a>
		<%if cint(rs("isalipayfz"))=1 then%><span style="color: #FF6600">[分]</span><%end if%>
        <%else
		response.Write("-")
		end if%></td>
        <td align="center" class="border_right border_bottom">
		<%
		set rsuser=server.CreateObject("adodb.recordset")
		sqluser="select aynameid,ayusername from ayname where aynameid="&rs("aycaiwuuser")&"" 
		rsuser.open sqluser,conn,1,1
		if not(rsuser.bof and rsuser.eof) then
		%>
		<a href="adminuseredit.asp?id=<%=rs("aycaiwuuser")%>" target="_blank"><%=trim(rsuser("ayusername"))%></a>
		<%
		else
			if cint(rs("aycaiwuleibie"))=10 or cint(rs("aycaiwuleibie"))=13 or cint(rs("aycaiwuleibie"))=14 or cint(rs("aycaiwuleibie"))=15 or cint(rs("aycaiwuleibie"))=16 then
			response.Write "000"
			else
			response.Write "会员或已删除"
			end if
		end if
		rsuser.close%>		</td>
        <td align="center" class="border_right border_bottom" style="color: #FF0000; font-weight: bold"><%
		if trim(rs("aycaiwujine"))<>"" then
		response.Write Formatnumber(rs("aycaiwujine"),3,true,-1,0)&"元"
		else
		response.Write ("-")
		end if
		%></td>
        <td align="center" class="border_right border_bottom">
          <%
		if trim(rs("aycaiwuyue"))<>"" then
		response.Write Formatnumber(rs("aycaiwuyue"),3,true,-1,0)&"元"
		else
		response.Write ("-")
		end if
		%>        </td>
        <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"))=4 then response.Write("返款")
		if cint(rs("aycaiwuleibie"))=5 then response.Write("消费")
		if cint(rs("aycaiwuleibie"))=6 then response.Write("开通/追加消保")
		if cint(rs("aycaiwuleibie"))=7 then response.Write("解冻消保金") 
		if cint(rs("aycaiwuleibie"))=8 then response.Write("引荐返点")
		if cint(rs("aycaiwuleibie"))=9 then response.Write("自助提现")
		if cint(rs("aycaiwuleibie"))=10 then response.Write("点卡余额")
		if cint(rs("aycaiwuleibie"))=11 then response.Write("冻结")
		if cint(rs("aycaiwuleibie"))=12 then response.Write("寄卖预支")
		if cint(rs("aycaiwuleibie"))=13 then response.Write("寄卖支出")
		if cint(rs("aycaiwuleibie"))=14 then response.Write("秒结费")
		if cint(rs("aycaiwuleibie"))=15 then response.Write("加急费")
		if cint(rs("aycaiwuleibie"))=16 then response.Write("自动结费")
		if cint(rs("aycaiwuleibie"))=17 then response.Write("收款")
        if cint(rs("aycaiwuleibie"))=18 then response.Write("代理入款")
		'response.Write "-"&rs("aycaiwuleibie")
		%></td>
        <td align="center" class="border_right border_bottom">
		<%
		if 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
		end if
		
		if rs("aycaiwuleibie")="3" then
		if rs("aycaiwuzt")="1" then
		response.Write "<font color=#00CC00>成功</font>"
		elseif rs("aycaiwuzt")="2" then
		response.Write "<font color=red>失败</font>"
		elseif rs("aycaiwuzt")="0" then
		response.Write "未处理"
		end if
		end if
		
		
		if trim(rs("aycaiwubody"))<>"" then
			if left(trim(rs("aycaiwubody")),2)="收款" then 
			if cint(rs("aycaiwuzt"))=0 then response.Write "未处理("&trim(rs("ayshouname"))&")"
			if cint(rs("aycaiwuzt"))=1 then response.Write "<font color=#00FF00>成功</font>("&trim(rs("ayshouname"))&")"
			if cint(rs("aycaiwuzt"))=2 then response.Write "<font color=#FF0000>失败</font>("&trim(rs("ayshouname"))&")"
			end if
		 end if
		
		
		if trim(rs("aycaiwubody"))<>"" then
		response.Write trim(rs("aycaiwubody"))

		else
		response.Write"&nbsp;"
		end if
		%></td>
        <td align="center" class="border_right border_bottom"><%=rs("aycaiwudate")%></td>
	    <td align="center" class="border_right border_bottom">
		<%
		if cint(rs("aycwissuo"))=0 then %>
		<a style="cursor:pointer;"  title="未锁定，点击锁定" href="?act=fsuoding&id=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>" >-</a>
		<%else%>
		<a style="cursor:pointer;color:#FF0000 "  title="已锁定，需提供资金证明截图，点击改为解锁" href="?act=fjiesuo&id=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>" >√</a>
		<%end if%>
		</td>
	    <td align="center" class="border_bottom">
        <a href="?act=delche&id=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>&jin=<%=rs("aycaiwujine")%>&uid=<%=rs("aycaiwuuser")%>" onClick="javascript:return confirm('您确定要彻底删除吗？');">[彻删]</a>
		<a href="?act=del&id=<%=rs("aycaiwuid")%>&cwku=<%=admincwku%>" onClick="javascript:return confirm('您确定要删除吗？');"><img src="<%=ossurl%>images/ico_del.gif" alt="删除分类" border="0"></a></td>
	  </tr>
<%
n=n+1
rs.movenext  '指针向下移动
if n>=rs.pagesize then exit do  
loop
end if
zongshu=rs.RecordCount
rs.close%>
	  

      <tr>
        <td colspan="13">&nbsp;<input name="chkAll1" type="checkbox" id="chkAll1" onClick="this.value=check1(this.form.list1)" value="checkbox">全选<input type="submit" name="Submit2" value="删除选定" onClick="return ddel();">&nbsp;<input name="isdel" type="hidden" id="isdel" value=""><input name="cwku" type="hidden" id="cwku" value="<%=admincwku%>">
          <%if pagecount=0 then   
response.write("首页 ")
elseif page=1 then       
response.write("首页 ")
else%>                   
<a href="<%=link%>&page=1">首页</a>
<%end if

if pagecount=0 then   
response.write("上页&nbsp;")
elseif page=1 then       
response.write("上页&nbsp;")
else%>                   
<a href="<%=link%>&page=<%=page-1%>">上页</a>&nbsp;
<%end if

if pagecount>20 then
if page<=10 then 
aa=1
bb=20
aabu=""
bbbu=" … "
elseif page>=11 then 
aa=page-9
bb=page+10
aabu=" …"
bbbu=" … "
	if bb>=pagecount then 
	aa=pagecount-20
	bb=pagecount
	aabu=" … "
	bbbu=""
	end if
end if
response.Write aabu
for aa=aa to bb
if page=aa then
response.Write("<a href="&link&"&page="&aa&"><strong>"&aa&"</strong></a>&nbsp;")
else
response.Write("<a href="&link&"&page="&aa&">"&aa&"</a>&nbsp;")
end if
next
response.Write bbbu

else

for i=1 to pagecount
if page=i then
response.Write("<a href="&link&"&page="&i&"><strong>"&i&"</a></strong>&nbsp;")
else
response.Write("<a href="&link&"&page="&i&">"&i&"</a>&nbsp;")
end if
next

end if

if pagecount=0 then 
response.write("下页&nbsp;")
elseif page=pagecount then 
response.write("下页&nbsp;")
else%>                    
<a href="<%=link%>&page=<%=page+1%>">下页</a>
<%end if%>
<%if pagecount=0 then  '总页数为0 显示空
response.write("尾页 ") 
elseif page=pagecount then 
response.write("尾页 ")
else%>                    
<a href="<%=link%>&page=<%=pagecount %>">尾页</a>
<%end if

if pagecount<>0 then 
response.Write page&"/"&pagecount
end if
response.Write "&nbsp;共"&zongshu&"条"
%>		<a href="<%=link%>&aact=all">查看全部</a></td>
      </tr></form>
    </table>
</DIV>


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

