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

📄 shopxp_news.asp

📁 IMPORTANT YOU SHOUD LOAD IT DOWN FOR USING
💻 ASP
字号:
<!--#include file="conn_xp/xp.asp"-->
<!--#include file="conn_xp/shopxp.asp"-->
<%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 shopxp_news where newsid="&newsid,conn,1,3
If rs.eof Then
Response.Write "<script Language=Javascript>alert('没有此ID的新闻!!');location.href = 'javascript:history.back()';</script>"
Response.End
end if
%>
<html><head><title><%=webname%>--<%=trim(rs("newsname"))%></title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img_shopxp/css.css" rel="stylesheet" type="text/css">
<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>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onmouseover="window.status='〖<%=webname%>〗<%=weburl%>如果您喜欢本站,别忘了把本站介绍给您的好友哦!';return true">
<!--#include file="xptop.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=996 align=center border=0>
  <TBODY>
    <TR>
      <td width="1" height="229" background="img_shopxp/xiao/bgbg.gif"></td>
      <TD width=892 align=left vAlign=top class=b><table width="100%" height="234"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="200" valign="top"><div align="center">
            <!--#include file="xpinfo/shopxp_wzleft.asp" -->
          </div></td>
          <td width="1" background="img_shopxp/xiao/bgbg.gif"></td>
          <td width="684" valign="top">
                <table width="95%" height="213" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="100%" align="center" valign="top"><%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shopxp_news where newsid="&newsid,conn,1,3
rs("viewcount")=rs("viewcount")+1
rs.update %>
                      <br>
                      <table width="680" height="161" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="138" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td rowspan="2"><table width="99%" border="0" cellspacing="0" cellpadding="0" class="12v">
                                    <tr>
                                      <td class="12v" ><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                                          <tr>
                                            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                 <TR>
          <TD height=30 vAlign=bottom borderColor=#ffffff><br><div align="center"><FONT><STRONG><FONT color=#003399 size=5><B><%=trim(rs("newsname"))%></B></FONT></STRONG> </FONT></div><br></TD></TR>
                           <tr>
                                                  <td height="97" valign="top"><table width="94%" border="0" align="center" cellpadding="1" cellspacing="1">
												    <TR>
          <TD height=1 bgColor=#cccccc></TD></TR>
        <TR>
          <TD height=35>发布人:<%=trim(rs("addname"))%> 发布时间:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%> 此新闻已被浏览 <FONT color=red>&nbsp;</FONT><font color=red><%=rs("viewcount")%></font> 次 </TD>
          </TR> 
                                                      <tr>
                                                        <td><FONT id=remark_view><BR><P><%=trim(rs("newscontent"))%></P></FONT></td>
                                                      </tr>
                                                                 <TR>
          <TD bgColor=#cccccc height=1></TD></TR>
        
		
		<TR>
          <TD vAlign=bottom bgColor=#ffffff height=32><p align="center"><br>
            【<A href="javascript:window.close()">关闭窗口</A>】·
			
				
				【<A onclick=javascript:window.print(); href="javascript:;">打印</A>】·
				【<A href="shopxp_news.asp?id=<%=newsid%>">顶部</A>】·
				【<a href="shopxp_news.asp?id=<%=newsid-1%>">上一篇</A>】·
				【<a href="shopxp_news.asp?id=<%=newsid+1%>">下一篇</A>】<br>
                <br>
                <br>
</p>            </TD></TR>
                                                     
                                                    </table>
													<br>                                                      </td>
                                                </tr>
                                            </table></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
              
		
                      </table>
                      <%rs.close
set rs=nothing%></td>
                  </tr>
              </table></td>
          <td width="1" background="img_shopxp/xiao/bgbg.gif"></td>
        </tr>
      </table></TD>
      <TD width=103 align=left vAlign=top class=b>&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="copyright_shopxp.asp" -->
</body>
</html>

⌨️ 快捷键说明

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