index.asp

来自「一个不错的企业网站」· ASP 代码 · 共 41 行

ASP
41 行
字号
<!--#include file="inc/config.asp"-->
<!--#include file="mdb/home_mdb.asp"-->
<!--#include file="inc/format.asp"-->
<!--#include file="inc/error.asp"-->
<!--#include file="inc/inc.asp"-->
<!--#include file="inc/indexnew.asp"-->
<!--#include file="inc/index_body.asp"-->
<%
stats="首页"
dim founderr,errmsg
founderr=false
errmsg=""

if request("page")<>"" then
  if not isInteger(request("page")) then
    founderr=true
    errmsg=errmsg+"<br>"+"<li>非法的日记id参数。"
  end if
end if

if founderr then
  call diserror()
  response.end
else
sql="select articlecount,softcount,djcount,newscount,piccount,counter from allcount"
set rs=conn.execute(sql)
articlecount=rs("articlecount")
softcount=rs("softcount")
djcount=rs("djcount")
newscount=rs("newscount")
piccount=rs("piccount")
counter=rs("counter")
sql="UPDATE allcount  SET counter = counter + 1"
conn.execute (sql)
rs.close
set rs=nothing
call head()
call index_body()
call footer()
end if
%>

⌨️ 快捷键说明

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