<!--#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>
<link href="Images/index.css" rel="stylesheet" type="text/css" />
<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><DIV id=wrap>
<!--#include file="top.asp"-->
  <table width="1003" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
      <td width="230" valign="top"><!--#include file="left.asp"--></td>
      <td valign="top"><table style="MARGIN-TOP: 12px" cellspacing="0" cellpadding="0" width="762" 
      border="0">
          <tbody>
            <tr>
              <td width="175" 
          background="Images/index_34-.gif" 
          bgcolor="#79c501"><table height="23" cellspacing="0" cellpadding="0" width="80%" 
            align="center" border="0">
                  <tbody>
                    <tr>
                      <td style="PADDING-TOP: 6px" align="left"><span class="hz"><span 
                  class="lf14"><%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("" & rsc("name") & "")
end if
rsc.movenext
wend
rsc.close
set rsc=nothing
%></span></span></td>
                    </tr>
                  </tbody>
              </table></td>
              <td bgcolor="#79c501">&nbsp;</td>
              <td width="306"><img height="31" alt="" 
            src="Images/index_36-.gif" 
            width="306" /></td>
            </tr>
          </tbody>
        </table>
        <table width="762" height="160" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0" class="tab">
              <tr>
                <td width="560" height="28" align="center" class="MenuGreenB14"><span class="Orange" style="LINE-HEIGHT: 20px"><%=Rs("newsname")%></span></td>
              </tr>
              <tr>
                <td height="28"><table width="95%" height="126" border="0" align="center" cellpadding="0" cellspacing="0"  class="ziti">
                    <tr>
                      <td height="27" colspan="2" align="center" valign="middle" class="txt3">发布时间: <%=Rs("sj")%>&nbsp;&nbsp;&nbsp;分类：<%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
%></td>
                    </tr>
                    <tr>
                      <td height="69" colspan="2" align="left" valign="top" class="bodyin"><%=Rs("body")%> </td>
                    </tr>
                    <tr>
                      <td width="76%" height="30" align="center" valign="bottom" class="txt3"><%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%></td>
                      <td width="24%" height="30" align="center" valign="bottom" class="txt3"><a href="javascript:history.go(-1)">返回上一页 </a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <!--#include file="foot.asp"-->
</DIV>
</body>
</html>
