?? 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 + -