📄 admin_admin_delete.asp
字号:
<!--#include file="mdb.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录,或者超时了!请重新登录');this.location.href='admin_login.asp';</script>")
Response.End
End if
dim id,action
id=request("id")
if Session("level")<2 then
Call outcome("你的权限不足")
Response.End
End if
if id="" then
Call outcome("非法操作")
Response.End
end if
if Cint(id)=Cint(Session("adminid")) then
Call outcome("此帐号正在使用")
Response.End
end if
if request("action")="delete" then
conn.execute "delete from O3888_admin where id="&id
Call outcome("删除管理员成功")
Response.End
end if
sql="select * from O3888_admin where id="&id
set rs=conn.execute(sql)
if rs.eof and rs.bof then
rs.close
set rs=nothing
Call outcome("无此管理员")
Response.End
else
username=rs("username")
logincount=rs("logincount")
if rs("level")<2 then
level="普通管理员"
else
level="<font color=red>高级管理员</font>"
end if
rs.close
set rs=nothing
end if
%>
<html>
<head>
<title>删除管理员信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK REL='stylesheet' HREF='css.css' TYPE='text/css'>
</head>
<body>
<form action='admin_admin_delete.asp?id=<%=id%>' method=post>
<table width='55%' border='0' cellspacing='1' cellpadding='8' align='center' class='a'><p> </p>
<tr>
<td width='20%'>管理员帐号</td>
<td width='80%'><%=username%></td>
</tr>
<tr>
<td>管理员权限</td>
<td><%=level%></td>
</tr>
<tr>
<td>登陆次数</td>
<td><%=logincount%></td>
</tr>
<tr>
<td align='center' colspan="2"><input type='submit' class='d' value='删 除'> <input type="button" name="Submit4" value="返 回" class='d' onClick="history.back()"></td>
</tr>
<input type='hidden' name='action' value='delete'>
</form>
<tr>
<td align='center' colspan="2">[<A href='http://www.03888.com/' target=_blank>03888网址大全</A>]</td>
</tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -