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

<div id='content' style='width:1002px;height:436px;background:none transparent scroll repeat 0% 0%;margin:0px auto'>


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

<div id='pdv_15786' class='pdv_class'  title='' style='width:223px;height:193px;top:0px;left:45px; z-index:8'>
<div id='spdv_15786' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:url(base/border/783/images/bg.jpg) repeat-y;">
<div style="height:100%;background:url(base/border/783/images/bg.jpg) right repeat-y;">
<div style="height:49px;border:0px;padding:0;margin:0;background:url(base/border/783/images/title.jpg) 0px 0px no-repeat;">
	<div style="float:right;width:15px;height:49px;background:url(base/border/783/images/title.jpg) -985px 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 style="margin-top:-16px;height:16px;line-height:16px;background:url(base/border/783/images/title.jpg) 0px -219px no-repeat">&nbsp;</div>
<div style="float:right;margin-top:-16px;width:15px;height:16px;line-height:16px;background:url(base/border/783/images/title.jpg) -985px -219px no-repeat">&nbsp;</div>

</div>
</div>

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

<div id='pdv_15783' class='pdv_class'  title='栏目导航' style='width:652px;height:46px;top:0px;left:302px; z-index:9'>
<div id='spdv_15783' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;background:url(base/border/788/images/title.jpg) no-repeat;padding:0px;margin:0px;height:100%;">
	<div style="float:left;color:#fff;font:14px/47px Simsun;padding-left:43px;">栏目导航</div>
	<div style="float:right;height:100%;width:16px;background:url(base/border/788/images/title.jpg) -984px 0px no-repeat;"></div>
 
<link href="news/templates/css/nav.css" rel="stylesheet" type="text/css" />
<div id="nav">
您现在的位置：<a href="index.asp"><%=SiteTitle%></a> &gt; <%= bianliang %>

</div>

</div>

</div>
</div>

<!-- 文章搜索表单 -->
<!-- 全站翻页文章列表 -->
<div id='pdv_15789' class='pdv_class'  title='' style='width:634px;height:350px;top:84px;left:312px; z-index:11'>
<div id='spdv_15789' 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/-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>

<% end if %>
</div>
</div>

</div>
</div>
</div>
 <!--#include file="include/bottom.asp" -->


</body>
</html>
