<%@ 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:1002px;height:592px;background:url(effect/source/bg/bg.jpg);margin:0px auto'>


<!-- 空白边框 -->

<div id='pdv_19063' class='pdv_class'  title='新闻检索' style='width:734px;height:30px;top:27px;left:15px; z-index:1'>
<div id='spdv_19063' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:url(base/border/786/images/title.jpg) 0px 0px no-repeat">
<div style="float:left;font:bold 14px/22px Simsun;color:#000;padding-left:16px;"><%= BigClass %></div><div style="float:right;height:100%;width:6px;background:url(base/border/786/images/title.jpg) -994px 0px no-repeat;"></div>
</div>

</div>
</div>

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

<div id='pdv_19071' class='pdv_class'  title='' style='width:675px;height:500px;top:90px;left:39px; z-index:14'>
<div id='spdv_19071' 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_19070' class='pdv_class'  title='' style='width:213px;height:200px;top:0px;left:789px; z-index:15'>
<div id='spdv_19070' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
<div style="height:44px;border:0px;padding:0;margin:0;background:url(base/border/788/images/title.jpg) 0px 0px no-repeat;">
	<div style="float:right;height:44px;width:6px;background:url(base/border/788/images/title.jpg) -994px 0px no-repeat;"></div>
</div>
<div style="margin: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 id='pdv_19072' class='pdv_class'  title='当前位置' style='width:650px;height:30px;top:31px;left:99px; z-index:16'>
<div id='spdv_19072' class='pdv_content' style='overflow:hidden;width:100%;height: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/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>
<% end if %>
 <%#@~^DwAAAA==~1ls^P	+hkVKG3,bgUAAA==^#~@%>

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

</body>
</html>
