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

📄 admin_user_del.asp

📁 jsp 同学录源码
💻 ASP
字号:
<%
'===================================================================
'= ASP FILENAME	: /admin/admin_use_delr.asp
'= CREATED TIME : Feb,08,2004
'= LAST MODIFIED: Feb,08,2004
'= VERSION INFO : CCASP Framework Ver 2.0.1 ALL RIGHTS RESERVED BY www.cclinux.com
'= DESCRIPTION  : 用户删除管理
'= Change Log:
'===================================================================
%>

<!-- #include file = "../inc/admin/include_admin_action_execute.asp" -->
<!-- #include file = "./admin_inc.asp" -->
<!-- #include file = "../inc/logic/logic_user.asp" -->
<!-- #include file = "../inc/inc_file_func.asp" -->
<!-- #include file = "../inc/logic/logic_config.asp" -->
<%
'========================================================
'==   Action参数设置
'========================================================
'== 页面名
Const CONST_PAGE_FILE	= "admin/admin_user_del.asp"

'== 页面标题/功能
Const CONST_PAGE_TITLE	= "用户管理"

'== 功能函数名字空间
Const CONST_ACTION_FUNC	= "DelUserCtl"

'== 相对根目录路径 
GBL_strHomeURL			= "../"

'== 页面构造
Call ActionBuild()

'== 请求校验与过滤
Call ActionExecFilterAdmin(CONST_PAGE_FILE,CONST_ACTION_FUNC)

'== 页面析构
Call ActionOver()
%>

<%
'=============== FUNCTION BODY BEGIN ===============================
'===================================================================
'= Function		: DelUserCtl()  
'= Time		    : Created At 2006-5-2
'= Input        : None
'= Output       : None
'= Description  : 删除用户
'===================================================================
Function DelUserCtl()
	Dim strIds
	Dim intPageNow,strFilePath

	If Request("med") = "acc" Then
		Call AccUserCtl()
		Exit Function
	End If

	If Request("med") = "master" Then
		Call MasterUserCtl()
		Exit Function
	End If

	If Request("med") = "unmaster" Then
		Call UnMasterUserCtl()
		Exit Function
	End If
	
	'== 服务器端数据校验
	If Not ServerDataCheck(arrUserDelDataChk) Then	Exit Function

	
	'== 获取表单数据
	strIds = Trim(Request.Form("selId"))
 
	'== 删除用户业务逻辑
	If Not RemoveUsersLogic(strIds) Then Exit Function

	'== 重新生成用户select html
	strFilePath = GBL_strHomeUrl & GBL_strHtmlFolder & "user_option.html"
	If Not MakeHtmlUserOptionLogic("",strFilePath) Then Exit Function 

	'== Get now page
	intPageNow = FmtFormData(Request("intPageNow"))

	'== 重新load系统内存
	If Not LoadParaLogic() Then
		Exit Function
	End If

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "所选用户及相关记录已被删除"
	strSuccUrl = "admin/admin_user_manage.asp?intPageNow=" & intPageNow
	Call SuccExecute(strHtmlCode,strSuccUrl)

End Function

'===================================================================
'= Function		: AccUserCtl()  
'= Time		    : Created At 2006-7-1
'= Input        : None
'= Output       : None
'= Description  : 删除用户
'===================================================================
Function AccUserCtl()
	Dim strIds
	Dim intPageNow,strFilePath

	'== 服务器端数据校验
	If Not ServerDataCheck(arrUserDelDataChk) Then	Exit Function

	'== 获取表单数据
	strIds = Trim(Request.Form("selId"))
 
	'== 删除用户业务逻辑
	If Not AccUsersLogic(strIds) Then Exit Function

	'== 重新生成用户select html
	strFilePath = GBL_strHomeUrl & GBL_strHtmlFolder & "user_option.html"
	If Not MakeHtmlUserOptionLogic("",strFilePath) Then Exit Function 

	'== Get now page
	intPageNow = FmtFormData(Request("intPageNow"))

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "所选用户已被批准为正式成员"
	strSuccUrl = "admin/admin_user_manage.asp?intPageNow=" & intPageNow
	Call SuccExecute(strHtmlCode,strSuccUrl)

End Function

'===================================================================
'= Function		: MasterUserCtl()  
'= Time		    : Created At 2006-7-1
'= Input        : None
'= Output       : None
'= Description  : 设置为论坛总版主
'===================================================================
Function MasterUserCtl()
	Dim strIds
	Dim intPageNow,strFilePath

	'== 服务器端数据校验
	If Not ServerDataCheck(arrUserDelDataChk) Then	Exit Function

	'== 获取表单数据
	strIds = Trim(Request.Form("selId"))
 
	'== 删除用户业务逻辑
	If Not MasterUsersLogic(strIds) Then Exit Function

	'== Get now page
	intPageNow = FmtFormData(Request("intPageNow"))

	
	'== 重新load系统内存
	If Not LoadParaLogic() Then
		Exit Function
	End If

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "所选用户已被批准为论坛总版主"
	strSuccUrl = "admin/admin_user_manage.asp?intPageNow=" & intPageNow
	Call SuccExecute(strHtmlCode,strSuccUrl)

End Function

'===================================================================
'= Function		: UnMasterUserCtl()  
'= Time		    : Created At 2006-7-1
'= Input        : None
'= Output       : None
'= Description  : 设置为论坛总版主
'===================================================================
Function UnMasterUserCtl()
	Dim strIds
	Dim intPageNow,strFilePath

	'== 服务器端数据校验
	If Not ServerDataCheck(arrUserDelDataChk) Then	Exit Function

	'== 获取表单数据
	strIds = Trim(Request.Form("selId"))
 
	'== 删除用户业务逻辑
	If Not UnMasterUsersLogic(strIds) Then Exit Function

	'== Get now page
	intPageNow = FmtFormData(Request("intPageNow"))

	
	'== 重新load系统内存
	If Not LoadParaLogic() Then
		Exit Function
	End If

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "所选用户已被解除论坛总版主"
	strSuccUrl = "admin/admin_user_manage.asp?intPageNow=" & intPageNow
	Call SuccExecute(strHtmlCode,strSuccUrl)

End Function
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -