📄 admin_save.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理中心 - 听雪资源网管理系统</title>
<meta copy="程序制作:听雪 www.26q.net">
<link rel="stylesheet" href="inc/admin.css" type="text/css">
</head>
<body>
<%
'==========================================
'程序名称:听雪资源网管理系统
'主页地址:http://www.26q.net
'最后修改时间:2005-07-20
'==========================================
if request("hxStudioDo")="搜索用户名" then
response.redirect "admin_list.asp?k="&request.form("k")&""
response.end
end if
if request("hxStudioID")="" then
response.write("<script>alert('错误:拜托~ 先选个用户再操作好不好!');history.go(-1)</script>")
response.end
end if
%>
<%Admin="UserAdmin"%>
<!--#include file="check.asp"-->
<!--#include file="mdb.asp"-->
<%
if request("hxStudioDo")="删除" then
conn.execute("delete from admin where admin_id in("&request("hxStudioID")&")")
conn.close
set conn=nothing
response.redirect "admin_list.asp?dj="&request("dj")&"&page="&request("page")&"&k="&request("k")&""
response.end
elseif request("hxStudioDo")="锁定" then
conn.execute("update admin set lock=1 where admin_id in("&request("hxStudioID")&")")
conn.close
set conn=nothing
response.redirect "admin_list.asp?dj="&request("dj")&"&page="&request("page")&"&k="&request("k")&""
response.end
elseif request("hxStudioDo")="激活" then
conn.execute("update admin set lock=0 where admin_id in("&request("hxStudioID")&")")
conn.close
set conn=nothing
response.redirect "admin_list.asp?dj="&request("dj")&"&page="&request("page")&"&k="&request("k")&""
response.end
elseif request("hxStudioDo")="等级" then
if request("newdj")="" then
response.write("<script>alert('错误:拜托~ 先选个级别好不好!');history.go(-1)</script>")
conn.close
set conn=nothing
response.end
end if
conn.execute("update admin set dj="&request("newdj")&" where admin_id in("&request("hxStudioID")&")")
conn.close
set conn=nothing
response.redirect "admin_list.asp?dj="&request("dj")&"&page="&request("page")&"&k="&request("k")&""
response.end
end if
%>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -