<!--#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("e6",1)
%>

<DIV>

<%

act=SafeRequest("act")
cact=SafeRequest("cact")
page=SafeRequest("page")
if SafeRequest("uid")<>"" then uid=SafeRequest("uid")
link="adminjiesuanjlxx.asp?ct=&uid="&uid

if cact="cha" then
link="adminjiesuanjlxx.asp?cact=cha"

if SafeRequestform("shangid")<>""then
shangid=SafeRequestform("shangid")
elseif SafeRequest("shangid")<>""then
shangid=SafeRequest("shangid")
end if
'if shangid=0 and request.Cookies("shangid")="" then call PopErr("请选择商品名称")
'if shangid=0 then response.Cookies("shangid")=""
if shangid<>0 then
response.Cookies("shangid")=shangid
sql2=" and aykagoodid='"&shangid&"'"
end if
if request.Cookies("shangid")<>"" then
sql2=" and aykagoodid='"&request.Cookies("shangid")&"'"
end if

end if


if act="del" then
id=SafeRequest("id")
sql="select * from aycaiwu where aycaiwuid="&clng(id)&"" 
rs.open sql,conn,1,3

if not(rs.bof and rs.eof) then
rs.delete
end if
rs.close
call PopErr2("删除成功","adminjiesuanjl.asp?page="&page)
end if




if act="alldel" then
list1=SafeRequestform("list1")
if list1="" then call PopErr("未找到此项目")

	delid=split(list1,",")
	For dianka=0 To Ubound(delid) 
	sql="select * from aycaiwu where aycaiwuid="&trim(delid(dianka))&"" 
	rs.open sql,conn,1,3
	rs.delete
	rs.close
	next
	call PopErr2("删除成功","admincaiwu.asp?page="&page)
			
end if

%>
<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>

<DIV class=right_titleadmin>&nbsp;&nbsp;财务记录管理</DIV>
<DIV class=main>

<form action="?cact=cha" method="post" name="chaxun" id="chaxun">
&nbsp;商品分类：
&nbsp;
<input type="submit" name="Submit" value=" 查 询 ">
<br><br>
</form>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
     <form action="?act=alldel&page=<%=page%>" method="post" name="myform" id="myform"> 
       <tr>
        <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_bottom border_right">银行名称               
        <th align="center" class="border_bottom border_right">联系电话       
        <th align="center" class="border_bottom">时间               </tr>
<%

sql="select * from ayjslist where ayjsname='"&trim(uid)&"' order by ayjsid desc" 
rs.open sql,conn,1,1
rs.pagesize=30
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">
		<%=rs("ayjsid")%>
				</td>
        <td align="center" class="border_right border_bottom">
		<%=rs("ayjsname")%>	</td>
        <td align="center" class="border_right border_bottom">
		<%=rs("ayjsjin")%>		</td>
        <td align="center" class="border_right border_bottom">
		<%=rs("ayjstruename")%></td>
        <td align="center" class="border_right border_bottom"><%
		
		if cint(rs("ayjsfs"))=1 then response.Write("支付宝")
		if cint(rs("ayjsfs"))=2 then response.Write("财付通")
		if cint(rs("ayjsfs"))=3 then response.Write("银行")
	
		%></td>
        <td align="center" class="border_right border_bottom"><%=rs("ayjssid")%></td>
        <td align="center" class="border_bottom border_right"><%=rs("ayjsbank")%></td>
	    <td align="center" class="border_bottom border_right"><%=rs("ayjstel")%></td>
	    <td align="center" class="border_bottom"><%=rs("ayjsdate")%></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="9">&nbsp; 

<%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&"条"
%>		</td>
      </tr></form>
    </table>
</DIV>


</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>



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

