<!--#include file="conn.asp"-->
<%
if  request("nb")="" then
n=1
pid=2
end if
if request("nb")="2" then
n=2
pid=5
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎光临昆明人企业网站管理系统3.0[终极完美双语版]网站</title>
<link href="css.css" rel="stylesheet" type="text/css">
<Script language="JavaScript1.3" type="text/javascript">
<!--
function gopage()
{
	var o=document.getElementById("num");
	var num=o.value;
	if(!isNaN(parseInt(num)))
	{
		document.URL="news.asp?page="+num+"&nb=<%=trim(request("nb"))%>";
	}
}
//-->
</Script>
</head>

<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" bottommargin="0" class="bg1">
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.htm" -->
</td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="765" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr> 
          <td width="139" height="7"><img src="image/none.jpg" width="12" height="7"></td>
          <td width="4"></td>
          <td height="7"><img src="image/none.jpg" width="12" height="7"></td>
          <td height="7"><img src="image/none.jpg" width="12" height="7"></td>
          <td height="7"><img src="image/none.jpg" width="12" height="7"></td>
        </tr>
        <tr> 
          <td valign="top" class="nbg"> 
            <!--#include file="nleft.asp" -->
          </td>
          <td width="4" valign="top" background="image/dot.jpg" ><img src="image/dd.jpg" width="4" height="34"></td>
          <td width="28" valign="top" bgcolor="#FFFFFF" >&nbsp;</td>
          <td valign="top" > <table width="491" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> <!--#include file="b2.htm" --> </td>
              </tr>
              <td height="23"> </td>
              <tr> 
                <td height="315" align="right" valign="top" class="main"> 
                  <table width="97%" border="0" cellpadding="0" cellspacing="0" class="main">
<%
Set rs=Server.CreateObject("Adodb.RecordSet")
Sql="select * from xinwen where nb="&pid&" order by fbtime desc"
'response.Write sql
page=Request("page")
if page<>"" then 
 page=cdbl(page)
else
 page=1
end if
rs.PageSize=13
rs.open Sql,conn,1,1
Total_Page=rs.PageCount
if (rs.PageCount<page) then page=rs.PageCount
if (page<1) then  page=1
if not rs.eof then  rs.AbsolutePage=page
%>
<%if rs.bof and rs.eof then %>
                    <tr>
                      <td height="100" colspan="2"><div align="center">对不起，暂无数据信息！</div></td>
                    </tr>
<% else %>
<%
for i=1 to rs.pagesize
if rs.eof then
exit for
end if
%>
                    <tr> 
                      <td width="83%"><font color="#008000">·</font><a href="newsinfo.asp?nb=<%=request("nb")%>&id=<%=rs("id")%>"><%if len(rs("title"))>28 then%><%=left(rs("title"),28)%>..<%else%><%=rs("title")%><%end if%></a></td>
                      <td width="17%"><%=rs("fbtime")%></td>
                    </tr>
<%
rs.movenext
next 
end if
%>
                  </table>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td align="right">                <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" class="main4">
                  <tr>
                    <td width="92%"><div align="right">第<%=page%>页　共<%=rs.recordcount%>条　
                            <%
		if totalpage<>1 then
			if page>1 then
				response.Write("<a href='news.asp?page=1&nb="&trim(request("nb"))&"'>首页</a>　<a href='news.asp?page="&page-1&"&nb="&trim(request("nb"))&"'>上一页</a>")
			else
				response.Write("首页　上一页")
			end if
			
			if page<Total_Page then
				response.Write("　<a href='news.asp?page="&page+1&"&nb="&trim(request("nb"))&"'>下一页</a>　<a href='news.asp?page="&Total_Page&"&nb="&trim(request("nb"))&"'>未页</a>")
			else
				response.Write("　下一页　未页")
			end if
		end if
		%>
        　 转到：
        <input name="num" type="text" class="f1" id="num2" size="3" maxlength="5">
                    </div></td>
                    <td width="8%"><div align="right"><img src="image/go.jpg" width="27" height="23" id="btngo" onclick="gopage();" ></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table></td>
          <td width="90" align="right" valign="top"> 
            <!--#include file="right.htm" -->
          </td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td align="center" valign="top">
      <!--#include file="bottom.htm" -->
    </td>
  </tr>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
%>