📄 admin_authorsave.asp
字号:
<!--#include file="../conn.asp"--><!--#include file="../inc/config.asp"-->
<!-- #include file="session.asp" -->
<%
page=replace(trim(request("page")),"'","")
id=request.QueryString("id")
act=request("act")
if act="lock" then
set rs=server.CreateObject("ADODB.RecordSet")
sql="select author_lock from [author] where author_id="&id
rs.open sql,conn,1,3
if not rs.eof then
if rs("author_lock")=0 then
rs("author_lock")=1
else
rs("author_lock")=0
end if
rs.update
end if
rs.close
set rs=nothing
elseif act="author" then
set rs=server.CreateObject("ADODB.RecordSet")
sql="select GOauthor from [userinfo] where authorid="&id
rs.open sql,conn,1,3
if not rs.eof then
rs("GOauthor")=0
rs.update
end if
rs.close
set rs=nothing
set rs=server.CreateObject("ADODB.RecordSet")
sql="select author_addpost,author_lock from [author] where author_id="&id
rs.open sql,conn,1,3
if not rs.eof then
rs("author_addpost")=0
rs.update
end if
rs.close
set rs=nothing
elseif act="goauthor" then
set rs=server.CreateObject("ADODB.RecordSet")
sql="select GOauthor from [userinfo] where authorid="&id
rs.open sql,conn,1,3
if not rs.eof then
rs("GOauthor")=1
rs.update
end if
rs.close
set rs=nothing
set rs=server.CreateObject("ADODB.RecordSet")
sql="select author_writing,author_addpost,author_lock from [author] where author_id="&id
rs.open sql,conn,1,3
if not rs.eof then
rs("author_writing")=""
rs("author_addpost")=1
rs("author_lock")=0
rs.update
end if
rs.close
set rs=nothing
if makeJS=1 then
temauthoradd(authorNum)
end if
end if
conn.close
set conn=nothing
response.write ("<script>opener.location.reload();</script><script language=javascript>window.alert('操作成功!');javascript:window.close();</script>")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -