?? news.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>
<%=Replace(news("newscontent"),chr(13),"<br><br> ")%></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> ")%></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 + -