<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>天津二手网新闻浏览</TITLE>
<LINK href="images/5173_V3.0_css.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
</HEAD>
<%if IsNumeric(request.QueryString("id"))=False then
response.write("<script>alert(""非法访问!"");location.href=""index.asp"";</script>")
response.end
end if
dim id
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""非法访问!"");location.href=""index.asp"";</script>"
end if%>
<%dim newsid
n_id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where n_id="&n_id,conn,1,3
rs("hits")=rs("hits")+1
rs.update
%>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>										
function DoWhiteSpace(str)												
	DoWhiteSpace = Replace((Replace(str, vbCrlf, "<br>")), chr(32)&chr(32), "&nbsp;&nbsp;")			
End Function														
</SCRIPT>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE id=__01 height=548 cellSpacing=0 cellPadding=0 width=778 align=center 
border=0>
  <TBODY>
  <TR><TD><a href="default.asp"><IMG height=45 alt="" src="images/reg_01.gif" width=778 border=0></a></TD></TR>
  <TR><TD><IMG height=153 alt="" src="images/news.gif" width=778></TD></TR>
  <TR><TD height=328 align="center" valign="top" background="images/reg_03.gif">
  <table width="95%" border="0">
  <tr>
    <td height="41" align="center"><font color="666666"><%=rs("n_title")%></font></td>
  </tr>
  <tr>
    <td height="40" align="center"><font color="666666">发布人：<%=trim(rs("n_author"))%>&nbsp;&nbsp;&nbsp;发布时间：<%=year(rs("n_date"))&"年"&month(rs("n_date"))&"月"&day(rs("n_date"))&"日"%>&nbsp;&nbsp;&nbsp;此新闻已被浏览 <font color=red><%=rs("hits")%></font> 次</font></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#cccccc"></td>
  </tr>
    <tr>
    <td height="5">&nbsp;</td>
  </tr>
  <tr>
    <td><font color="666666"><%=DoWhiteSpace(trim(rs("n_content")))%></font></td>
  </tr>
  <tr>
    <td align="center"><a href='javascript:window.close()'>点击关闭窗口</a></td>
  </tr>
</table>

  </TD>
  </TR>
  <TR>
    <TD><IMG height=22 alt="" src="images/reg_04.gif" width=778></TD></TR></TBODY></TABLE><!--1.22-->
</BODY></HTML>
<%rs.close
set rs=nothing%>
