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

📄 news.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--
┌─9911.com.cn────────────┐
│  动感购物 WWW.9911.com.cn 版权所有  │
│  动感购物2005Vb  联系:web@snsn.net │
└───────────9911.com.cn──┘
-->
<!--#include file="../conn.asp"-->
<!--#include file="../webconfig.asp"-->
<!--#include file="../fuction.asp" -->
<!--#include file="webconfig.asp"-->
  <%if Not isChkInteger(request.QueryString("id")) then%>
  <script language=javascript>
		alert("参数错误!");
		window.close();
	            </script>
  <%
	response.end
end if
set news=server.CreateObject("adodb.recordset")
if request.QueryString("action")="next" then
news.open "select top 1 * from shop_news where newsid < "&nosql(request.QueryString("id")),conn,1,3
elseif request.QueryString("action")="Previous" then
news.open "select top 1 * from shop_news where newsid > "&nosql(request.QueryString("id")),conn,1,3
else
news.open "select * from shop_news where newsid="&nosql(request.QueryString("id")),conn,1,3
end if
if news.EOF or news.bof  then
response.write"<SCRIPT language=JavaScript>alert('对不起,已经到顶了!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
end if
if news.recordcount=0 then 
		%>
  <script language='javascript'>alert('新闻调用错误,请返回!');window.location.href='index.asp';</script>
  <%
end if
		if news("iuser")=1 and session("username")="" then
		response.write"<SCRIPT language=JavaScript>alert('对不起,该新闻为会员可见请登录后查看!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
		end if
news("viewcount")=news("viewcount")+1
news.update
%>
<html>
<head>
<title><%=webname%>--新闻中心</title>
<html>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style type="text/css">
<!--
.style2 {color: #0000FF}
.style3 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
</head>
<script language=javascript>
function change_size(strt)
{
  var font_size=14;
  switch (strt)
  {
    case 'big':
      font_size=16;
      break;
    case 'normal':
      font_size=14;
      break;
    case 'small':
      font_size=12;
      break;
  }
  document.all.remark_view.style.fontSize=font_size+'px';
}
</script>
<body leftmargin=0 topmargin=0 marginwidth="0" marginheight="0"><!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<!--#include file="../webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
  <tr>
    <td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
    <td valign="bottom">您现在的位置是:<a href="<%=weburl%>"><%=webname%></a> -> <a href="/news/">新闻中心</a> -> 查看新闻</td>
    <td valign="bottom"> </td>
  </tr>
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
</table><%news_id=request.QueryString("id")%>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><!--#include file="news_left.asp"--></td>
    <td valign="top"><table width="730"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">
            <%=newsd5%>
        </div></td>
      </tr>
    </table>
    <!--#include file="top.asp"--><div align="center">

  <table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="8"></td>
    </tr>
  </table>
  
  <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="a1">
      <td height="30" style="table-layout:fixed;word-break:break-all">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td height="30"><span class="style3"><%=trim(news("newsname"))%></span>                <%if news("tp")=0 then%>                <img src="../img/img.gif" width="13" height="13">                <%end if%>                <%if news("newstop")=0 then%>
                <font color="#FF0000">顶</font>                <%end if%>                <%if news("newstj")=0 then%>
                <span class="style2">荐</span>                <%end if%></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#CCCCCC"></td>
          </tr>
      </table></td>
    </tr><tr>
            <td height="35">发布人:<%=trim(news("addname"))%> 发布时间:<%=year(news("adddate"))&"年"&month(news("adddate"))&"月"&day(news("adddate"))&"日"%> 此新闻已被浏览 <font color=red><%=news("viewcount")%></font> 次 
   </td>
    </tr>
          <tr>
            <td><%if newsd6="" then%><font id=remark_view>
&nbsp;&nbsp;&nbsp;&nbsp;<%=Replace(news("newscontent"),chr(13),"<br><br>&nbsp;&nbsp;&nbsp;")%></font>   </td>
          </tr>
                    <tr>
                      <td colspan="2" align="left" class="lh15"><%else%>
                          <table border=0 cellspacing=0 cellpadding=0 align=right>
                            <tr>
                              <td> <%=newsd6%> </td>
                            </tr>
                          </table>
                    <font id=remark_view><%=Replace(news("newscontent"),chr(13),"<br><br>&nbsp;&nbsp;&nbsp;")%></font> </td>
                      <%end if%></tr>
                    <tr>
     
    <tr>
      <td height="30" bgcolor="#FFFFFF"></td>
    </tr>
    <tr>
            <td height="1" bgcolor="#cccccc"></td>
          </tr>
    <tr>
      <td height="32" valign="bottom" bgcolor="#FFFFFF">        【<a href='javascript:window.close()'>关闭窗口</a>】·【<a href="javascript:;" onclick="javascript:change_size('big');">大</a> <a href="javascript:;" onclick="javascript:change_size('normal');">中</a> <a href="javascript:;" onclick="javascript:change_size('small');">小</a>】·【<a href="#" onClick="javascript:window.open('newstj.asp?id=<%=news("newsid")%>','pingluntj','width=325,height=200,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no')">推荐给我的好友</a>】·【<a href="javascript:;" onclick="javascript:window.print();">打印</a>】·【<a href="#top">顶部</a>】·【<a href="?action=Previous&id=<%=news("newsid")%>">上一篇</a>】·【<a href="?action=next&id=<%=news("newsid")%>">下一篇</a>】</td>
    </tr>
  </table>
  <br>
  <%news.close
set news=nothing%>
  <table width="730"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><div align="center">
          <%=newsd7%>
      </div></td>
    </tr>
  </table>
</div></td>
  </tr>
</table>
<!--#include file="../copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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