<%@ 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:990px;height:538px;background:url(effect/source/bg/cbg.jpg) #ffffff no-repeat;margin:0px auto'>


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

<div id='pdv_12764' class='pdv_class'  title='文章检索' style='width:703px;height:525px;top:0px;left:273px; z-index:1'>
<div id='spdv_12764' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:#fff url(base/border/784/images/bg.gif) repeat-y;">
<div style="height:100%;background:url(base/border/784/images/bg.gif) right repeat-y;">
<div style="height:44px;border:0px;padding:0;margin:0;background:url(base/border/784/images/top.gif) 0px 0px no-repeat;">
	<div style="float:right;width:60px;height:44px;background:url(base/border/784/images/top.gif) -930px 0px no-repeat;">
	</div>
</div>
<div style="margin:0px;padding:20px;">

<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 style="margin-top:-7px;height:7px;line-height:7px;background:url(base/border/784/images/top.gif) 0px -434px no-repeat">&nbsp;</div>
<div style="float:right;margin-top:-7px;width:15px;height:7px;line-height:7px;background:url(base/border/784/images/top.gif) -975px -434px no-repeat">&nbsp;</div>

</div>
</div>

<!-- 图片/FLASH -->

<div id='pdv_12763' class='pdv_class'  title='' style='width:243px;height:70px;top:0px;left:14px; z-index:4'>
<div id='spdv_12763' 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">


<a href="feedback.asp"><img src="diy/pics/20100323/1269307621.gif" border="0" width="100%" /></a>

</div>
</div>

</div>
</div>

<!-- 自定义模版 -->

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


<!-- 文章搜索表单 -->
<!-- 当前位置提示条 -->
<div id='pdv_12753' class='pdv_class'  title='当前位置' style='width:680px;height:35px;top:0px;left:279px; z-index:14'>
<div id='spdv_12753' 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/-1" style="line-height:25px;color:">更多</a>
		</div>
	</div>
<div style="padding:12px">
 
<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>
</div>
<!--#include file="include/bottom.asp" -->

</body>
</html>
