<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<link href="inc_style.css" rel="stylesheet" type="text/css">
<body topmargin="0" leftmargin="0">
<script>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</script>
<SCRIPT language=JavaScript>
function showoperatealert(id)
{
		if (id==1)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="admin_link_modify.asp?jle=yz";
			thisForm.submit();
		}
		}
		if (id==2)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="admin_link_modify.asp?jle=del";
			thisForm.submit();
		}
		}
}

function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall' )
       e.checked = form.chkall.checked;
    }
  }
//-->
    </SCRIPT>
<div align="center">
<table width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#c5cfe0" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
        <tr align="center" bgcolor="#FFFFFF" height="20"> 
<td align="center" height="29"  class="tdbar" colspan="6">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="25">
<tr>
<td width="864" height="24">
<p align="center"><a href="?jle=1">未(<font color="#FF0000">ⅹ</font>)验证链接</a>---<a href="?jle=2">已(√)验证的链接</a>---<a href="?jle="><font color="#FF0000">显示全部链接</font></a></td>
</tr>
</table>
</td>
</tr>
<FORM name=thisForm action="" method=POST>
<%
dim rs,sql,k,jle
dim ThisPage,Pagesize,Allrecord,Allpage
k=1
set rs = Server.CreateObject("ADODB.RecordSet")
jle=trim(request("jle"))
Select Case jle
Case "1"
sql="select * from [link] where yanz<>1 order by jrsj desc" 
Case "2"
sql="select * from [link] where yanz=1 order by jrsj desc"
Case Else
sql="select * from [link] order by jrsj desc" 
End Select
rs.open sql,conn,1,1
if rs.eof then
response.write "还没有任何链接记录！"
response.end
end if
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
rs.Pagesize=15
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then                           
ThisPage=1
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
%>
<tr>
<td height="24" align="center" bgcolor="#FEEEBC" class="tdbar">选择</td>
<td height="24" bgcolor="#FEEEBC" class="tdbar">
网站名称</td>
<td height="24" bgcolor="#FEEEBC" class="tdbar">
<p align="center">网站地址</td>
<td height="24" bgcolor="#FEEEBC" class="tdbar">
<p align="center">LOGO图片</td>
<td height="24" bgcolor="#FEEEBC" class="tdbar">
<p align="center">验证</td>
<td height="24" bgcolor="#FEEEBC" class="tdbar">　</td>
</tr>
<%
dim uid
do while not rs.eof
uid=rs("id")
%>

<TR bgcolor="#e4edf9" onMouseOver="this.bgColor='#dedede'" onMouseOut="this.bgColor='#e4edf9'" style="CURSOR:default"> 
<td align="center" style="border-top-style: solid; border-top-width: 1">
<INPUT type=checkbox value="<%=uid%>" name=selectedid></td>
<td style="border-top-style: solid; border-top-width: 1"><a target="_blank" href=<%=rs("url")%>><%=rs("web")%></a></td>
<td align="center" style="border-top-style: solid; border-top-width: 1"><a target="_blank" href=<%=rs("url")%>><%=rs("url")%></td>
<td align="center" style="border-top-style: solid; border-top-width: 1"><%if rs("logo")<>"" and rs("logo")<>"http://" then%><IMG src="<%=rs("logo")%>" width="88" height="31"><%else%>没有LOGO图片<%end if%></td>
<td align="center" style="border-top-style: solid; border-top-width: 1"><%if rs("yanz")=1 then%>√<%else%><b><font color="#FF0000">ⅹ</font></b><%end if%></td>
<td style="border-top-style: solid; border-top-width: 1">
<p align="center"><%if rs("yanz")=0 then%><a href="admin_link_modify.asp?selectedid=<%=uid%>&jle=yz">通过验证</a><%end if%>&nbsp; <a href="#" ONCLICK="window.open('admin_link_modify.asp?selectedid=<%=uid%>&jle=edit','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=300,left=100,top=100')">修改</a> | <a href="admin_link_modify.asp?selectedid=<%=uid%>&jle=del">删除该链接</a></td>
</tr>
<%
k=k+1
rs.movenext
if k>=Pagesize then exit do
loop
rs.close
set rs=nothing
closedb
%>
<tr>
<td width="100%" height="35" colspan="6" style="border-top-style: solid; border-top-width: 1">
<p align="center">
　<INPUT onclick=CheckAll(this.form) type=checkbox value=on name=chkall>选中所有 <input onclick=javascript:showoperatealert(1) type="submit" value="验证" name="B1">&nbsp;&nbsp; 
<input onclick=javascript:showoperatealert(2) type="submit" value="删除" name="B2">
</td>
</tr>
  
</form>

</table><br>
<table width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#c5cfe0" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
        <tr align="center" bgcolor="#FFFFFF" height="20"> 
<td align="center" height="29"  class="tdbar">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
<td width="126" align="center">
共 <font color="#CC5200"><%=Allpage%></font> 页</td>
<td width="220" align="center">
现在是第 
<font color="#CC5200"><%=ThisPage%></font> 页</td>
<td width="242" align="center">
<%
if ThisPage<2 then     
response.write "<font color=""#808080"">首页</font>&nbsp;"
response.write "<font color=""#808080"">上一页</font>&nbsp;"     
else     
response.write "<a href=?page=1&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&jle="&jle&">首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&jle="&jle&">上一页</a>&nbsp;"     
end if
if Allpage-ThisPage<1 then     
response.write "<font color=""#808080"">下一页</font>&nbsp;"
response.write "<font color=""#808080"">尾页</font>&nbsp;"  
else     
response.write "<a href=?page="&(ThisPage+1)&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&jle="&jle&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&jle="&jle&">尾页</a>&nbsp;"     
end if
%></td>
</tr>

</table>
</div>