<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc_style.css" rel="stylesheet" type="text/css">
<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_information_recommended.asp?jle=yz";
			thisForm.submit();
		}
		}
		if (id==2)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="admin_information_del.asp";
			thisForm.submit();
		}
		}
		if (id==3)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="admin_information_recommended.asp";
			thisForm.submit();
		}
		}
		if (id==4)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="admin_information_recommended.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>
<body topmargin="0" leftmargin="0">
<div class="kon"></div>
<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 > 
<td  colspan="3">
<%
set rs_n=conn.execute("select count(id) from jle_info")
set rs_n1=conn.execute("select count(id) from jle_info where DATEDIFF('d',fbsj,now())=1 ")
set rs_n2=conn.execute("select count(id) from jle_info where DATEDIFF('d',fbsj,now())<=0 ")
set rs_n3=conn.execute("select sum(llcs) from jle_info where llcs>0 ")
Response.Write"<tr align=center bgcolor=#FFFFFF height=20><td colspan=3 align=center height=29 bgcolor=#EAEEF4> &nbsp;共有<b>"&rs_n(0)&"</b>条信息  昨日发布：<b>"&rs_n1(0)&"</b>  今日发布：<b>"&rs_n2(0)&"</b>   信息总浏览量：<b>"&rs_n3(0)&"</b></td></tr>"
set rs_n=nothing
set rs_n1=nothing
set rs_n2=nothing
set rs_n3=nothing
%>
<tr>
<td width="322"  class="tdbar">
<FORM name=sou1 action="?jle=1" method=POST style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<p align="center">按帐号：<input type="text" name="T1" size="10">
<input type="submit" value="搜索" name="B1">
</form>
</td>
<td width="353"  class="tdbar">
<FORM name=sou2 action="?jle=2" method=POST style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<p align="center">按姓名：<input type="text" name="T2" size="10">
<input type="submit" value="搜索" name="B1">
</form>
</td>
<td width="628"  class="tdbar">
<FORM name=sou3 action="?jle=3" method=POST style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<p align="center">按关键词：<input type="text" name="T3" size="10">
<input type="submit" value="搜索" name="B1">
</form>
</td>
 </tr>
<tr>
<td colspan="3" height="28">
<p align="center"><a href="?jle=4">【未(<font color="#FF0000">ⅹ</font>)验证信息】</a>---<a href="?jle=5">【已(√)验证的信息】</a>---<a href="?jle=6">【未推荐信息】</a>---<a href="?jle=7">【推荐信息】</a>---
<a href="?jle=8">【置顶信息】</a>---<a href="?jle=9">【贴贴墙】</a>---<a href="?jle="><font color="#FF0000">【显示全部信息】</font></a></td>
</tr>
</table>
<div class="kon"></div>
<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"  class="tdbar">
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#c5cfe0" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">

<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 [jle_info] where username='"&trim(request("T1"))&"' order by b desc" 
Case "2"
sql="select * from [jle_info] where name like '%"&trim(request("T2"))&"%' order by b desc" 
Case "3"
sql="select * from [jle_info] where biaoti like '%"&trim(request("T3"))&"%' or memo like '%"&trim(request("T3"))&"%' order by b desc" 
Case "4"
sql="select * from [jle_info] where yz<>1 order by fbsj desc" 
Case "5"
sql="select * from [jle_info] where yz=1 order by fbsj desc"
Case "6"
sql="select * from [jle_info] where tuijian<>1 order by fbsj desc" 
Case "7"
sql="select * from [jle_info] where tuijian=1 order by fbsj desc"
Case "8"
sql="select * from [jle_info] where b=1 order by fbsj desc"
Case "9"
sql="select * from [jle_info] where sj=1 order by fbsj desc"
Case Else
sql="select * from [jle_info] order by fbsj desc" 
End Select
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>没有记录"
response.end
end if
k=0
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
rs.Pagesize=30
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 align="center" bgcolor="#FFFFFF" height="20"> 
<td bgcolor="#FEEEBC" class="tdbar" align="center">选择</td>
<td bgcolor="#FEEEBC" class="tdbar" align="center">标题</td>
<td bgcolor="#FEEEBC" class="tdbar" align="center">
<p align="center">姓名</td>
<td bgcolor="#FEEEBC" class="tdbar" align="center">
<p align="center">日期</td>
<td bgcolor="#FEEEBC" class="tdbar" align="center">
置顶(设置)</td>
<td bgcolor="#FEEEBC" class="tdbar" align="center">
<p align="center">验证</td>
<td bgcolor="#FEEEBC" align="center" class="tdbar">
操作</td>
</tr>
<%
dim uid
do while not rs.eof
uid=rs("id")
%>
<TR bgcolor="#e4edf9" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#e4edf9'" style="CURSOR:default"> 
<td height="24" align="center">
<INPUT type=checkbox value="<%=uid%>" name=selectedid></td>
<td><%if rs("tupian")<>"0" and  rs("tupian")<>"" then%><font color="#FF0000">[图]</font><%end if%><%if rs("sj")<>"0" then%><font color="#FF0000">[豆]</font><%end if%><a target="_blank" href=/<%=rs("xurl")%>><%=rs("biaoti")%></a><%if rs("tuijian")=1 then%><font color="#FF0000">[荐]</font><%end if%></td>
<td align="center"><%=rs("name")%></td>
<td align="center"><%=rs("fbsj")%></td>
<td align="center"><%if rs("a")=1 then%><a href="admin_information_recommended.asp?selectedid=<%=uid%>&jing=0" title="取消置顶"><font color="#0000FF">置顶</font></a><%else%><a href="admin_information_recommended.asp?selectedid=<%=uid%>&jing=1" title="设为置顶">未置顶</a><%end if%></td>
<td align="center"><%if rs("yz")=1 then%>√<%else%><b><font color="#FF0000">ⅹ</font></b><%end if%></td>
<td width="40">
<p align="center"><font color="#FF0000"><span id="followImg<%=k%>" style="CURSOR: hand" onClick="loadThreadFollow(<%=k%>,5)">
管理</span></font></td>
</tr>
<tr style="display:none" id="follow<%=k%>">
<td height="24" colspan="7" style="border-bottom-style: solid; border-bottom-width: 1" bgcolor="#FFFFC8">
<table border="0" cellpadding="0" width="100%">
<tr>
<td align="center"><a href="admin_information_del.asp?selectedid=<%=uid%>">
<font color="#0000FF">删除该信息</font></a></td>
<td align="center">回复(<%=rs("hfcs")%>)次</td>
<td align="center"><a href="admin_information_edit.asp?id=<%=uid%>">编辑该信息</a></td>
<td width="160" align="center"><a target="_blank" title="查看发布IP" href="http://www.52.la/Sub/IP/ListAddress.asp?ip=<%=rs("ip")%>">
<font color="#FF0000">发布者IP：<%=rs("ip")%></font></a></td>
<td align="center"><%if rs("tuijian")=0 then%><a href="admin_information_recommended.asp?selectedid=<%=uid%>"><font color="#FF0000">推荐</font></a><%else%> <a href="admin_information_recommended.asp?selectedid=<%=uid%>&jle=del">取消推荐</a><%end if%></td>
<td align="center"><%if rs("yz")=0 or  rs("yz")="" then%><a href="admin_information_recommended.asp?selectedid=<%=uid%>&jle=yz">通过验证</a><%end if%></td>
</tr>
</table>
</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="30" colspan="7">
<p align="center">
　<INPUT onclick=CheckAll(this.form) type=checkbox value=on name=chkall>全选<input onclick=javascript:showoperatealert(1) type="submit" value="验证" name="B1"> 
<input onclick=javascript:showoperatealert(2) type="submit" value="删除" name="B2">
<input onclick=javascript:showoperatealert(3) type="submit" value="推荐" name="B3" style="color: #FF0000">
<input onclick=javascript:showoperatealert(4) type="submit" value="取消推荐" name="B4">
</td>
</tr>
</form></table></td></tr></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 bgcolor="#FEEEBC" class="tdbar" align="center">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
<td align="center"   class="tdbar">
共 <font color="#CC5200"><%=Allpage%></font> 页</td>
<td align="center"   class="tdbar">
现在是第 
<font color="#CC5200"><%=ThisPage%></font> 页</td>
<td align="center"   class="tdbar">
<%
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
%>
<!--
快速跳转到第<select name="select" size="1" onChange="location=this.options[this.selectedIndex].value" >
<%dim hang
for hang= 1 to Allpage 
%>
<option value='?page=<%=hang%>&t1=<%=trim(request("t1"))%>&t2=<%=trim(request("t2"))%>&t3=<%=trim(request("t3"))%>&jle=<%=jle%>'<%if hang=ThisPage then%>selected<%end if%>><%=hang%></option>
<%next%>
</select>页
-->
</td>
</tr>
<tr> 
<td height="1" width="595" colspan="4">
<p align="right"></td>
</tr>
</table>
<div class="kon"></div>
</div>