<!--#include File="inc/newsconn.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=7">
<title><%=Rs("newsname")%> - <%=List("WebName")%></title>
<meta name="keywords" content="<%=Rs("newsname")%>" />
<meta name="description" content="<%=Rs("newsname")%>" />
<link href="css/master.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(function() {
  Cms.siteFlow("",location.href, document.referrer);
});
</script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery1.3.2.js"></script>
<script type="text/javascript" src="js/banner.js"></script>
</head>
<body id="index">
<div class="pageWidth" id="box_root">
  <div id="box_main">
<!--#include File="top.asp" --></div><div id="index-05"></div>
<div class="ny-middles" >
<div class="ny-fenlei0">
    <div class="right_menu">      
        <ul>
        <div id="index-aa"><span>新闻资讯</span></div>
<% set rsxw=server.CreateObject("adodb.recordset")
rsxw.open"select top 10 * from (select * from newsclass order by px_id asc)",conn,1,1
if not rsxw.eof or not rsxw.bof then
do while not rsxw.eof 
%>
<li><a href="newsall.asp?classid=<%=rsxw("id")%>"><%=left(rsxw("name"),12)%></a></li>
<%if not rsxw.eof or not rsxw.bof then rsxw.movenext
loop
end if
rsxw.close
set rsxw=nothing
%>               </ul>	<img src="images/r-bottom.jpg" />
    </div> 
  <!--#include File="left.asp" -->  
</div>
 <div id="ny-mid">
  <div class="mianbao"> <span>当前位置：<a href='/'>首页</a> > <%set rsc=server.CreateObject("adodb.recordset") 
rsc.open "select * From newsClass ",conn,1,1
while not rsc.eof
if CInt(rs("classid"))=rsc("id") then
response.Write("<a href=""newsall.asp?classid=" & rsc("id") & """>" & rsc("name") & "</a>")
end if
rsc.movenext
wend
rsc.close
set rsc=nothing
%> > <%=Rs("newsname")%></span>
              
       <div style="margin-left:15px; text-align:left;"><%set rsc=server.CreateObject("adodb.recordset") 
rsc.open "select * From newsClass ",conn,1,1
while not rsc.eof
if CInt(rs("classid"))=rsc("id") then
response.Write("<a href=""newsall.asp?classid=" & rsc("id") & """>" & rsc("name") & "</a>")
end if
rsc.movenext
wend
rsc.close
set rsc=nothing
%></div>
           </div>
   <div class="content"  style="float:left; width:750px;">    
    <div style="padding-left:10px;padding-right:10px; padding-top:10px; text-align:left;">
        <h3 align=center><%=Rs("newsname")%></h3>
        <div style="padding-left:10px; padding-right:10px;">
<%=Rs("body")%><br><p>
<%set rs=conn.execute("select top 1 id,newsname from news where id<"&rs("id")&" order by id desc")
if not rs.eof or not rs.bof then %>
<a href="news.asp?id=<%=rs("id")%>">上一篇:<%=rs("newsname")%></a>
<%else%>
<a href="javascript:alert('这已经是第一条记录了！')">没有上一篇了 </a>
<%rs.close
	set rs=nothing
	end if%>
	 <%set rs1=conn.execute("select top 1 id,newsname from news where id>"&id&" order by id asc")
if not rs1.eof or not rs1.bof then%>
<a class='next' href="news.asp?id=<%=rs1("id")%> ">下一篇:<%=rs1("newsname")%></a>
<%else%>
<a href="javascript:alert('这已经是最后一条记录了！');">没有下一篇了</a>
<%rs1.close
set rs1=nothing
end if%></p>
        </div>
  </div>    
 </div>
 <img src="images/rnr-bottom.jpg" />
</div>
<div style="clear:both;"></div>
</div>
<div id="index-11"></div>
<div id="index-12">
<!--#include File="foot.asp" --></div></div>
</body>
</html>