⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m_downuser.asp

📁 三鸟个人网站源码。
💻 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=RED>降低</font>这个用户的权限吗?</b><br><br><br><br>
						<form name="confirmfrm" method="POST" action="M_downuser.asp">
							<input type="submit" name="yesbtn" value="YES">&nbsp;&nbsp;&nbsp;&nbsp;
							<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 + -