<!--#include file="Head.asp"-->

<!--#include file="Config.asp"-->
<!--#include file="admin.asp"-->
<%call saycardd("友链审核")
dim Rs,Sql
set Rs=Server.CreateObject("ADODB.Recordset")
Sql="select * from [link] Where Active=1 order by [YD_time] desc"
rs.open Sql,conn,1,1
If Not rs.eof	Then
Dim PageSize,i
	PageSize=10							
	Dim Count,page,pagecount,gopage	
	gopage="Admin_link.asp?sid="&sid&"&amp;id="&idd&"&amp;saytk="&saytk&"&amp;"
	Count=conn.execute("Select count(ID) from [link] Where Active=1")(0)
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize
        if page>pagecount then page=pagecount	
	rs.move(pagesize*(page-1))
        Response.write ""&now()&"<br/>"
        response.write ("共"&count&"条友链没有审核<br/>")				
	For i=1 To PageSize       						
	If rs.eof Then Exit For	
        Response.write ""&i+(page-1)*PageSize&"."
        Response.write "<a href=""Showlink.asp?sid="&sid&"&amp;class="&rs("classid")&"&amp;id="&rs("id")&"&amp;saytk="&saytk&""">"&usb(rs("name"))&"</a>(出"&rs("YD_out")&"/入"&rs("YD_in")&")<br/>"
Response.write "<a href='"&rs("URL")&"'>查看</a>|"
Response.write "<a href='Link_pass.asp?sid="&sid&"&amp;act=1&amp;id="&rs("id")&"&amp;saytk="&saytk&"'>通过</a>|"
Response.write "<a href='Edit_link.asp?sid="&sid&"&amp;class="&rs("classid")&"&amp;id="&rs("id")&"&amp;saytk="&saytk&"'>编辑</a>|"
Response.write "<a href='DEL_link.asp?sid="&sid&"&amp;class="&rs("classid")&"&amp;id="&rs("id")&"&amp;saytk="&saytk&"'>删除</a>"
Response.write "<br/>-------------<br/>"

	rs.moveNext 								
	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页"
if saytk=1 then
response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">[GO]</a><br/>"
end if
Else
Response.write ("暂时没有待审友链！<br/>")
end if%>
<a href="Link_pass.asp?sid=<%=sid%>&amp;act=2&amp;saytk=<%=saytk%>">全部通过审核</a><br/>
<a href="Link_class.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[分类管理]</a><br/>
<a href='Admin_index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>[友链后台]</a><br/>
<a href="../index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a>

<%call headsay()
call ALLClose()%>
