<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp" -->
<html>
<head>
<title><%=webname%>--商城新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="webtop.asp"-->
<div align="center">
<TABLE id=table1 style="MARGIN: 0px auto; BORDER-BOTTOM: #ffffff 0px solid" 
height="100%" cellSpacing=0 borderColorDark=#FFFFFF cellPadding=0 width=976 
borderColorLight=#CECECE border=1>
  <TBODY>
  <TR><!--sart left-->
    <TD vAlign=top width=234 bgcolor="#F1F1F1">
      <p align="center"><!--#include file="left.asp"--></TD><!---end left--><!--start right-->
          <td valign="top">
            <br>
            <%dim newsid
newsid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
		if Not isChkInteger(request("id")) then
	%>
            <script language=javascript>
		alert("参数错误！");
		window.close();
	</script> 
            <%
	response.end
end if
rs.open "select * from shop_news where newsid="&newsid,conn,1,3
			if rs.recordcount=0 then 
		%>
<script language='javascript'>alert('新闻调用错误，请返回！');window.location.href='index.asp';</script> 
            <%
		end if
rs("viewcount")=rs("viewcount")+1
rs.update
%>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" id="table2">
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="efefef"><strong>&nbsp;&nbsp;<img src="images/dot_03.gif" width="9" height="9" border="0"> 
                  商城新闻 &gt;&gt;</strong><b> <%=trim(rs("newsname"))%></b></td>
              </tr>
              <tr> 
                <td height="1" bgcolor="cccccc"><img src="images/dot_03.gif" width="9" height="1" border="0"></td>
              </tr>
            </table>
            <table width="550" border="0" align="center" cellpadding="0" cellspacing="0" id="table3">
              <tr class="a1"> 
                <td height="30" colspan="2" style="table-layout:fixed;word-break:break-all"> 
                  <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" id="table4">
                    <tr> 
                      <td>&nbsp;<b><%=trim(rs("newsname"))%></b></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td colspan="2" bgcolor="#FFFFFF" style="table-layout:fixed;word-break:break-all"> 
                  <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" id="table5">
                    <tr> 
                      <td><%=trim(rs("newscontent"))%></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5" colspan="2" bgcolor="#FFFFFF"></td>
              </tr>
              <tr> 
                <td width="33%" valign="bottom" bgcolor="#FFFFFF"> 
                  <div align="center"><a href='javascript:window.close()'>点击关闭窗口</a></div></td>
                <td width="67%" bgcolor="#FFFFFF" style="PADDING-LEFT: 20px">发布人：<%=trim(rs("addname"))%><br>
                  发布时间：<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><br>
                  此新闻已被浏览 <font color=red><%=rs("viewcount")%></font> 次</td>
              </tr>
            </table>
            <br> 
            <%rs.close
set rs=nothing%>
          </td>
    <!--end right--></TR></TBODY></TABLE></div>

<!--#include file="copyright.asp"-->
</body>
</html>
