<!--#include file="../conn.asp"-->
<%
'此页面为快速搜索页面
'点击查看新闻页面右边的快速搜索时使用


dim id
id = request.QueryString("id")
if isnumeric(id) = false or id = "" then id = 0
rs.open "select * from article where articleid = "& id &"",conn,1,3

if rs.eof then call wrong("未找到任何信息！")

dim info(9)
info(0) = rs("content")
info(1) = rs("title")
info(2) = rs("Nclassid")
info(3) = rs("classid")
info(4) = rs("Nkey")
info(5) = rs("hits")
info(6) = rs("dateandtime")
info(7) = rs("writer")
info(8) = rs("writefrom")
info(9) = rs("imgname")			'图片路径
rs("hits") = rs("hits") + 1
rs.update
rs.close
%>
<!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><%=info(1)%></title>
<link href="/css/comm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/comm.js"></script>
</head>

<body>
<div class="bodyDiv">
	<!--#include file="top.asp"-->
	<!--#include file="daohang.asp"-->
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="723" valign="top">
			  <div style="height:20px"></div>
			  <div style="font-size:14px; text-align:center; color:#000000;"><strong><%=info(1)%></strong></div> 
			  <div><hr style="height:2px" width="590" />       </div>
		<div style="text-align:center; line-height:20px; background-color:#F2F2F2; width:95%; margin:0 auto;">发布时间：<%=info(6)%>&nbsp;&nbsp;点击率：<%=info(5)%>&nbsp;&nbsp;作者：<%=info(7)%></div>
        <div style="line-height:180%; padding:20px; width:95%;">
			<div align="center"><%if info(9) <> "" then response.write "<img src='"& info(9) &"' />" %></div><%=info(0)%></div>
		
		<table width="95%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><!--------上一篇下一片-------->
        <div class="moren" style="margin-top:10px; padding:10px; margin-left:20px; background-color:#EEEEEE;">
        上一篇：
		<%
		set rssx = server.CreateObject("adodb.recordset")
		rssx.open "select top 1 title,articleid from article where articleid < "& id &" and Nclassid=19 and classid=16 order by articleid desc",conn,1,1
		if not rssx.eof then
			response.write "<a href='viewNews.asp?id="& rssx("articleid") &"'>"& rssx("title") &"</a>"
		else
			response.write "没有上一篇了"
		end if
		rssx.close
		%>
		<br />
        下一篇：
		<%
		rssx.open "select top 1 title,articleid from article where articleid > "& id &" and Nclassid=19 and classid=16 order by articleid asc",conn,1,1
		if not rssx.eof then
			response.write "<a href='viewNews.asp?id="& rssx("articleid") &"'>"& rssx("title") &"</a>"
		else
			response.write "没有下一篇了"
		end if
		rssx.close
		set rssx =nothing
		%>
        </div>  </td>
          </tr>
        </table>
        </td>
              <td width="215" height="24" valign="top" bgcolor="#F0F0F0"><!--#include file="left.asp"--><div style="margin-top:10px;"><!--#include file="anli.asp"--></div></td>
    </tr>
    </table>
    </td></tr></table>
<!--#include file="../model_bottom.asp"-->
</div>
</body>
</html>