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

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="cm" scope="request" class="com.gamvan.club.manage.ClubMaster"/>
  5. <jsp:useBean id="cmg" scope="page" class="com.gamvan.club.manage.ClubMasterGrade"/>
  6. <% 
  7. //权限判断共享代码
  8. boolean ispass = false;
  9. //ArrayEdit ae = new ArrayEdit();
  10. ispass = ae.txtsArray(gvcmgTxt,18,"|");
  11. if(!ispass){
  12. out.print(OutPrint.prtCenter("您无权进行此项操作!","",2));
  13. out.close();
  14. if(true)return;
  15. }
  16. //权限判断代码结束
  17. String cmIDs[];
  18. if(request.getMethod().equals("POST")){
  19. cmIDs = request.getParameterValues("cmID");
  20. cm.masterDels(cmIDs);
  21. //out.print(cm.getMessage()); //测试
  22. out.print(OutPrint.prtCenter("管理员已被删除!","./clubMasterList.jsp",1));
  23. out.close();
  24. if(true)return;
  25. }
  26. String ip1="", ip2="";
  27. %>
  28. <html>
  29. <head>
  30. <title>社区管理</title>
  31. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  32. <link href="css.css" rel="stylesheet" type="text/css">
  33. </head>
  34. <body>
  35. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  36.   <tr>
  37.     <td align="center"><strong>配置社区后台管理员等级</strong></td>
  38.   </tr>
  39. </table>
  40. <table width="99%" height="90" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  41.   <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
  42.     <td width="40" height="22" align="center" bgcolor="#f6f6f6"><strong>操作</strong></td>
  43.     <td align="center"><strong>管理员ID</strong></td>
  44.     <td width="80" align="center"><strong>等级</strong></td>
  45.     <td width="50" align="center"><strong>IP段</strong></td>
  46.     <td width="120" align="center"><strong>锁定IP起始段</strong></td>
  47.     <td width="120" align="center"><strong>锁定IP结束段</strong></td>
  48.     <td width="70" align="center"><strong>重新配置</strong></td>
  49.   </tr>
  50. <%
  51. ClubMasterGradeItem cmgi = null;
  52. String cmgName = "";
  53. %>
  54. <c:forEach var="m" items="<%=cm.masterList()%>">
  55. <tr bgcolor="#f6f6f6">
  56. <td height="22" align="center" bgcolor="#f6f6f6">
  57. <input name="cmID" type="checkbox" id="cmID" value="<c:out value="${m.cmID}" />" /></td>
  58. <td align="center">
  59. <c:out value="${m.cmName}" />
  60. </td><td align="center">
  61. <c:set value="${m.cmgID}"  target="${cmg}" property="cmgID" />
  62. <%
  63. cmgi = (ClubMasterGradeItem)cmg.masterGradeInfo(0);
  64. if(cmgi!=null){
  65. cmgName = cmgi.getCmgName();
  66. out.print(cmgName);
  67. }
  68. //out.print(cmg.getCmgID());
  69. %>
  70. </td><td align="center">
  71. <c:out value="${m.cmIpLock}" /> 
  72. </td>
  73. <td align="center">
  74. <c:set var="eci" value="${m.cmIp1}" property="reqIp"/>
  75. <%
  76. try{
  77. out.print(eci.deAddr(""));
  78. }catch(Exception e){
  79. out.print(e.toString());
  80. }
  81. %>
  82. </td>
  83. <td align="center">
  84. <c:set var="eci" value="${m.cmIp2}" property="reqIp"/>
  85. <%
  86. try{
  87. out.print(eci.deAddr(""));
  88. }catch(Exception e){
  89. out.print(e.toString());
  90. }
  91. %>
  92. </td>
  93. <td align="center">
  94. <a href="clubMasterEdit.jsp?cmID=<c:out value="${m.cmID}" />">重新配置</a>
  95. </td></tr>
  96. </c:forEach>
  97. <tr bgcolor="#f6f6f6">
  98. <td height="34" colspan="7" bgcolor="#f6f6f6">
  99. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  100. <input type="submit" name="Submit" value="提交删除"></td>
  101.     </tr>
  102.   </form>
  103. </table>
  104. </body>
  105. </html>