<!--#include file="../inc/conn.asp"-->
<script src="../manager/htmledit/showimg.js"></script>
<%
if request.querystring("id") then
set rs=server.createobject("adodb.recordset") 

rs.Open "select * From new where id="&Request.QueryString("id"),conn,1,3
  if not(rs.eof and rs.bof) then
   bianhao=rs("bianhao")
   title=rs("title")
   namee=rs("name")
   newtime=rs("newtime")
   newnr=rs("newnr")
   hotclick=rs("hotclick")
   rs("hotclick")=rs("hotclick")+1
   rs.update
   end if
  rs.close
  end if
 %>
<div align="center">
  <center>
<table border="0"  cellpadding="0" cellspacing="0" width="100%" >
  <tr>
    <th height="33" class="newsbot_line"><font color="#FF0000"><%=title%></font></th>
  </tr>
  <tr align="left"> 
   <td height="1" valign="middle" ></td>
  </tr>
  <tr>
    <td height="30" align="center" class="botline">作者：<%=namee%>&nbsp;&nbsp;发布时间：<%=newtime%>&nbsp;&nbsp;浏览次数：<%=hotclick%>&nbsp;&nbsp;</td>
  </tr>
    <tr align="left"> 
   <td height="5" valign="middle"></td>
  </tr>

  <tr>
    <td align="left" valign="top" height="1"><div><%=newnr%></div><br>
      </td>
  </tr>
  
<tr>
    <td height="1" align="center" bgcolor="#D0DFE9"></td>
  </tr> 
 
 <%
 rs.Open "select top 1 * From new where bianhao="&bianhao&" and id < "&cint(Request.QueryString("id"))&" order by id desc",conn,1,1
 if not rs.eof then
 %>
  <tr><td height="7" align="left"></td>
  </tr>
 
  <tr><td height="19" align="left">&nbsp;&nbsp;<b>下一条信息</b>:&nbsp;<a href="?id=<%=rs("id")%>"><%=rs("title")%></a></td>
  </tr>
 
 <% else %>
   <tr>
    <td height="20" align="left">&nbsp;&nbsp;<b>下一条信息</b>:暂无数据</td>
  </tr>
 <%end if
  rs.close
  %>  

<%
 rs.Open "select top 1 * From new where bianhao="&bianhao&" and id > "&cint(Request.QueryString("id"))&" order by id",conn,1,1
 if not rs.eof then
 %>
  <tr><td height="20" align="left">&nbsp;&nbsp;<b>上一条信息</b>:&nbsp;<a href="?id=<%=rs("id")%>"><%=rs("title")%></a></td>
  </tr>
 
 <% else %>
   <tr>
    <td height="20" align="left">&nbsp;&nbsp;<b>上一条信息</b>:暂无数据</td>
  </tr>
 <%end if
  rs.close
  %>  
  
</table>
</center>
</div>
