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

📄 shownews.asp

📁 功能强大的一个b/s工作站
💻 ASP
字号:
<!--#include file="config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="error.asp"-->
<!--#include file="format.asp"-->
<!--#include file="lib/incjs.asp"-->
<!--#include file="lib/inctop.asp"-->
<!--#include file="lib/shownews_body.asp"-->
<!--#include file="lib/nav.asp"-->
<!--#include file="lib/incfooter.asp"-->
<%
stats="杂七零八"
dim founderr,errmsg
founderr=false
errmsg=""

if request.querystring("news_id")="" then
  founderr=true
  errmsg=errmsg+"<br>"+"<li>请指定操作的对象!"
else
  if not isInteger(request.querystring("news_id")) then
    founderr=true
    errmsg=errmsg+"<br>"+"<li>非法的新闻id参数。"
  end if
end if

if founderr then
  call diserror()
  response.end
else
call top()
call news_nav()
rcount
call shownews_body()
call endpage()
end if

function rcount()
OPENnews  
set rscount=conn.execute("select * from news")
sql="UPDATE news SET news_count = news_count + 1 where news_id="&request.querystring("news_id")
conn.execute (sql)
rscount.close
set rscount=nothing
end function
%>

⌨️ 快捷键说明

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