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



<title><%=webname%>-最高权限-错误查看</title>
<%
response.End()
call logquanxian("g1",1)
%>

<DIV>


<%

act=SafeRequest("act")
page=SafeRequest("page")
id=SafeRequest("id")
link="adminjd.asp?ct=&act="&act



if act="del" then
call lognamecode()
sql="select * from ayjd where ayjdid="&id&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs.delete  
end if
rs.close
response.Redirect "adminjd.asp?page="&page
end if

if act="ok" then
call lognamecode()
sql="select * from ayjd where ayjdid="&id&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs("ayjdjg")=1
rs.update
end if
rs.close
response.Redirect "adminjd.asp?page="&page
end if

if act="no" then
call lognamecode()
sql="select * from ayjd where ayjdid="&id&"" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then
rs("ayjdjg")=2
rs.update
end if
rs.close
response.Redirect "adminjd.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><br>
  <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">截图1
        <th align="center" class="border_right border_bottom">截图2        
        <th align="center" class="border_right border_bottom">
        状态        
        <th align="center" class="border_bottom border_right">时间                
        <th align="center" class="border_bottom border_right">操作               
       </tr>
<%
set rsu=server.CreateObject("adodb.recordset")

sql="select * from ayjd order by ayjdid desc" 
rs.open sql,conn,1,1
rs.pagesize=100
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("ayjdid")%>		</td>
        <td align="center" class="border_right border_bottom"><%=rs("ayjduid")%>
		<%
		sqlu="select aytrueuser,aynameid from ayname where aynameid="&trim(rs("ayjduid"))&""
		rsu.open sqlu,conn,1,1 
		response.Write "("&trim(rsu("aytrueuser"))&")"
		rsu.close
		%>		</td>
        <td align="center" class="border_right border_bottom">
		<%if cint(rs("ayjdfs"))=0 then response.Write "订单记录"%>	
		<%if cint(rs("ayjdfs"))=1 then response.Write "财务记录"%>		</td>
        <td align="center" class="border_right border_bottom"><%=rs("ayjddd")%></td>
        <td align="center" class="border_right border_bottom"><a href="<%=trim(rs("ayjdpic1"))%>" target="_blank">查看</a></td>
        <td align="center" class="border_right border_bottom"><a href="<%=trim(rs("ayjdpic2"))%>" target="_blank">查看</a></td>
        <td align="center" class="border_right border_bottom">
		<%
		if cint(rs("ayjdjg"))=0 then response.Write "处理中"
		if cint(rs("ayjdjg"))=1 then response.Write "解冻成功"
		if cint(rs("ayjdjg"))=2 then response.Write "解冻失败"
		%>	</td>
        <td align="center" class="border_bottom border_right"><%=rs("ayjddate")%></td>
	    <td align="center" class="border_bottom border_right">
		<a href="?act=ok&id=<%=rs("ayjdid")%>">解冻成功</a> <a href="?act=no&id=<%=rs("ayjdid")%>">解冻失败</a> <a href="?act=del&id=<%=rs("ayjdid")%>">删除</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="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&"条"
%>		<a href="?act=del">删除全部</a> </td>
      </tr></form>
    </table>
</DIV>


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



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

