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

📄 m_deluser.asp

📁 三鸟个人网站源码。
💻 ASP
字号:
<!-- #include file="top.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="760" border="0" align="center" cellpadding="0" cellspacing="3">
  <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>确认要删除这个用户吗?</b><br>此操作不会删除任何文章,但用户删除之后不能恢复。<br><br><br>
						<form name="confirmfrm" method="POST" action="M_deluser.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="delete from userinfo 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
							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 + -