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

📄 news.asp

📁 易和阳光购物商城 v1.3 | 功能简介 增加了防注入文件
💻 ASP
字号:

<!--#include file="Include/Iheeo_Conn.asp"-->
<!--#include file="Include/Iheeo_config.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 BJX_news where newsid="&newsid,conn,1,3
rs("viewcount")=rs("viewcount")+1
rs.update
%>
<html><head><title><%=trim(rs("newsname"))%> - <%=webname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="Include/Iheeo_head.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=970 align=center border=0>
  <TBODY>
    <TR>
      <TD class=b vAlign=top align=left>
<table width="970" align="center" border="0" cellspacing="0" cellpadding="0" class="wenbenkuang" bordercolor="#CCCCCC">
<tr>
<td valign="top" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
<td align="center" height="30"><font color=#ff0000><b><%=trim(rs("newsname"))%></b></font></td>
</tr>
<tr bgcolor="#ffffff"> 
<td height="100" valign="top"> 
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
<tr> 
<td colspan="2"><%=trim(rs("newscontent"))%></td>
</tr>
<tr> 
<td class=table-shang width="80%" >发布人:<%=trim(rs("addname"))%><br>
发布时间:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><br>
此新闻已被浏览 <font color=red><%=rs("viewcount")%></font> 次</td>
<td class=table-shang width="20%" valign="bottom"> <div align="center"><a href='javascript:window.close()'>点击关闭窗口</a></div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%rs.close
set rs=nothing%></TD>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="Include/Iheeo_service.asp"-->
<!--#include file="Include/Iheeo_foot.asp"-->
</body>
</html>

⌨️ 快捷键说明

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