⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news.asp

📁 网络商店源码 实现商品浏览 购物车 后台管理等
💻 ASP
字号:

<!--#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">
<!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<!--#include file="webtop.asp"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
    <td> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="168" valign="top"> 
            <!--#include file="left.asp"-->
          </td>
          <td width="1" bgcolor="C9C9C8"><img src="images/block.gif" width="1" height="1"></td>
          <td valign="top"> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td background="images/bg1_4color_.jpg"><img src=images/bg1_4color_.jpg" width="1" height="3"></td>
              </tr>
            </table>
            <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">
              <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="90%"  border="0" align="center" cellpadding="1" cellspacing="1">
              <tr>
                <td colspan="2"><table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td>&nbsp;<b><%=trim(rs("newsname"))%></b></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2"><table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                    <td><%=trim(rs("newscontent"))%></td>
                  </tr>
                </table></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="5" colspan="2"></td>
              </tr>
              <tr>
                <td width="32%" valign="bottom"><div align="center"><a href='javascript:window.close()'>点击关闭窗口</a></div></td>
                <td width="68%"> 发布人:<%=trim(rs("addname"))%><br>
                 发布时间:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><br>                  
				 此新闻已被浏览 <font color=red><%=rs("viewcount")%></font> 次</td>
              </tr>
            </table>
			<%rs.close
set rs=nothing%>
</td>
        </tr>
      </table></td>
    <td width="1" bgcolor="C9C9C8"><img src="../images/block.gif" width="1" height="1"></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -