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

📄 newrole.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: newrole.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 : 蔡晓燕
'  日 期 : 2002-07-31
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :用户通过本页面新增角色、修改角色名称、修改角色权限、删除角色
'  版 本 :V1.0
'************************************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>

<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="../include/emp.inc" -->
<!-- #include file="newrole.inc" -->
<!-- #INCLUDE FILE="../Fn_Remind.asp" -->

<%
call CheckSecurity()
'*********************************************************************************************************
'获取参数:角色的id。如果该参数为空,置为0,表示新增角色。
'********************************************************************************************************
dim iRoleid	:	iRoleid = GetParam("roleid")
dim iPage	:	iPage	= GetParam("page")

if IsEmpty(iRoleid) then iRoleid = 0
'response.write "first = "&iPage
'response.end

'********************************************************************************************************
' 如果是提交,则调用函数UpdateMeeting()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	UpdateRole()
end if

%>

<html>
<head>
<title>系统管理——角色管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">

<script language="javascript" src="../include/common.js"></script>
<script language="VBScript" src="../common/validate.vbs"></script>
<script language="VBScript">
	sub checkbox_onclicked()
	end sub
	sub btnSubmit_Onclick()
	'   输入合法性检查 
		if trim(frmnewrole.roledesp.value) = "" then
			msgbox"请输入角色名称!"
			frmnewrole.roledesp.focus()
			exit sub
		end if
		frmnewrole.formaction.value = "add"
		frmnewrole.submit()
	end sub

	sub btnUpdate_Onclick()
	'   输入合法性检查 
		if trim(frmnewrole.roledesp.value) = "" then
			msgbox"请输入角色名称!"
			frmnewrole.roledesp.focus()
			exit sub
		end if
		frmnewrole.formaction.value = "upd"
		frmnewrole.submit()
	end sub

	sub btnDelete_Onclick()
	'   删除角色
'		if msgbox("您确定要删除该角色吗?",324) = 7 then
'			exit sub
'		end if
		if  DeleteConfirm("这个角色") then
			frmnewrole.formaction.value = "del"
			frmnewrole.submit()
		end if
	end sub

	sub btnCancel_Onclick()
	'   重新输入 
		frmnewrole.reset()
	end sub

	sub btnReset_Onclick()
	'   重新输入 
		frmnewrole.reset()
	end sub

	sub btnReturn_Onclick()
	'   返回 
		history.go(-1)
	end sub
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>

<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
Response.write FormRoleTable(iRoleid)
Response.write TableLink
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>

</body>
</html>

⌨️ 快捷键说明

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