📄 m_upuser.asp
字号:
<!-- #include file="share.asp" -->
<% on error resume next %>
<html>
<head>
<title>[xframe]升级用户权限</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../blue.css" type="text/css">
<style type="text/css">
<!--
.hand { cursor: hand }
-->
</style>
<script language="javascript">
function centwindow(){
window.moveTo((screen.width-340)/2,(screen.height-200)/2-80);
window.setTimeout("window.close();",5000);
}
</script>
</head>
<body bgcolor=#ffffff leftmargin="0" topmargin="0" background="../images/bbs_06bg.gif" onload="centwindow()">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr align="left" valign="top">
<td width="100%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center">
<%
dim confirm
confirm=request.form("confirm")
if confirm<>"yes" then
%>
<br><br><b>确认要<font color=GREEN>升级</font>这个用户的权限吗?</b><br><br><br><br>
<form name="confirmfrm" method="POST" action="M_upuser.asp">
<input type="submit" name="yesbtn" value="YES">
<input type="button" name="nobtn" value="NO" onclick="window.close();">
<input type="hidden" name="confirm" value="yes">
<input type="hidden" name="uid" value="<%=request("uid")%>">
</form>
<%
else
uid=request.form("uid")
if uid="" then
response.write "未知的用户,不可操作。"
else
sql="update userinfo set authority=1 where uid='"&request.form("uid")&"'"
'response.write sql
conn.execute(sql)
if conn.errors.count > 0 then
response.write "<font color=red>Error!</font> "
for i=0 to conn.errors.count-1
response.write conn.errors(i).description&"<br>"
next
%><br><input type="button" name="closebtn" value=" Close " onclick="window.close();"><%
else
%>
<br>成功升级用户[ <%=uid%> ]的权限!<br><br>
<input type="button" name="closebtn" value=" Close " onclick="window.close();">
<script language="javascript">window.opener.document.location.reload();</script>
<%
end if
end if
end if
conn.close
set conn=nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -