<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="connoklin.asp" -->
<%if trim(request("typeid"))="1" then
bbc="信息公告"
elseif trim(request("typeid"))="2" then
bbc="政策法规"
elseif trim(request("typeid"))="3" then
bbc="行业新闻"
else 
bbc="洗衣技术"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=bbc%>-凯萨洗衣</title>
<link href="pic/css.css" rel="stylesheet" type="text/css" />
<SCRIPT language=Javascript src="pic/bn.js"></SCRIPT>
</head>

<body onmousemove="HideMenu()">
<div id=menuDiv style='Z-INDEX: 2; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8'></div>
<!--#include file="ttop.asp" -->
<table width="993" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="D9F2F3">
  <tr>
<!--#include file="lleft1.asp" -->
    <td width="12"></td>
    <td width="740" valign="top"> 
      <table width="739" border="0" cellspacing="0" cellpadding="0">
        <tr><td height="8"></td></tr>
        <tr>
          <td width="739" height="37" align="left" valign="top"  background="pic/555.gif" class="gblin"> 
            <table width="97%" border="0" align="right" cellpadding="0" cellspacing="0">
			<tr><td height="7"></td></tr>
              <tr>
    <td class="gblin">&nbsp;<%=bbc%></td>
  </tr>
</table>
           </td>
        </tr>
        <tr>
          <td width=739 height="850" valign="top" background="pic/1bg.gif"> 
		  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td width="662" valign="top" > 
                  <table width="100%" border="0" cellspacing="0" cellpadding="3">
                    <tr> 
                      <td class="gb" align="center"> 
                        <% const MaxPerPage=25
sql="SELECT * FROM news where BigClassName='资讯中心' and smallclassname='"&bbc&"'  order by ID desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
'response.write sql
 %>
                        <% if rs.eof and rs.bof then
   response.write "<p align='center'><font color=blue size=3>文件上传中……</font></p>"
   else
   rs.pagesize=MaxPerPage
    	nowPage=request.querystring("page")
       if nowPage="" then
	      nowpage=1
	   else
	     nowPage=cint(nowPage)
         if nowPage<1 or nowPage>RS.PageCount then
	        NowPage=1
	      end if
	   end if	  
       RS.absolutePage=NowPage   
%>
                        <%
   dim m_nPageCount
	     m_nPageCount=Rs.PageCount
		  dim nTemp,szTemp
  		   szTemp="news.asp?typeid="&trim(request("typeid"))&"&page="
		   nTemp=1
     %>
                      </td>
                    </tr>
                  </table>
                  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
                    <%
for i=1 to MaxPerPage
if not rs.eof then
%>
                    <tr valign="top"> 
                      <td class=gb width="100%" align="center"> <table width="100%">
                          <tr>
                            <Td width="2%"><img src="pic/bt.gif"></Td>
                            <td class="gbhui" width="83%"> <a href="show.asp?id=<%=rs("id")%>" title="<%=rs("title")%>" target="_blank" class="gbhui"><%=rs("title")%></a> 
                            </td>
                            <td align="center" class="gbhui" width="15%"><font color="#ff0000" ><%=rs("time")%></font></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <Td background="../pic/nd.gif" height="3"></td>
                    </tr>
                    <%
rs.movenext
end if
next
%>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="3">
                    <tr> 
                      <td class="gb" align="center" height="30"></td>
                    </tr>
                    <tr> 
                      <td class="gb" align="center"> 
                        <% 
   rs.pagesize=MaxPerPage
    	nowPage=request.querystring("page")
       if nowPage="" then
	      nowpage=1
	   else
	     nowPage=cint(nowPage)
         if nowPage<1 or nowPage>RS.PageCount then
	        NowPage=1
	      end if
	   end if	  
       RS.absolutePage=NowPage   
       response.write("本栏目共有 <font color=red>"&rs.recordcount&"</font> 条内容,每页显示 <font color=red>"&MaxPerPage&"</font> 个,本页第 <font color=red>"&NowPage&"</font> 页")
%>
                        &nbsp;&nbsp; 
                        <%



		   nTemp=1
		   response.write("[<a class=gbhui href='"&sztemp&nTemp&"'>首  页</a>]")
	       if nowPage>1 then
		      nTemp=NowPage-1
		       response.write "&nbsp;"
           response.write("[<a class=gbhui href='"&szTemp&nTemp&"'>上一页</a>]")		
           end if
	       if nowPage<m_nPageCount then
               nTemp=NowPage+1
              response.write "&nbsp;"
              response.write("[<a class=gbhui  href='"&szTemp&nTemp&"'>下一页</a>]")
		   end if
           nTemp=m_nPageCount 
		   response.write "&nbsp;"  
           response.write("[<a class=gbhui href='"&szTemp&nTemp&"'>尾  页</a>]")

    end if %>
                      </td>
                    </tr>
                    <tr> 
                      <td class="gb" align="center" height="10"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><img src="pic/1end.gif"></td>
        </tr>
      </table>
	  
    </td>
    <td width="11"></td>
  </tr>
</table>
<!--#include file="eend.asp" -->
</body>
</html>
