- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
- <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
- <%
- // 权限判断共享代码
- int uoID = TypeChange.stringToInt(request.getParameter("uoID"));
- int ugID = TypeChange.stringToInt(request.getParameter("ugID"));
- if(request.getParameter("ccID") != null){
- ccID = Integer.parseInt(request.getParameter("ccID"));
- }else{
- ccID = 0;
- }
- String act = "add";
- if(request.getParameter("act") != null){
- act = request.getParameter("act");
- }
- String uoUser = "";
- int uoCID =0, uoGradeID=0, uois=0;
- if(request.getMethod().equals("POST")){
- uoUser = request.getParameter("uoUser");
- if(uoUser.equals("")){
- out.print(prtCenter2("用户ID不能为空!","./clubUseropEdit.jsp",1));
- out.close();
- if(true){return;}
- }
- //out.print(act);
- cuo.setUoUser(uoUser);
- cuo.setUoID(uoID);
- cuo.setUoGradeID(ugID);
- cuo.setUoCID(TypeChange.stringToInt(request.getParameter("ccid")));
- cuo.setUoByUser(gvcmName);
- cuo.setUoIs(TypeChange.stringToByte(request.getParameter("uois")));
- cuo.setUoByip(request.getRemoteAddr());
- temp = cuo.useropEdit(act);
- out.print(prtCenter2(temp,"./clubUserop.jsp",1));
- out.close();
- if(true){return;}
- }
- if(uoID>0){
- cuoi = (ClubUseropItem)cuo.useropInfo(uoID);
- if(cuoi!=null){
- uoUser = cuoi.getUoUser();
- }
- }
- %>
- <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>
- <form name="form1" method="post" action=""><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">
- <tr bgcolor="#f6f6f6">
- <td width="160" bgcolor="#f6f6f6"><strong>请选择等级</strong></td>
- <td>
- <%
- String oUrl="";
- oUrl = "clubUseropEdit.jsp?act="+act+"&uoID="+uoID+"";
- %>
- <select name="ugsdd" onChange="GV_jumpPage('self',this,1);">
- <option value="clubUserGrade.jsp">选择你要设定权限的等级</option>
- <c:forEach var="g" items="<%=cug.userGradeList()%>">
- <club:usergrade url="<%=oUrl%>" type="linkOption2" idIs="${g.ugID}" linkId="<%=(ugID)%>" value="${g.ugName}"/>
- </c:forEach>
- </select>
- </td></tr>
- <%
- if(ugID>0){
- if(ugID>2 && ugID < 8){
- %>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>请选择管理版面</strong></td>
- <td>
- <select name="ccid">
- <option value="0">全部版面</option>
- <c:forEach var="ccc0" items="<%=ccc.classList()%>">
- <club:classinfo type="option" idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
- <c:set value="${ccc0.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
- <c:set value="${ccc1.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
- </c:forEach>
- </c:forEach>
- </c:forEach>
- </select>
- </td>
- </tr>
- <%
- }else{
- %>
- <input type="hidden" name="ugid" value="0">
- <input type="hidden" name="ccid" value="0">
- <%
- }
- %>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>用户ID</strong></td>
- <td>
- <input name="uoUser" type="text" id="uoUser" value="<%=uoUser%>" size="20" maxlength="20">
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>是否开通</strong></td>
- <td>
- <input name="uois" type="radio" value="1" <%if(uois==1){out.print("checked");}%>>是
-
- <input type="radio" name="uois" value="0" <%if(uois==0){out.print("checked");}%>>否
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6">
- <input type="hidden" name="uoID" value="<%=uoID%>">
- <input type="hidden" name="act" value="<%=act%>"></td>
- <td><input type="submit" name="Submit" value="提交"></td>
- </tr>
- <%
- }
- %>
- </table>
- </form>
- </body>
- </html>