- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cm" scope="request" class="com.gamvan.club.manage.ClubMaster"/>
- <jsp:useBean id="cmg" scope="page" class="com.gamvan.club.manage.ClubMasterGrade"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,18,"|");
- if(!ispass){
- out.print(OutPrint.prtCenter("您无权进行此项操作!","",2));
- out.close();
- if(true)return;
- }
- //权限判断代码结束
- String cmIDs[];
- if(request.getMethod().equals("POST")){
- cmIDs = request.getParameterValues("cmID");
- cm.masterDels(cmIDs);
- //out.print(cm.getMessage()); //测试
- out.print(OutPrint.prtCenter("管理员已被删除!","./clubMasterList.jsp",1));
- out.close();
- if(true)return;
- }
- String ip1="", ip2="";
- %>
- <html>
- <head>
- <title>社区管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
- <tr>
- <td align="center"><strong>配置社区后台管理员等级</strong></td>
- </tr>
- </table>
- <table width="99%" height="90" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
- <td width="40" height="22" align="center" bgcolor="#f6f6f6"><strong>操作</strong></td>
- <td align="center"><strong>管理员ID</strong></td>
- <td width="80" align="center"><strong>等级</strong></td>
- <td width="50" align="center"><strong>IP段</strong></td>
- <td width="120" align="center"><strong>锁定IP起始段</strong></td>
- <td width="120" align="center"><strong>锁定IP结束段</strong></td>
- <td width="70" align="center"><strong>重新配置</strong></td>
- </tr>
- <%
- ClubMasterGradeItem cmgi = null;
- String cmgName = "";
- %>
- <c:forEach var="m" items="<%=cm.masterList()%>">
- <tr bgcolor="#f6f6f6">
- <td height="22" align="center" bgcolor="#f6f6f6">
- <input name="cmID" type="checkbox" id="cmID" value="<c:out value="${m.cmID}" />" /></td>
- <td align="center">
- <c:out value="${m.cmName}" />
- </td><td align="center">
- <c:set value="${m.cmgID}" target="${cmg}" property="cmgID" />
- <%
- cmgi = (ClubMasterGradeItem)cmg.masterGradeInfo(0);
- if(cmgi!=null){
- cmgName = cmgi.getCmgName();
- out.print(cmgName);
- }
- //out.print(cmg.getCmgID());
- %>
- </td><td align="center">
- <c:out value="${m.cmIpLock}" />
- </td>
- <td align="center">
- <c:set var="eci" value="${m.cmIp1}" property="reqIp"/>
- <%
- try{
- out.print(eci.deAddr(""));
- }catch(Exception e){
- out.print(e.toString());
- }
- %>
- </td>
- <td align="center">
- <c:set var="eci" value="${m.cmIp2}" property="reqIp"/>
- <%
- try{
- out.print(eci.deAddr(""));
- }catch(Exception e){
- out.print(e.toString());
- }
- %>
- </td>
- <td align="center">
- <a href="clubMasterEdit.jsp?cmID=<c:out value="${m.cmID}" />">重新配置</a>
- </td></tr>
- </c:forEach>
- <tr bgcolor="#f6f6f6">
- <td height="34" colspan="7" bgcolor="#f6f6f6">
-
- <input type="submit" name="Submit" value="提交删除"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>