- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,4,"|");
- if(!ispass){
- out.print(prtCenter("您无权进行此项操作!","",2));
- out.close();
- }
- int ugID = 0;
- if(request.getParameter("ugID") != null){
- ugID = Integer.parseInt(request.getParameter("ugID"));
- }else{
- ugID = 0;
- }
- String txt;
- temp = "";
- if(request.getMethod().equals("POST")){
- for(int i=1; i < 50; i++){
- txt = request.getParameter("ugTxt" + String.valueOf(i));
- if(txt==null){
- txt="0";
- }
- if(temp==""){
- temp = txt;
- }else{
- temp = temp + "|" + txt;
- }
- }
- //out.print(temp);
- cug.setUgTxt(temp);
- try{
- cug.userGradeEdit(ugID);
- }catch(Exception e){
- out.print(e.toString());
- }
- out.print(prtCenter2(cug.getMessage(),"./clubUserGrade.jsp?ugID="+ ugID +"",1));
- out.close();
- }
- int [] ugis = new int[60];
- if(ugID>0){
- temp = "";
- cugi = (ClubUserGradeItem)cug.userGradeInfo(ugID);
- temp = cugi.getUgTxt();
- if(temp != null && !temp.equals("")){
- StringTokenizer st = new StringTokenizer(temp,"|");
- //ugis = new int[42];
- //out.print(st.countTokens());
- for(int i=0;st.hasMoreTokens();i++){
- try{
- ugis[i]=TypeChange.stringToInt(st.nextToken().trim());
- }catch(Exception e){
- ugis[i]=0;
- }
- }
- }
- }
- %>
- <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>
- <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
- <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%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action="">
- <tr bgcolor="#f6f6f6">
- <td width="160" bgcolor="#f6f6f6"> </td>
- <td>
- <select name="select" onChange="GV_jumpPage('self',this,1);">
- <option value="clubUserGrade.jsp">选择你要设定权限的等级</option>
- <c:forEach var="g" items="<%=cug.userGradeList()%>">
- <club:usergrade type="linkOption" idIs="${g.ugID}" linkId="<%=(ugID)%>" value="${g.ugName}"/>
- </c:forEach>
- </select>
- </td></tr>
- <%
- if(ugID>0){
- %>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>相关浏览权限</strong></td>
- <td>
- <input name="ugTxt1" type="checkbox" id="ugTxt1" value="1" <% if(ugis[0]==1){out.print("checked");}%> />论坛首页
-
- <input name="ugTxt2" type="checkbox" id="ugTxt2" value="1" <% if(ugis[1]==1){out.print("checked");}%> />论坛分类
-
- <input name="ugTxt3" type="checkbox" id="ugTxt3" value="1" <% if(ugis[2]==1){out.print("checked");}%> />论坛版面
-
- <input name="ugTxt4" type="checkbox" id="ugTxt4" value="1" <% if(ugis[3]==1){out.print("checked");}%> />普通文章
-
- <input name="ugTxt5" type="checkbox" id="ugTxt5" value="1" <% if(ugis[4]==1){out.print("checked");}%> />特殊型别文章
-
- <input name="ugTxt6" type="checkbox" id="ugTxt6" value="1" <% if(ugis[5]==1){out.print("checked");}%> />精华文章
- <br />
- <input name="ugTxt7" type="checkbox" id="ugTxt7" value="1" <% if(ugis[6]==1){out.print("checked");}%> />用户列表
-
- <input name="ugTxt8" type="checkbox" id="ugTxt8" value="1" <% if(ugis[7]==1){out.print("checked");}%> />黑名单
-
- <input name="ugTxt9" type="checkbox" id="ugTxt9" value="1" <% if(ugis[8]==1){out.print("checked");}%> />在线名单
-
- <input name="ugTxt10" type="checkbox" id="ugTxt10" value="1" <% if(ugis[9]==1){out.print("checked");}%> />用户 I P
-
- <input name="ugTxt11" type="checkbox" id="ugTxt11" value="1" <% if(ugis[10]==1){out.print("checked");}%> />用户资料
-
- <input name="ugTxt12" type="checkbox" id="ugTxt12" value="1" <% if(ugis[11]==1){out.print("checked");}%> />管理团队
-
- </td></tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区基本功能</strong></td>
- <td>
- <input name="ugTxt13" type="checkbox" id="ugTxt13" value="1" <% if(ugis[12]==1){out.print("checked");}%> />发表文章
-
- <input name="ugTxt14" type="checkbox" id="ugTxt14" value="1" <% if(ugis[13]==1){out.print("checked");}%> />回复文章
-
- <input name="ugTxt15" type="checkbox" id="ugTxt15" value="1" <% if(ugis[14]==1){out.print("checked");}%> />编辑自己的文章
-
- <input name="ugTxt16" type="checkbox" id="ugTxt16" value="1" <% if(ugis[15]==1){out.print("checked");}%> />删除自己的文章
-
- <input name="ugTxt17" type="checkbox" id="ugTxt17" value="1" <% if(ugis[16]==1){out.print("checked");}%> />移动自己的文章
- <br />
- <input name="ugTxt18" type="checkbox" id="ugTxt18" value="1" <% if(ugis[17]==1){out.print("checked");}%> />在线发送Email
-
- <input name="ugTxt40" type="checkbox" id="ugTxt40" value="1" <% if(ugis[39]==1){out.print("checked");}%> />社区搜索
-
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区管理功能</strong>(文章部分)</td>
- <td>
- <input name="ugTxt19" type="checkbox" id="ugTxt19" value="1" <% if(ugis[18]==1){out.print("checked");}%> />编辑文章
-
- <input name="ugTxt20" type="checkbox" id="ugTxt20" value="1" <% if(ugis[19]==1){out.print("checked");}%> />移动文章
-
- <input name="ugTxt21" type="checkbox" id="ugTxt21" value="1" <% if(ugis[20]==1){out.print("checked");}%> />删除文章
-
- <input name="ugTxt22" type="checkbox" id="ugTxt22" value="1" <% if(ugis[21]==1){out.print("checked");}%> />文章加精
-
- <input name="ugTxt23" type="checkbox" id="ugTxt23" value="1" <% if(ugis[22]==1){out.print("checked");}%> />文章锁定
- <br />
- <input name="ugTxt24" type="checkbox" id="ugTxt24" value="1" <% if(ugis[23]==1){out.print("checked");}%> />文章固顶
-
- <input name="ugTxt25" type="checkbox" id="ugTxt25" value="1" <% if(ugis[24]==1){out.print("checked");}%> />文章区固顶
-
- <input name="ugTxt26" type="checkbox" id="ugTxt26" value="1" <% if(ugis[25]==1){out.print("checked");}%> />文章总固顶
-
- <input name="ugTxt27" type="checkbox" id="ugTxt27" value="1" <% if(ugis[26]==1){out.print("checked");}%> />文章加(扣)分
-
- <input name="ugTxt28" type="checkbox" id="ugTxt28" value="1" <% if(ugis[27]==1){out.print("checked");}%> />文章加(扣)今币
- <br/>
- <input name="ugTxt42" type="checkbox" id="ugTxt42" value="1" <% if(ugis[41]==1){out.print("checked");}%> />强行浏览特殊型别主题(如:购买、积分)
-
- <input name="ugTxt43" type="checkbox" id="ugTxt43" value="1" <% if(ugis[42]==1){out.print("checked");}%> />管理文章(加[减]积分,金币,信誉)
- <br/>
- <input name="ugTxt44" type="checkbox" id="ugTxt44" value="1" <% if(ugis[43]==1){out.print("checked");}%> />不显示自己操作的日志用户名。
-
- <input name="ugTxt45" type="checkbox" id="ugTxt45" value="1" <% if(ugis[44]==1){out.print("checked");}%> />认证文章
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区管理功能</strong>(版面部分)</td>
- <td>
- <input name="ugTxt29" type="checkbox" id="ugTxt29" value="1" <% if(ugis[28]==1){out.print("checked");}%> />修改简介
-
- <input name="ugTxt30" type="checkbox" id="ugTxt30" value="1" <% if(ugis[29]==1){out.print("checked");}%> />发布公告
-
- <input name="ugTxt31" type="checkbox" id="ugTxt31" value="1" <% if(ugis[30]==1){out.print("checked");}%> />删除公告
-
- <input name="ugTxt32" type="checkbox" id="ugTxt32" value="1" <% if(ugis[31]==1){out.print("checked");}%> />添加/删除区长
-
- <input name="ugTxt33" type="checkbox" id="ugTxt33" value="1" <% if(ugis[32]==1){out.print("checked");}%> />添加/删除版主
- <br/>
- <input name="ugTxt41" type="checkbox" id="ugTxt41" value="1" <% if(ugis[40]==1){out.print("checked");}%> />过滤版面属性限制
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区管理功能</strong>(用户部分)</td>
- <td>
- <input name="ugTxt34" type="checkbox" id="ugTxt34" value="1" <% if(ugis[33]==1){out.print("checked");}%> />列入黑名单
-
- <input name="ugTxt35" type="checkbox" id="ugTxt35" value="1" <% if(ugis[34]==1){out.print("checked");}%> />强行浏览禁言帖
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区管理功能</strong>(其他部分)</td>
- <td>
- <input name="ugTxt36" type="checkbox" id="ugTxt36" value="1" <% if(ugis[35]==1){out.print("checked");}%> />浏览媒体库
-
- <input name="ugTxt37" type="checkbox" id="ugTxt37" value="1" <% if(ugis[36]==1){out.print("checked");}%> />清空回收站
-
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>社区扩展功能</strong></td>
- <td>
- <input name="ugTxt38" type="checkbox" id="ugTxt38" value="1" <% if(ugis[37]==1){out.print("checked");}%> />发表粗体主题
-
- <input name="ugTxt39" type="checkbox" id="ugTxt39" value="1" <% if(ugis[38]==1){out.print("checked");}%> />发表变色主题
- <input name="ugTxt45" type="hidden" id="ugTxt45" value="0">
- <input name="ugTxt46" type="hidden" id="ugTxt46" value="0">
- <input name="ugTxt47" type="hidden" id="ugTxt47" value="0">
- <input name="ugTxt48" type="hidden" id="ugTxt48" value="0">
- <input name="ugTxt49" type="hidden" id="ugTxt49" value="0">
- <input name="ugTxt50" type="hidden" id="ugTxt50" value="0">
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"> </td>
- <td><input name="gvSubmit" type="submit" id="gvSubmit" value="确定提交"></td>
- </tr>
- <%
- }
- %>
- </form>
- </table>
- </body>
- </html>