
<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<!doctype html>

<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

<script src="../laydate/laydate.js"></script>
</head>
<body topmargin="5" leftmargin="5">



<%
  strftype=request("ftype")
	

 tname=request.cookies("tname")
 strdate1=request("date1")
 strdate2=request("date2")
 title=request("title")
 guanjianci=request("guanjianci")
 author=request("author")
 if strdate1="" then 
   strdate1=date()-90
 end if
 if strdate2="" then 
   strdate2=date()+1
  
 end if
 
 
 
Set rs=Server.CreateObject("Adodb.Recordset")
sql="SELECT g.*, s.*   FROM gonggao g INNER JOIN  gonggaosee s ON g.id = s.fid  where (g.fDate BETWEEN '"&strdate1&"'  AND   '"&dateadd("d",1,strdate2)&"') AND (g.Title like  '%"&title&"%')  AND (g.Content like  '%"&guanjianci&"%') and  (g.author like  '%"&author&"%') and   (tname ='"&tname&"') and  (ftype='"&strftype&"') order by  g.id  desc"
rs.open sql,conn,1,1

rs.pagesize=13 '每页记录条数
curpage=Request.QueryString("curpage") '将URL参数curpage传给curpage变量
rs.absolutepage=curpage '将本页设为curpage设置的页数
if curpage=0 then
   curpage=1
end if 

%>
<form id="form1" name="form1" method="post" action="filelist.asp?ftype=<%=strftype%>">



<br>
<script><!--打开公告-->
function open_notify(NOTIFY_ID,FORMAT)
{
 URL="openFile.asp?id="+NOTIFY_ID;
 myleft=80;
 mytop=80
 mywidth=(screen.availWidth-160);
 myheight=(screen.availHeight-120);
 if(FORMAT=="1")
 {
    myleft=0;
    mytop=0
    mywidth=screen.availWidth-10;
    myheight=screen.availHeight-40;
 }
 window.open(URL,'_blank',"height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>

    
<table width="95%" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  style="border-collapse:collapse" class="mtablehui">
 <tr style="background-color:#D6E4FF"  class="TableHeader">
   <td height="30" colspan="3" align="center" nowrap class="NemuNot">
   
   <table width="787" border="0" align="center" cellpadding="0" cellspacing="0" class="mtableNot">
     <tr>
       <td width="34" class="STYLE1"><div align="right">开始</div></td>
       <td width="117" class="STYLE1">
         <input name=date1  placeholder="请输入日期"  style="width:90px"  value=<%=strdate1%> class="laydate-icon" onClick="laydate()">
      </td>
       <td width="51" class="STYLE1"><div align="right">结束</div></td>
       <td width="101" class="STYLE1">
         <input name=date2  placeholder="请输入日期"  style="width:90px"  value=<%=strdate2%> class="laydate-icon" onClick="laydate()">
       </td>
       <td width="65" class="STYLE1"><div align="right">标题&nbsp;</div></td>
       <td width="76" class="STYLE1">         <input name="title" type="text" id="title" size="10" class="text" value=<%=title%> >       </td>
       <td width="75" class="STYLE1"><div align="right">关键词&nbsp;</div></td>
       <td width="71" class="STYLE1">         <input name="guanjianci" type="text" id="guanjianci" class="text" size="10" value=<%=guanjianci%>>       </td>
       <td width="74"   class="STYLE1"><div align="right"><span class="STYLE2">发布人&nbsp;</span></div></td>
          <td width="81" class="STYLE1"><span class="STYLE2">
            <input name="author" type="text" id="author" class="text" value="<%=author%>" size="8" />
          </span></td>
	   
	   <td width="42"><input name="Submit" type="submit" class="topanniu" value="搜索" />       </td>
     </tr>
   </table></td>
   </tr>
  </table>
  <table width="881" height="7" border="0">
  <tr>
    <td height="3"></td>
  </tr>
</table>
  
  
  <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse"  class="mtable">
 <tr style="background-color:#D6E4FF"  class="TableHeader">
  
	  <td   width="70%"  height="30" align="center" nowrap class="STYLE1"><span class="STYLE1">标题</span></td>
      <td width="10%" align="center" nowrap class="STYLE1">发布人</td>
      <td  width="20%"  align="center" nowrap class="STYLE1"><span class="STYLE1">日期/点击</span></td>
  </tr>
<%
   for i= 1 to rs.pagesize
      if rs.eof then
         exit for
      end if
%>
    <tr onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#EFF8FF'">
	<td    height="30">
	
	
	
	&nbsp;
	
	<%if rs("Havesee")="已经查阅"   then  
	 else  %>
				    <img src="../images/<%=request.cookies("imgdir")%>/gonggaoNew.gif" width="22" height="9"> 
        <%end if %>
	<%if trim(rs("ontop"))<>"顶置" then  
				else  %>
                <img src="../images/<%=request.cookies("imgdir")%>/ding.gif" width="15" height="13">
                <%end if  %>
     <span class="STYLE1"> <a href="javascript:open_notify(<%=rs("id")%>,'0');"><%=rs("title")%><a></td>
    <td class="STYLEname"><div align="center"><a href="filelist.asp?ftype=通知&author=<%=rs("author")%>"><%=rs("author")%></a></div></td>
    <td><div align="center" class="STYLEDATE"><%=formatdatetime(rs("fdate"),2)%>&nbsp;&nbsp;<span class="STYLEHIT">(<%=rs("hits")%>)
	
	  <%if rs("标星")="是"   then %>      
            <a href="bianxing.asp?yemian=filelist&id=<%=rs("id")%>&biaoxing=0&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&ftype=<%=strftype%>&curpage=<%=curpage%>">&nbsp;<img src="../images/img/main/biaoxing1.jpg" width="16" height="16"  border="0">&nbsp;</a>
       <%  else %>
           <a href="bianxing.asp?yemian=filelist&id=<%=rs("id")%>&biaoxing=1&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&ftype=<%=strftype%>&curpage=<%=curpage%>">&nbsp;<img src="../images/img/main/biaoxing0.jpg" width="16" height="16"  border="0">&nbsp;</a>
		   <%end if %>
	
	
	
	</span></div>	</td> 
	</tr>
<%  rs.movenext
    next%>
</table>
  <br>
  <div>
<div align="center" class="STYLETITLE">
  <span class="STYLE1">
  <%if curpage=1 then%>
首页
<%else%>
<a href="?date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>&ftype=<%=strftype%>&curpage=1">首页</a>
<%end if%>

<%if curpage=1 then%>
上一页
<%else%>
<a href="?date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>&ftype=<%=strftype%>&curpage=<%=curpage-1%>">上一页</a>
<%end if%>

<%if rs.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>&ftype=<%=strftype%>&curpage=<%=curpage+1%>">下一页</a>
<%end if%>

<%if rs.pagecount<curpage+1 then%>
尾页
<%else%>
<a href="?date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>&ftype=<%=strftype%>&curpage=<%=rs.pagecount%>">尾页</a>
<%end if%>
(当前第<%=curpage%>页，共有<%=rs.pagecount%>页，共有：<%=rs.recordcount%>条记录)</span></div>
<br>
<p align="center"> 
		<input name="button" type="button" class="topanniu" onClick="location='../main.asp';"  value="返回桌面" />
	 
</p>
</form>

</body>  
  
</html>  