<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim flag
flag=request.cookies("foxwww")("fox")
if flag<6 then
response.Write "<script LANGUAGE='javascript'>alert('你目前的级别不允许此操作！');history.go(-1);</script>"
response.end
end if
%>
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="images/fox.css">
<style type=text/css>
BODY{
	margin:0px;
	FONT-SIZE: 12px;
	FONT-FAMILY: "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	background-color: #CCCC99; 
	scrollbar-highlight-color: #CC9933; 
	scrollbar-arrow-color: #FFFFFF; 
	scrollbar-base-color: #CC9933
}
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#111111; text-decoration:none; }
a:hover { color:#384780;text-decoration:underline; }
.sec_menu { border-left:2px solid #CC3300; border-right:2px solid #CC3300; border-bottom:2px solid #CC3300; overflow:hidden; background:#ffffff; }
.menu_title {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title span { position:relative; top:2px; left:8px; color:#FFFF00; font-weight:bold; }
.menu_title2 {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title2 span { position:relative; top:2px; left:8px; color:#FEFEFE; font-weight:bold; }
input,select,Textarea{
font-family:宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
</style><body 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="xinxi_yz.asp";
			thisForm.submit();
		}
		}
		if (id==2)
        {

		{
		  	thisForm.target='_self';
			thisForm.action="xinxi_del.asp";
			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">
  <center>
<table border="1" cellpadding="0" cellspacing="0" style="border-width:1px; border-collapse: collapse" width="96%" height="1" bordercolor="#CC0000">
  <tr>
    <td width="100%" height="24" colspan="7">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="25">
            <tr>
        <td width="285" height="24">
    <FORM name=sou1 action="?fox=1" method=POST>
    <p align="center">按帐号：<input type="text" name="T1" size="10">
    <input type="submit" value="查找" name="B1">
    </form>
        </td>
        <td width="285" height="24">
    <FORM name=sou2 action="?fox=2" method=POST>
    <p align="center">按姓名：<input type="text" name="T2" size="10">
    <input type="submit" value="查找" name="B1">
    </form>
        </td>
        <td width="285">
    <FORM name=sou3 action="?fox=3" method=POST>
    <p align="center">按关键词：<input type="text" name="T3" size="10">
    <input type="submit" value="查找" name="B1">
    </form>
        </td>
      </tr>
      <tr>
        <td colspan="3" width="864" height="24">
        <p align="center"><a href="?fox=4">显示未(<font color="#FF0000">ⅹ</font>)验证</a>---<a href="?fox=5">显示已(√)验证</a>---<a href="?fox=6">显示推荐</a>---<a href="?fox=7">显示有回复</a>---<a href="?fox=8">显示有图片</a>---<a href="?fox=">显示全部</a></td>
      </tr>
    </table>
    </td>
  </tr>
  <FORM name=thisForm action="" method=POST>
<%
dim rs,sql,k,fox
dim ThisPage,Pagesize,Allrecord,Allpage
k=1
set rs = Server.CreateObject("ADODB.RecordSet")
fox=trim(request("fox"))
Select Case fox
Case "1"
sql="select * from [FOX_xinxi] where username='"&trim(request("T1"))&"' and ts=0 order by fbsj desc" 
Case "2"
sql="select * from [FOX_xinxi] where name like '%"&trim(request("T2"))&"%' and ts=0 order by fbsj desc" 
Case "3"
sql="select * from [FOX_xinxi] where company like '%"&trim(request("T3"))&"%' and ts=0 order by fbsj desc" 
Case "4"
sql="select * from [FOX_xinxi] where yz<>1 and ts=0 order by fbsj desc" 
Case "5"
sql="select * from [FOX_xinxi] where yz=1 and ts=0 order by fbsj desc"
Case "6"
sql="select * from [FOX_xinxi] where yz=1 and tj=1 and ts=0 order by fbsj desc"
Case "7"
sql="select * from [FOX_xinxi] where yz=1 and hfcs>0 and ts=0 order by fbsj desc"
Case "8"
sql="select * from [FOX_xinxi] where yz=1 and xinxipic<>'0' and ts=0 order by fbsj desc"
Case Else
sql="select * from [FOX_xinxi] where ts=0 order by fbsj desc" 
End Select
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>没有记录"
response.end
end if
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 bgcolor="#BDBEDE">
    <td width="5%" height="24" align="center" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#666666" bgcolor="#CC0000">
	<font color="#FFFFFF">选择</font></td>
    <td width="50%" height="28" bordercolor="#666666" bgcolor="#CC0000" style="border-bottom-style: solid; border-bottom-width: 1" colspan="2">
	<font color="#FFFFFF">标题</font></td>
    <td width="11%" height="24" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#666666" bgcolor="#CC0000">
    <p align="center"><font color="#FFFFFF">发布人</font></td>
    <td width="21%" height="24" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#666666" bgcolor="#CC0000">
    <p align="center"><font color="#FFFFFF">日期</font></td>
    <td width="5%" height="24" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#666666" bgcolor="#CC0000">
    <p align="center"><font color="#FFFFFF">验证</font></td>
    <td width="5%" height="24" bordercolor="#666666" bgcolor="#CC0000" style="border-bottom-style: solid; border-bottom-width: 1"><div align="center">
		<font color="#FFFFFF">操作</font></div></td>
  </tr>
<%
dim uid,hfc,cid
do while not rs.eof
uid=rs("id")
hfc=rs("hfcs")
cid=rs("xxid")
%>

  <tr>
    <td width="5%" height="24" align="center" bgcolor="#FFFFFF" style="border-top-style: solid; border-top-width: 1">
    <INPUT type=checkbox value="<%=uid%>" name=selectedid></td>
    <td width="50%" height="24" bgcolor="#FAFAFA" style="border-top-style: solid; border-top-width: 1" colspan="2"><a href=../xinxiinfo.asp?fox=<%=uid%>><%=rs("company")%></a> &nbsp; <%if hfc>0 then%><font color="#FF0000">回</font><%else%><%end if%>
    <%if rs("xinxipic")="0" then%><%else%><font color="#CCCCCC">图</font><%end if%><%if rs("tj")=0 then%><%else%><font color="#FF0000">荐</font><%end if%></td>
    <td width="11%" height="24" align="center" bgcolor="#FFFFFF" style="border-top-style: solid; border-top-width: 1"><%=rs("username")%></td>
    <td width="21%" height="24" align="center" bgcolor="#FAFAFA" style="border-top-style: solid; border-top-width: 1"><%=rs("fbsj")%></td>
    <td width="5%" height="24" align="center" bgcolor="#FFFFFF" style="border-top-style: solid; border-top-width: 1"><%if rs("yz")=1 then%>√<%else%><b><font color="#FF0000">ⅹ</font></b><%end if%></td>
    <td width="5%" height="24" bgcolor="#FAFAFA" style="border-top-style: solid; border-top-width: 1">
    <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 width="100%" height="24" colspan="7" style="border-bottom-style: solid; border-bottom-width: 1" bgcolor="#FFF8EC">
    <div align="center">
      <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="100%">
      <tr>
        <td bgcolor="#FF9900"><div align="right"><a href="htmlid.asp?id=<%=uid%>">生成HTML页面</a>&nbsp;<%if rs("xinxipic")="0" then%><a href="xinxi_dell.asp?id=<%=uid%>&username=<%=rs("username")%>">删除该信息</a><%else%><a href="xinxi_delt.asp?id=<%=uid%>">图片删除信息</a><%end if%>&nbsp;
        <a href="xinxi_hfdel.asp?id=<%=uid%>">删除所有回复</a>&nbsp;
			<a href="xinxi_edit.asp?id=<%=uid%>">编辑信息</a>&nbsp;
			<a href="xinxib.asp?id=<%=uid%>">置顶天数</a>&nbsp;
			<a href="xinxi_tj.asp?id=<%=uid%>">是否推荐</a>&nbsp;
			<a href="xinxi_yz.asp?selectedid=<%=uid%>">通过验证</a>
</div></td>
        </tr>
    </table>
      </center>
    </div>
    </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="1" colspan="7" style="border-top-style: solid; border-top-width: 1">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="1">
<tr> 
<td width="595" height="25" align="center" bgcolor="#eeeeee"><div align="center">
      <input onClick=CheckAll(this.form) type=checkbox value=on name=chkall>
      选中所有
    共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录 共 <font color="#CC5200"><%=Allpage%></font> 页 现在是第 <font color="#CC5200"><%=ThisPage%></font> 页
    <%
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"))&"&fox="&fox&">首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&fox="&fox&">上一页</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"))&"&fox="&fox&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&fox="&fox&">尾页</a>&nbsp;"     
end if
%>
</div></td>
</tr>
</table>
    </td>
  </tr>
  
  <tr valign="bottom" bgcolor="#FFFFFF">
    <td width="25%" height="45" colspan="2" bordercolor="#999999" style="border-bottom-style: solid; border-bottom-width: 1">
    <p align="center"><img style="CURSOR: hand" onclick=javascript:showoperatealert(1) border="0" src="images/ershou_2.gif">&nbsp;
    <img style="CURSOR: hand" onclick=javascript:showoperatealert(2) border="0" src="images/ershou_1.gif"></td>
    <td colspan="5" bordercolor="#999999" style="border-bottom-style: solid; border-bottom-width: 1">
    注意：<br>
	未通过验证并未生成HTM时，可以多条删除，如果已经生成HTM，请按条每条删除，这样可以同时删除生成的HTM文件，切记！</td>
  </tr>
  </form>
  <tr>
    <td width="100%" height="1" colspan="7" style="border-top-style: solid; border-top-width: 1"></td>
  </tr>
</table></center>
</div>