<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<%
searchcontent=trim(request("searchcontent"))
str="select * from ftbbs_upload where (bbs_blog_type=1 or bbs_blog_type=2) and upload_pic like '%"&searchcontent&"%' order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open str,conn,3,1
page=request("page")
if page="" then
page=1
else 
page=cint(trim(request("page")))
end if
ipagesize=23
rs.pagesize=ipagesize
%>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">

</head>

<body bgcolor="#FFFFFF" text="#000000">
<br>
<table width="98%" border="0" align="center">
  <TR align=center>
<FORM METHOD=POST ACTION="<%=request.servervariables("script_name")%>" >
	  <TD> 
        <INPUT NAME="searchcontent" TYPE="text" value="文件名" size=30>
        <INPUT TYPE="submit" value="搜索" name="">
      </TD>
</FORM>
</TR>
</TABLE>
<table width="98%" border="0" bgcolor="#EDE9EC" cellspacing="1" cellpadding="0" align="center">
  <tr bgcolor="#FFFFFF" align=center> 
  <%if not rs.eof then
	  rs.absolutepage=page
	  i=0
	  do while not rs.eof
	  if rs("bbs_blog_type")=2 then
	  photourl="../"&rs("upload_pic")
	  else
	  photourl=rs("upload_pic")
	  end if
  %>
    <td><img src="<%=photourl%>" width="80" height="80"><br>
      <A HREF="../bbsadmin/delpic.asp?pic=<%=rs("upload_pic")%>&id=<%=rs("id")%>">[删除]</A></td>
  <%
  i=i+1
  if i mod 4=0 then
  response.write "<tr bgcolor=""#FFFFFF"" align=center>"
  end if
  rs.movenext
  if i>ipagesize then exit do
  loop
  %>
  </tr>
  <tr align=center bgcolor="#FFFFFF"> 
    <td colspan="15"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="77%"> <div align="center">共<%=rs.recordcount%>个 第<%=page%>页/共<%=rs.pagecount%>页　 
              <%if page>1 then%>
              <a href="<%=request.servervariables("script_name")%>?page=1&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［首　页］</a> 
              <%else%>
              ［首　页］ 
              <%end if%>
              <%if page>1 then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=page-1%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［上一页］</a> 
              <%else%>
              ［上一页］ 
              <%end if%>
              <%if page<rs.pagecount then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=page+1%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［下一页］</a> 
              <%else%>
              ［下一页］ 
              <%end if%>
              <%if page<>rs.pagecount then%>
              <a href="<%=request.servervariables("script_name")%>?page=<%=rs.pagecount%>&searchcontent=<%=searchcontent%>&searchkind=<%=searchkind%>">［尾　页］</a> 
              <%else%>
              ［尾　页］ 
              <%end if%>
            </div></td>
          <form name="form2" method="post" action="<%=request.servervariables("script_name")%>">
            <td width="23%"> <div align="center">第 
                <input type="text" name="page" size="3">
                页 
                <INPUT TYPE="hidden" name="searchcontent" value="<%=searchcontent%>">
                <input type="submit" name="Submit" value="GO！">
              </div></td>
          </form>
        </tr>
      </table></td>
  </tr>
  <%else%>
  <tr bgcolor="#F2F9F9"> 
    <td colspan=15> <div align=center> 暂时还没有图片！ </div></td>
  </tr>
  <%end if%>
</table>
<br>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>