<!--#include File="inc/newsConns.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" />
<title><%=Rs("newsname")%> - <%=List("WebName")%></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/pagstyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/jquery-1.8.0.min.js"></script>
</head>

<body>
<body>
<!--#include File="top.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4">
  <tr>
    <td height="150" bgcolor="#EBEBEB"><table width="1200" border="0" cellpadding="0" cellspacing="0" class="table_box">
      <tr>
        <td align="left" ><span class="font34"><span id="Label1"><%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
%></span></span>&nbsp;&nbsp; </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="1200" border="0" cellpadding="0" cellspacing="0" class="table_box">
      <tr>
        <td align="left" height="42">当前位置：首页&nbsp;-&nbsp;<span id="Label3"><%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
%></span>&nbsp;-&nbsp;正文</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="1200" border="0" cellpadding="0" cellspacing="0" class="table_box">
  <tr>
    <td height="30" colspan="3" align="center">&nbsp;</td>
  </tr>
  <tr>
    <td width="850" align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_box">
      <tr>
        <td height="40" align="center"><strong class="font20"><span id="Label4"><%=Rs("newsname")%></span></strong></td>
      </tr>
      <tr>
        <td height="24" align="center" class="color2 hxbox1"><span id="Label5">录入:<%=Rs("user")%></span>&nbsp;|&nbsp;<span id="Label6">来源:<%=Rs("wzly")%></span>&nbsp;|&nbsp;<span id="Label7">添加时间:<%=Rs("sj")%></span></td>
      </tr>
      <tr>
        <td align="left" valign="top" style="line-height:24px" class="maxImg"><%=Rs("body")%></td>
      </tr>
      <tr>
        <td align="left" valign="top" style="line-height:24px" class="maxImg"><table width="90%" border="0" align="center" cellspacing="0">
          <tr>
            <td height="35" align="center" class="font16"><%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%>
	</td>
            <td height="30" align="center" class="font16"><%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>
          </tr>
        </table></td>
		
      </tr>
      <tr>
        <td align="left" valign="top"></td>
      </tr>
    </table></td>
    <td width="50" align="left" valign="top">&nbsp;</td>
    <td width="298" align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_box hxbox6">
      <tr>
        <td height="40" align="left" class="hxbox5"><strong class="font18">&nbsp;&nbsp;&nbsp;最新关注</strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="left" valign="top"><table id="DataList4" cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:collapse;">
            <% set rs=server.CreateObject("adodb.recordset")
rs.open"select top 10 * from (select * from news order by id desc)",conn,1,1
if not rs.eof or not rs.bof then
do while not rs.eof 
%>
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="30" align="left"><img src="images/s_left.gif" /> <a href="news.asp?id=<%=rs("id")%>"  target="_blank"  title="<%=rs("newsname")%>"><%=left(rs("newsname"),28)%></a></td>
                  </tr>
              </table></td>
            </tr>
            <%if not rs.eof or not rs.bof then rs.movenext
	loop
	end if
	rs.close
	set rs=nothing
	%>
        </table></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="left" valign="top" class="hxbox6"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="40" class="hxbox5"><strong class="font18">&nbsp;&nbsp;&nbsp;热点关注</strong></td>
            </tr>
          </table>
            <table id="DataList4" cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:collapse;">
              <% set rs=server.CreateObject("adodb.recordset")
rs.open"select top 10 * from (select * from news order by hits desc)",conn,1,1
if not rs.eof or not rs.bof then
do while not rs.eof 
%>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="30" align="left"><img src="images/s_left.gif" /> <a href="news.asp?id=<%=rs("id")%>"  target="_blank"  title="<%=rs("newsname")%>"><%=left(rs("newsname"),28)%></a></td>
                    </tr>
                </table></td>
              </tr>
              <%if not rs.eof or not rs.bof then rs.movenext
	loop
	end if
	rs.close
	set rs=nothing
	%>
            </table></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" colspan="3">&nbsp;</td>
  </tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
