📄 sysadmingroup.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Const.asp"-->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.50
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P040100") then Call ReturnError1()
Dim AdminGroupSql,RsAdminGroupObj,CheckInfo,GroupMen,RsTempObj
CheckInfo = ""
AdminGroupSql = "Select * from FS_AdminGroup"
Set RsAdminGroupObj = Server.CreateObject(G_FS_RS)
RsAdminGroupObj.open AdminGroupSql,Conn,1,1
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统管理员组列表</title>
</head>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<script src="../../SysJS/PublicJS.js" language="JavaScript"></script>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<body topmargin="2" leftmargin="2" onClick="SelectAdminGroup();" onselectstart="return false;">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#EEEEEE">
<td height="26" colspan="5" valign="middle" bgcolor="#EEEEEE">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=34 align="center" alt="新建管理员组" onClick="AddAdminGroup();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">新建</td>
<td width=6 class="Gray">|</td>
<td width=34 align="center" alt="修改管理员组" onClick="EditAdminGroup();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">修改</td>
<td width=6 class="Gray">|</td>
<td width=34 align="center" alt="删除管理员组" onClick="DelAdminGroup();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">删除</td>
<td width=6 class="Gray">|</td>
<td width=62 align="center" alt="设置权限" onClick="SetAdminGroupPop();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">设置权限</td>
<td width=10 class="Gray">|</td>
<td width=37 align="center" alt="后退" onClick="top.GetEkMainObject().history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
<td width="760"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" height="2"></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="26" class="ButtonListLeft">
<div align="center">管理员组</div></td>
<td width="40%" height="26" class="ButtonList">
<div align="center">组成员</div></td>
<td height="26" class="ButtonList">
<div align="center">简介</div></td>
</tr>
<%
if Not RsAdminGroupObj.eof then
Dim Temp_id
Temp_id = 1
Dim page_size,page_no,page_total,record_all,PageNums
page_size=Request.QueryString("page_size")
if page_size<=0 or page_size="" then page_size=18
If isnumeric(Request.Form("PageNums")) then
if Request.Form("PageNums")<>0 then
page_size = Cint(Request.Form("PageNums"))
end if
End if
page_no=request.querystring("page_no")
if page_no<=1 or page_no="" then page_no=1
If Request.QueryString("page_no")="" then
page_no=1
end if
RsAdminGroupObj.PageSize=page_size
page_total=RsAdminGroupObj.PageCount
if (cint(page_no)>page_total) then page_no=page_total
RsAdminGroupObj.AbsolutePage=page_no
record_all=RsAdminGroupObj.RecordCount
Dim i
for i=1 to RsAdminGroupObj.PageSize
if RsAdminGroupObj.eof then exit for
GroupMen = ""
Set RsTempobj = Conn.Execute("Select Name from FS_Admin where GroupID=" & RsAdminGroupObj("ID"))
if Not RsTempObj.Eof then
do while Not RsTempObj.Eof
if GroupMen = "" then
GroupMen = RsTempobj("Name")
else
GroupMen = GroupMen & "|" & RsTempobj("Name")
end if
RsTempObj.MoveNext
loop
else
GroupMen = "暂无成员"
end if
RsTempObj.Close
Set RsTempObj = Nothing
%>
<tr>
<td height="20"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../Images/Folder/UserfaceGroup.gif" width="18" height="18"></td>
<td><span class="TempletItem" AdminGroupID="<% = RsAdminGroupObj("ID") %>">
<% = RsAdminGroupObj("GroupName") %>
</span></td>
</tr>
</table></td>
<td height="20" class="TempletItem">
<div align="center">
<% = GroupMen %>
</div></td>
<td height="20" class="TempletItem" title="<%=RsAdminGroupObj("Comment")%>">
<div align="center">
<% = Left(RsAdminGroupObj("Comment"),15) %>
</div></td>
</tr>
<%
Temp_id = Temp_id + 1
RsAdminGroupObj.MoveNext
Next
end if
%>
</table>
</td>
</tr>
<%if page_total>1 then%>
<tr height="18">
<td height="18">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="1">
<td width="42%" height="18"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table> </td>
<td width="51%" height="25" valign="middle"> <div align="right">
<% = "NO.<b>"& page_no &"</b>, " %>
<% = "Totel:<b>"& page_total &"</b>, RecordCounts:<b>" & record_all &"</b> "%>
<%
if Page_Total=1 then
response.Write " <img src=../images/First1.gif border=0 alt=首页></img> "
response.Write " <img src=../images/prePage.gif border=0 alt=上一页></img> "
response.Write " <img src=../images/nextPage.gif border=0 alt=下一页></img> "
response.Write " <img src=../images/endPage.gif border=0 alt=尾页></img> "
else
if cint(Page_No)<>1 and cint(Page_No)<>Page_Total then
response.Write " <a href=?page_no=1&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/FirstPage.gif border=0 alt=首页></img></a> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)-1)&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=../../images/prePage.gif border=0 alt=上一页></img></a> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)+1)&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=../../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <a href=?page_no="& Page_Total &"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/endPage.gif border=0 alt=尾页></img></a> "
elseif cint(Page_No)=1 then
response.Write " <img src=../../images/FirstPage.gif border=0 alt=首页></img></a> "
response.Write " <img src=../../images/prePage.gif border=0 alt=上一页></img> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)+1)&"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <a href=?page_no="& Page_Total &"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/endpage.gif border=0 alt=尾页></img></a> "
else
response.Write " <a href=?page_no=1&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/FirstPage.gif border=0 alt=首页></img> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)-1)&"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../../images/prePage.gif border=0 alt=上一页></img></a> "
response.Write " <img src=../../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <img src=../../images/endpage.gif border=0 alt=尾页></img> "
end if
end if
%>
</div></td>
<td width="7%" valign="middle"><select onChange="ChangePage(this.value);" style="width:50;" name="select">
<% for i=1 to Page_Total %>
<option <% if cint(Page_No) = i then Response.Write("selected")%> value="<% = i %>">
<% = i %>
</option>
<% next %>
</select></td>
</tr>
</table>
</td>
</tr>
<% end if %>
</table>
</body>
</html>
<%
Set Conn = Nothing
%>
<script language="JavaScript">
var DocumentReadyTF=false;
var ListObjArray = new Array();
var ContentMenuArray=new Array();
function document.onreadystatechange()
{
if (DocumentReadyTF) return;
IntialListObjArray();
InitialClassListContentMenu();
DocumentReadyTF=true;
}
function InitialClassListContentMenu()
{
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.AddAdminGroup();",'新建','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.EditAdminGroup();",'修改','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelAdminGroup();",'删除','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.SetAdminGroupPop();','权限','disabled');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -