<%@ LANGUAGE = VBScript.Encode %>
<!--#include file="class/sub.asp" -->
 <% 
BigClass=request("BigClass")
if BigClass="" then
 BigClass="企业新闻"
else
BigClass=request("BigClass")
end if
SmallClass=request("SmallClass")
%>
<!--#include file="include/top.asp" -->

<div id='content' style='width:990px;height:535px;background:url(effect/source/bg/x02.jpg) repeat-y center top;margin:30px auto'>


<!-- 文章搜索表单 -->



<!-- 当前位置提示条 -->

<div id='pdv_11103' class='pdv_class'  title='当前位置' style='width:754px;height:50px;top:0px;left:230px; z-index:9'>
<div id='spdv_11103' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
<div style="height:100%;">
<div style="height:23px;border:0px;padding:0;margin:0;background:url(base/border/788/images/top.png) 0px 0px no-repeat;">
	<div style="float:right;width:72px;height:23px;background:url(base/border/788/images/top.png) -828px 0px no-repeat;">
		<a href="index.asp"><img src="base/border/788/images/back.gif" style="border:0px;" /></a>
	</div>
</div>
<div style="margin:0px;padding:0px;">
 
<link href="news/templates/css/nav.css" rel="stylesheet" type="text/css" />
<div id="nav">
 您现在的位置：<a href="index.asp"><%=SiteTitle%></a>
 
&gt; <a href="news.asp?BigClass=<%= BigClass %>" ><%= BigClass %></a>
</div>

</div>
</div>
</div>

</div>
</div>

<!-- 文章翻页检索 -->

<div id='pdv_11104' class='pdv_class'  title='文章检索' style='width:722px;height:460px;top:75px;left:242px; z-index:10'>
<div id='spdv_11104' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
	<div style="height:25px;margin:1px;display:none;background:;">
		<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">
		文章检索
		</div>
		<div style="float:right;margin-right:10px;display:none">
		<a href="news/class/-1" style="line-height:25px;color:">更多</a>
		</div>
	</div>
<div style="padding:0px">


<link href="news/templates/css/newsquery.css" rel="stylesheet" type="text/css" />
<div id="newsquery">
<ul id="queryul">

                    <% 
page=clng(request("page"))		 
Set rs=Server.CreateObject("ADODB.RecordSet") 
if BigClass<>"" and SmallClass <>"" then
sql="select * from news where BigClassName='"&BigClass&"' and SmallClassName='"&SmallClass&"' order by AddDate desc"
rs.Open sql,conn,1,1
elseif BigClass<>"" then
sql="select * from news where BigClassName='"&BigClass&"' order by AddDate desc"
rs.Open sql,conn,1,1
end if
if rs.eof and rs.bof then
  response.Write("暂时没有记录")
else 
%>
                    <% 
rs.PageSize=20
if page=0 then page=1 
pages=rs.pagecount
if page > pages then page=pages
rs.AbsolutePage=page  
for j=1 to rs.PageSize 
%>
     
 
<li class="title">
	<div class="title">     <a href="shownews.asp?id=<%= RS("id") %>"  target="_self"><%= cutstr(RS("TITLE"),38) %></a></div>
	<div class="time">[<%=FormatDateTime(RS("AddDate"),2)%>] (点击<font color="#ff0000"><%= RS("hits") %></font>)</div>

</li>
                     <%
rs.movenext
if rs.eof then exit for
next
%>

</ul>
</div>

<div id="showpages">
	  <div id="pagesinfo"><ul><%      response.write "<li class='opt'>&nbsp;共<b><font color='#FF0000'>"&rs.recordcount&"</font></b>条记录 <b>"&rs.pagesize&"</b>条记录/页</li>" %></ul></div>
	  <div id="pages">
	
	   <ul>
	          <form method=Post action="News.asp?BigClass=<%=BigClass%>&SmallClass=<%=SmallClass%>">
                          <%if Page<2 then      
    response.write "<li class='pbutton'>首  页</li>"
	response.write "<li class='pbutton'>上一页</li>"
  else
    response.write "<li class='pbutton'><a href=News.asp?BigClass="&BigClass&"&SmallClass="&SmallClass&"&page=1>首页</a>&nbsp;</li>"
    response.write "<li class='pbutton'><a href=News.asp?BigClass="&BigClass&"&SmallClass="&SmallClass&"&page=" & Page-1 & ">上一页</a>&nbsp;</li>"
  end if
  if rs.pagecount-page<1 then
    response.write "<li class='pbutton'>下一页</li>"
	response.write "<li class='pbutton'>尾 页</li>"
  else
    response.write "<li class='pbutton'><a href=News.asp?BigClass="&BigClass&"&SmallClass="&SmallClass&"&page=" & (page+1) & ">下一页</a></li>"
	Response.Write"<li class='pbutton'> <a href=News.asp?BigClass="&BigClass&"&SmallClass="&SmallClass&"&page="&rs.pagecount&">尾页</a></li>"
  end if
   response.write "<li class='opt'>&nbsp;页次：<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>页</li> "
   response.write "<li class='opt'><input type='text' name='page' style='width:25px; height:16px; line-height:16px;' maxlength=10 class=input value="&page&"></li>"
   response.write "<li class='opt'> <input class=input type='submit' style='width:55px; height:18px; line-height:14px;'    value=' Goto '  name='cndok'></span></li>"    
%>
                  </form>
	  

				</ul>
	  
</div>
</div>


</div>
</div>

</div>
</div>

<!-- 文章一级分类 -->

<div id='pdv_11105' class='pdv_class'  title='文章分类' style='width:166px;height:116px;top:0px;left:0px; z-index:11'>
<div id='spdv_11105' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
<div style="height:100%;">
<div style="height:40px;border:0px;padding:0;margin:0;background:url(base/border/786/images/top.png) 0px 0px no-repeat;">
	<div style="font:12px/32px Arial;margin-left:34px;color:#454545;">
		栏目导航
	</div>
</div>
<div style="margin:9px 2px 0px;padding:0px;">

<link href="news/templates/css/newsclass_dolphin.css" rel="stylesheet" type="text/css" />
<div class="newsclass_dolphin">

 <% call xwleft() %>
</div>

</div>
</div>
</div>

</div>
</div>
</div>
 <% end if %>
 <!--#include file="include/bottom.asp" -->
 <% 
rs.close
set rs=nothing
call CloseConn() %>


</body>
</html>
