<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--新闻查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>TD {
	FONT-SIZE: 12px; COLOR: #333333; LINE-HEIGHT: 18px
}
A:link {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ff6600; TEXT-DECORATION: underline
}
A:visited {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ff6600; TEXT-DECORATION: underline
}
A:hover {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ff6600; TEXT-DECORATION: none
}
.bd {
	BORDER-RIGHT: #666666 1px dotted; BORDER-TOP: #666666 1px dotted; BORDER-LEFT: #666666 1px dotted; BORDER-BOTTOM: #666666 1px dotted
}
</STYLE>
<!--网页的背景是可以设置的 -->
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>
<%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
newsid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_news where newsid="&newsid,conn,1,3
rs("viewcount")=rs("viewcount")+1
rs.update
%>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=900 align=center border=0>
  <TBODY>
  <TR>
    <TD align=middle><!--#include file=top.asp--></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=5 cellPadding=5 width=900 align=center bgColor=#ffffff 
border=0>
  <TBODY>
  <TR>
    <TD class=bd vAlign=top align=middle width=760><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
<td align="center" height="30"><font color=#ff0000><b><%=trim(rs("newsname"))%><br>
</b></font>
  
  <font color=#ff0000><b>  </b></font></td>
</tr>
<tr bgcolor="#ffffff"> 
<td height="100" valign="top"> 
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
<tr> 
<td colspan="2">
  <table width="100%" border="0">
    <tr>
      <td><%=trim(rs("newscontent"))%></td>
    </tr>
  </table>
  <div align="right"><a href="zhuanti.asp">更多新闻...</a></div></td>
</tr>
<tr> 
<td class=table-shang width="80%" >发布人：<%=trim(rs("addname"))%><br>
发布时间：<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><br>
此新闻已被浏览 <font color=red><%=rs("viewcount")%></font> 次</td> 
<td class=table-shang width="20%" valign="bottom"> <div align="center"><a href='javascript:window.close()'>点击关闭窗口</a></div></td>
</tr>
</table>
</td>
</tr>
</table>
      </TD>
    </TR></TBODY></TABLE><%rs.close
set rs=nothing%>
</DIV>
<div align="center">
  <center>
  <table border="0" width="900">
    <tr>
      <td width="100%"><!--#include file=copyright.asp--></td>
    </tr>
  </table>
  </center>
</div>
</BODY></HTML>
