clubUseropEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="../GVinc/gvInclude.jsp" %>
  3. <%@ include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
  5. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
  6. <% 
  7. // 权限判断共享代码
  8. int uoID = TypeChange.stringToInt(request.getParameter("uoID"));
  9. int ugID =  TypeChange.stringToInt(request.getParameter("ugID"));
  10. if(request.getParameter("ccID") != null){
  11. ccID = Integer.parseInt(request.getParameter("ccID"));
  12. }else{
  13. ccID = 0;
  14. }
  15. String act = "add";
  16. if(request.getParameter("act") != null){
  17. act = request.getParameter("act");
  18. }
  19. String uoUser = "";
  20. int uoCID =0, uoGradeID=0, uois=0;
  21. if(request.getMethod().equals("POST")){
  22. uoUser = request.getParameter("uoUser");
  23. if(uoUser.equals("")){
  24. out.print(prtCenter2("用户ID不能为空!","./clubUseropEdit.jsp",1));
  25. out.close();
  26. if(true){return;}
  27. }
  28. //out.print(act);
  29. cuo.setUoUser(uoUser);
  30. cuo.setUoID(uoID);
  31. cuo.setUoGradeID(ugID);
  32. cuo.setUoCID(TypeChange.stringToInt(request.getParameter("ccid")));
  33. cuo.setUoByUser(gvcmName);
  34. cuo.setUoIs(TypeChange.stringToByte(request.getParameter("uois")));
  35. cuo.setUoByip(request.getRemoteAddr());
  36. temp = cuo.useropEdit(act);
  37. out.print(prtCenter2(temp,"./clubUserop.jsp",1));
  38. out.close();
  39. if(true){return;}
  40. }
  41. if(uoID>0){
  42. cuoi = (ClubUseropItem)cuo.useropInfo(uoID);
  43. if(cuoi!=null){
  44. uoUser = cuoi.getUoUser();
  45. }
  46. }
  47. %>
  48. <html>
  49. <head>
  50. <title>社区管理</title>
  51. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  52. <link href="css.css" rel="stylesheet" type="text/css">
  53. </head>
  54. <body>
  55. <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
  56. <form name="form1" method="post" action=""><table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  57.   <tr>
  58.     <td align="center"><strong>配置社区用户等级权限</strong></td>
  59.   </tr>
  60. </table>
  61. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  62. <tr bgcolor="#f6f6f6">
  63. <td width="160" bgcolor="#f6f6f6"><strong>请选择等级</strong></td>
  64. <td>
  65. <%
  66. String oUrl="";
  67. oUrl = "clubUseropEdit.jsp?act="+act+"&uoID="+uoID+"";
  68. %>
  69. <select name="ugsdd" onChange="GV_jumpPage('self',this,1);">
  70. <option value="clubUserGrade.jsp">选择你要设定权限的等级</option>
  71. <c:forEach var="g" items="<%=cug.userGradeList()%>">
  72. <club:usergrade url="<%=oUrl%>" type="linkOption2" idIs="${g.ugID}" linkId="<%=(ugID)%>" value="${g.ugName}"/>
  73. </c:forEach>
  74. </select>
  75. </td></tr>
  76. <%
  77. if(ugID>0){
  78. if(ugID>2 && ugID < 8){ 
  79. %>
  80.     <tr bgcolor="#f6f6f6">
  81.       <td bgcolor="#f6f6f6"><strong>请选择管理版面</strong></td>
  82.       <td>
  83. <select name="ccid">
  84. <option value="0">全部版面</option>
  85. <c:forEach var="ccc0" items="<%=ccc.classList()%>">
  86. <club:classinfo type="option"  idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
  87. <c:set value="${ccc0.ccID}"  target="${ccc}" property="reId" />
  88. <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
  89. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
  90. <c:set value="${ccc1.ccID}"  target="${ccc}" property="reId" />
  91. <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
  92. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
  93. </c:forEach>
  94. </c:forEach>
  95. </c:forEach>
  96. </select>
  97.   </td>
  98.     </tr>
  99. <%
  100. }else{
  101. %>
  102. <input type="hidden" name="ugid" value="0">
  103. <input type="hidden" name="ccid" value="0">
  104. <% 
  105. }
  106. %>
  107. <tr bgcolor="#f6f6f6">
  108. <td bgcolor="#f6f6f6"><strong>用户ID</strong></td>
  109. <td>
  110. <input name="uoUser" type="text" id="uoUser" value="<%=uoUser%>" size="20" maxlength="20">
  111. </td>
  112. </tr>
  113.     <tr bgcolor="#f6f6f6">
  114.       <td bgcolor="#f6f6f6"><strong>是否开通</strong></td>
  115.       <td>
  116. <input name="uois" type="radio" value="1" <%if(uois==1){out.print("checked");}%>>是
  117. &nbsp;&nbsp;
  118. <input type="radio" name="uois" value="0" <%if(uois==0){out.print("checked");}%>>否
  119. </td>
  120.     </tr>
  121.     <tr bgcolor="#f6f6f6">
  122.       <td bgcolor="#f6f6f6">
  123. <input type="hidden" name="uoID" value="<%=uoID%>">
  124. <input type="hidden" name="act" value="<%=act%>"></td>
  125.       <td><input type="submit" name="Submit" value="提交"></td>
  126.     </tr>
  127. <%
  128. }
  129. %>
  130. </table>
  131. </form>
  132. </body>
  133. </html>