📄 admingroupadd.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2006-2008 Kesion.Com All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com
'演示站点:http://test.kesion.com
'郑重声明:
' ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
' ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
' ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New AdminGroupAdd
KSCls.Execute()
Set KSCls = Nothing
Class AdminGroupAdd
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
If Not KSCMS.ReturnPowerResult(0, "KMUA10001") Then '检查管理员组操作(增和改)的权限检查
Call KSCMS.ReturnErr(0, "")
End If
Response.Write "<html>"
Response.Write "<head>"
Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
Response.Write "<link href=""../Inc/ModeWindow.css"" rel=""stylesheet"">"
Response.Write "<script language=""JavaScript"" src=""../JS/Common.js""></script>"
Response.Write "<title>管理员组添加</title>"
Response.Write "</head>"
Dim GroupID, GroupName, Descript, Action
Action = KSCMS.G("Action")
GroupID = KSCMS.G("GroupID")
If Action = "" Then Action = "AddAdmin"
If GroupID <> "" Then
Dim RSObj
Set RSObj = Conn.Execute("Select GroupName,Description,SuperTF From KS_AdminGroup Where GroupID=" & GroupID)
If Not RSObj.EOF Then
If RSObj(2) = 1 Then
RSObj.Close
Set RSObj = Nothing
Response.Write ("<script>alert('系统默认管理员组不能修改!');window.close();</script>")
Response.End
Else
GroupName = RSObj(0)
Descript = RSObj(1)
End If
End If
RSObj.Close
Set RSObj = Nothing
Else
GroupName = ""
Descript = ""
End If
Response.Write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"">"
Response.Write " <form action=""AdminGroupAdd_Save.asp"" name=""AdminForm"" method=""post"">"
Response.Write " <input name=""Action"" type=""hidden"" id=""Action"" value=""" & Action & """>"
Response.Write " <input name=""GroupID"" type=""hidden"" value=""" & GroupID & """>"
Response.Write " <br>"
Response.Write " <br>"
Response.Write " <table width=""99%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td>"
Response.Write " <FIELDSET align=center>"
Response.Write " <LEGEND align=left>"
If GroupID = "" Then
Response.Write ("添加管理员组")
Else
Response.Write ("修改管理员组")
End If
Response.Write "</LEGEND>"
Response.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""35""> <div align=""center"">组 名 称</div></td>"
Response.Write " <td width=""542""> <input name=""GroupName"" value=""" & GroupName & """ type=""text"" id=""GroupName"" size=""30"" style=""border-style: solid; border-width: 1"">概况性说明文字 </td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td height=""35""> <div align=""center"">简要说明</div></td>"
Response.Write " <td><textarea name=""Description"" rows=""8"" id=""Description"" style=""width:80%;border-style: solid; border-width: 1"">" & Descript & "</textarea></td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </FIELDSET>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <table width=""100%"" height=""30"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td height=""40"" align=""center"">"
Response.Write " <input type=""button"" name=""Submit"" Onclick=""CheckForm()"" value="" 确 定 "">"
Response.Write " <input type=""button"" name=""Submit2"" onclick=""window.close()"" value="" 取 消 "">"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </form>"
Response.Write "</body>"
Response.Write "</html>"
Response.Write "<Script Language=""javascript"">" & vbCrLf
Response.Write "<!--" & vbCrLf
Response.Write "function CheckForm()" & vbCrLf
Response.Write "{ var form=document.AdminForm;" & vbCrLf
Response.Write " if (form.GroupName.value=='')" & vbCrLf
Response.Write " {"
Response.Write " alert(""请输入管理员组名称!"");" & vbCrLf
Response.Write " form.GroupName.focus();" & vbCrLf
Response.Write " return false;"
Response.Write " }"
Response.Write " form.submit();" & vbCrLf
Response.Write " return true;" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "//-->" & vbCrLf
Response.Write "</Script>" & vbCrLf
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -