<!--#include file="conn.asp"-->
<%
If request.QueryString("ID") = "" Or Not IsNumeric(request.QueryString("ID")) Then
    response.Write "<script language=javascript>alert('非法操作');window.history.back();</script>"
    response.End
End If
%>
<!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><%=site("site_name")%>-<%=site("site_keywords")%></title>
<meta name="keywords" content="<%=site("site_keywords")%>" />
<meta name="description" content="<%=site("site_description")%>" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="header.asp"-->
<div id="content" class="layout">
  <!--#include file="news_left.asp"-->
  <div id="right">
    <div class="right_title">
      <%
id = request("id")
Set rs = Server.CreateObject("ADODB.RecordSet")
sql = "select * from news where id="&id
rs.Open sql, conn, 1, 3
If rs.EOF And rs.bof Then
    Response.Write "<script language='javascript'>alert('无效参数值!');document.location.href('news.asp');</script>"
Else
%>
      <h2><span class="tag">more</span>新闻详情</h2>
    </div>
    <div class="right_body">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="28"><h4><%=rs("title")%></h4></td>
        </tr>
        <tr>
          <td style="border:1px dashed #CCC; border-top:none; border-left:none; border-right:none; margin-top:5px; padding-right:5px;" align="right">发布者：<%=rs("author")%>　日期：<%=left(rs("data"),10)%>　点击次：<font color='#ff0000'><%=rs("hits")%></font></td>
        </tr>
        <tr>
          <td height="10"></td>
        </tr>
        <tr>
          <td><%=rs("body")%></td>
        </tr>
      </table>
      <%
rs("hits") = rs("hits") + 1
rs.update
End If
rs.Close
Set rs = Nothing
%>
    </div>
  </div>
</div>
<div class="clear"></div>
<!--#include file="foot.asp"-->
</body>
</html>
