set.asp

来自「购物系统(本版为正式商业版」· ASP 代码 · 共 70 行

ASP
70
字号
<!--#include file="conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="../fuction.asp"-->
<%id=nosql(int(request.querystring("id")))
bid=nosql(int(request.querystring("bid")))
url=Request.ServerVariables("HTTP_REFERER")
 username=nosql(session("username"))
password=nosql(session("userpassword"))
manbid=nosql(int(session("manbid") ))
if username="" or password="" then
response.redirect"login.asp"
end if

if manbid=bid or manbid=20000 then

action=request.querystring("action")
if action="gd" then
conn.execute("update book set gd=2 where id="&id&"") 
response.write"<script language='javascript'>alert('总固顶操作成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="gd1" then

conn.execute("update book set gd=1 where id="&id&"") 
response.write"<script language='javascript'>alert('固顶操作成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="nogd" then

conn.execute("update book set gd=0 where id="&id&"") 
response.write"<script language='javascript'>alert('取消总固顶成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="nogd1" then

conn.execute("update book set gd=0 where id="&id&"") 
response.write"<script language='javascript'>alert('取消固顶成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="lock" then

conn.execute("update book set lock=1 where id="&id&"") 
response.write"<script language='javascript'>alert('帖子锁定成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
elseif action="nolock" then

conn.execute("update book set lock=0 where id="&id&"") 
response.write"<script language='javascript'>alert('取消锁定成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="jh" then

conn.execute("update book set good=1 where id="&id&"") 
response.write"<script language='javascript'>alert('设置精华成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"

elseif action="nojh" then

conn.execute("update book set good=0 where id="&id&"") 
response.write"<script language='javascript'>alert('取消精华成功!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
end if

else
response.write"<script language='javascript'>alert('你没权限!')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end 
end if 
%> 

⌨️ 快捷键说明

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