<!--#include file="conn.asp"-->
<%
id=request("id")
if id="" then
id="行业动态"
end if
%>
<!--#include file="share.asp"-->
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-weight: bold;
}
.style2 {
	color: #339900;
	font-weight: bold;
}
.style3 {
	font-size: 14px;
	font-weight: bold;
	color: #3366FF;
}
-->
</style>
</HEAD>
<BODY>
<!--#include file="top.asp"-->
<TABLE height=100 cellSpacing=0 cellPadding=0 width=1000 align=center 
  border=0><TBODY>
  <TR vAlign=top>
    <TD align=middle width=262><!--#include file="left.asp"--></TD>
    <TD width=742>
      <TABLE cellSpacing=0 cellPadding=0 width=733 border=0>
        <TBODY>
        <TR>
          <TD>&nbsp;</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=733 
      border=0>
        <TBODY>
        <TR>
          <TD height=26 background=images/c_3_bg.jpg ><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="5%" align="center"><img src="images/arr-1.jpg" width="12" height="12"></td>
              <td width="95%"><a href="news.asp"><span class="style1">新闻中心</span></a>&gt;&gt;  <span class="zwmenu"><%=id %></span></td>
            </tr>
          </table></TD>
        </TR>
		<TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=0 width=733 
            background=images/line2.jpg border=0>
              <TBODY>
              <TR>
      <TD height=1></TD></TR></TBODY></TABLE></TD></TR>
	  <TR>
          <TD height=26 ><table width="97%"  border="0" align="center" cellpadding="0" cellspacing="0">
               <% 
	set rs = server.createobject("adodb.recordset")
	sql="select * from SmallClass where bigclassname='新闻中心'" 
	rs.open sql,conn,1,1
	t=rs.recordcount 
	%>
	<%
	do while not rs.eof 
%>

                  <td height="28" class="smblack">&nbsp; <img src=images/arrow_2.gif width=11 height=11>  &nbsp;<a href="news.asp?id=<%=rs("Smallclassname")%>"><%=rs("Smallclassname")%></a></td>
                 <%
	rs.movenext 
	loop 
	rs.close 

%>  </tr>
                <tr>
                  <TD height=1 colspan=<%=t%> background=images/naSzarym.gif><IMG height=1 src=img/1x1_pix.gif width=10></TD>
                </TR>    
                <tr>
                  <td>&nbsp;</td>
                </tr>
               
            </table></TD>
	  </TR>
		<TR>
          <TD height=26 style="padding:15px;"><table width="100%"  border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
              <td><p style="line-height:200%; ">      
<table width="88%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <% 
page=clng(request("page"))		 
Set rs=Server.CreateObject("ADODB.RecordSet") 
if id<>"" then
sql="select * from news where SmallClassName='"&id&"' order by id desc"
else
sql="select * from news where BigClassName='新闻中心' order by id desc"
end if
rs.Open sql,conn,1,3
if rs.recordcount=0 then
response.Write("<tr><td height=1 colspan=3 align=center>暂时没有记录</td></tr>")
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 
%>
              <tr>
                <td width="15" height="20"><img src="images/square.jpg" width="7" height="7"></td>
                <td><A href="shownews.asp?id=<%= RS("id") %>&class=<%=id %>"><%= RS("TITLE") %></a></td>
                <td width="120" class="red"><font color="#999999"><%= RS("infotime") %></font></td>
              </tr>
              <tr>
                <td height="1" colspan="3" background="images/naSzarym.gif"></td>
              </tr>
              <%
rs.movenext
if rs.eof then exit for
next
%><%end if%>
          </table></td>
        </tr>
        <tr valign="bottom">
          <td height="50" align="center" class="red"><form method=Post action="news.asp?id=<%= id %>">
              <%if Page<2 then      
    response.write "首页 上一页&nbsp;"
  else
    response.write "<a href=news.asp?id="&id&"&page=1>首页</a>&nbsp;"
    response.write "<a href=news.asp?id="&id&"&page=" & Page-1 & ">上一页</a>&nbsp;"
  end if
  if rs.pagecount-page<1 then
    response.write "下一页 尾页"
  else
    response.write "<a href=news.asp?id="&id&"&page=" & (page+1) & ">"
    response.write "下一页</a> <a href=news.asp?id="&id&"&page="&rs.pagecount&">尾页</a>"
  end if
   response.write "&nbsp;页次：<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>页 "
   response.write "&nbsp;共<b><font color='#FF0000'>"&rs.recordcount&"</font></b>条记录 <b>"&rs.pagesize&"</b>条记录页"
   response.write " 转到：<input type='text' name='page' size=4 maxlength=10 value="&page&">"
   response.write " <input type='submit'  value=' Goto '  name='cndok'></span></p>" 
    
%>
          </form></td>
        </tr>
      </table>
      </p>
              </td>
            </tr>
          </table></TD>
		</TR></TBODY></TABLE>
            </TD>
  </TR></TBODY></TABLE>
<!--#include file="bottom.asp"-->
</BODY>
</HTML>