clubMasterGrade.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:6k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cmg" scope="page" class="com.gamvan.club.manage.ClubMasterGrade"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,15,"|");
- if(!ispass){
- out.print(prtCenter("您无权进行此项操作!","",2));
- out.close();
- if(true)return;
- }
- //权限判断代码结束
- String act;
- if(request.getParameter("act") == null){
- act = "0";
- }else{
- act = request.getParameter("act");
- }
- int cmgID = TypeChange.stringToInt(request.getParameter("cmgID"));
- String txt, cmgName, cmgTxt;
- cmgName = "";
- cmgTxt = "";
- temp = "";
- if(request.getMethod().equals("POST")){
- for(int i = 1; i < 30; i++){
- txt = request.getParameter("cmgis"+String.valueOf(i));
- if(txt==null){
- txt="0";
- }
- if(temp.equals("")){
- temp = txt;
- }else{
- temp = temp + "|" + txt;
- }
- }
- cmgName = request.getParameter("cmgName");
- cmgTxt = temp;
- if(cmgName==null || cmgName==""){
- out.print(OutPrint.prtCenter("等级名称不能为空!","./clubMasterGrade.jsp?act=" + act +"&cmgID="+ cmgID +"",1));
- out.close();
- }else{
- cmg.setCmgName(cmgName);
- cmg.setCmgTxt(temp);
- cmg.masterGradeEdit(cmgID);
- out.print(OutPrint.prtCenter(cmg.getMessage(),"./clubMasterGrade.jsp?act=" + act +"&cmgID="+ cmgID +"",1));
- out.close();
- }
- }
- ClubMasterGradeItem cmgi = null;
- int [] cmgis = new int[30];
- if(cmgID>0){
- cmgi = (ClubMasterGradeItem)cmg.masterGradeInfo(cmgID);
- cmgName = cmgi.getCmgName();
- cmgTxt = cmgi.getCmgTxt();
- StringTokenizer st = new StringTokenizer(cmgTxt,"|");
- //cmgis = new int[st.countTokens()];
- for(int i=0;st.hasMoreTokens();i++){
- cmgis[i]=Integer.parseInt(st.nextToken().trim());
- }
- }
- %>
- <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="171" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
- <td width="100" height="22" bgcolor="#f6f6f6"><strong>等级名称</strong></td>
- <td>
- <input name="cmgName" type="text" id="cmgName" size="20" maxlength="30" value="<%=cmgName%>">
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"><strong>基本权限</strong></td>
- <td>
- <input name="cmgis1" type="checkbox" id="cmgis1" value="1" <% if(cmgis[0]==1){out.print("checked");}%>>配置社区信息
-
- <input name="cmgis2" type="checkbox" id="cmgis2" value="1" <% if(cmgis[1]==1){out.print("checked");}%>>配置社区制度
-
- <input name="cmgis3" type="checkbox" id="cmgis3" value="1" <% if(cmgis[2]==1){out.print("checked");}%>>配置社区风格
-
- <input name="cmgis19" type="checkbox" id="cmgis19" value="1" <% if(cmgis[18]==1){out.print("checked");}%>>设定过滤字符
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"><strong>操作权限</strong></td>
- <td>
- <input name="cmgis4" type="checkbox" id="cmgis4" value="1" <% if(cmgis[3]==1){out.print("checked");}%>>添加/删除(版面或分类)
-
- <input name="cmgis5" type="checkbox" id="cmgis5" value="1" <% if(cmgis[4]==1){out.print("checked");}%>>配置(版面或分类)
-
- <input name="cmgis8" type="checkbox" id="cmgis8" value="1" <% if(cmgis[7]==1){out.print("checked");}%>>敏感字符过滤
-
- <input name="cmgis7" type="checkbox" id="cmgis7" value="1" <% if(cmgis[6]==1){out.print("checked");}%>>上传附件
- <br>
- <input name="cmgis6" type="checkbox" id="cmgis6" value="1" <% if(cmgis[5]==1){out.print("checked");}%>>广告管理
-
- <input name="cmgis20" type="checkbox" id="cmgis20" value="1" <% if(cmgis[19]==1){out.print("checked");}%>>JS文件管理
-
- <input name="cmgis21" type="checkbox" id="cmgis21" value="1" <% if(cmgis[20]==1){out.print("checked");}%>>认证文章
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"><strong>用户管理</strong></td>
- <td>
- <input name="cmgis9" type="checkbox" id="cmgis9" value="1" <% if(cmgis[8]==1){out.print("checked");}%>>黑名单
-
- <input name="cmgis10" type="checkbox" id="cmgis10" value="1" <% if(cmgis[9]==1){out.print("checked");}%>>删除用户
-
- <input name="cmgis11" type="checkbox" id="cmgis11" value="1" <% if(cmgis[10]==1){out.print("checked");}%>>修改资料
-
- <input name="cmgis12" type="checkbox" id="cmgis12" value="1" <% if(cmgis[11]==1){out.print("checked");}%>>Email群发/管理
-
- <input name="cmgis13" type="checkbox" id="cmgis13" value="1" <% if(cmgis[12]==1){out.print("checked");}%>>用户权限
-
- <input name="cmgis14" type="checkbox" id="cmgis14" value="1" <% if(cmgis[13]==1){out.print("checked");}%>>等级设定
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"><strong>高级权限</strong></td>
- <td>
- <input name="cmgis15" type="checkbox" id="cmgis15" value="1" <% if(cmgis[14]==1){out.print("checked");}%>>后台等级设定
-
- <input name="cmgis16" type="checkbox" id="cmgis16" value="1" <% if(cmgis[15]==1){out.print("checked");}%>>社区用户等级设定
-
- <input name="cmgis17" type="checkbox" id="cmgis17" value="1" <% if(cmgis[16]==1){out.print("checked");}%>>锁定IP段
-
- <input name="cmgis18" type="checkbox" id="cmgis18" value="1" <% if(cmgis[17]==1){out.print("checked");}%>>添加、修改、删除管理员
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"> </td>
- <td>
- <% if(cmgID == 0){%>
- <input name="gvSubmit" type="submit" id="gvSubmit" value="添加新等级">
- <% }else{%>
- <input name="gvSubmit" type="submit" id="gvSubmit" value="配置等级权限">
- <% } %>
- </td>
- </tr>
- </form>
- </table>
- </body>
- </html>