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

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="page" class="com.gamvan.club.manage.ClubMaster"/>
  5. <jsp:useBean id="cmg" scope="request" 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. }
  15. //权限判断代码结束
  16. String  cmName, cmPass, cmPass2,  cmIp1, cmIp2;
  17. boolean cmIpLock = false;
  18. int cmPassEdit = 0;
  19. int cmgID = 0;
  20. cmName = "";
  21. cmPass = "";
  22. cmIp1 = "";
  23. cmIp2 = "";
  24. int cmID = TypeChange.stringToInt(request.getParameter("cmID"));
  25. ClubMasterItem cmi = null;
  26. if(request.getMethod().equals("POST")){
  27. cmName = request.getParameter("cmName").trim();
  28. cmPass = request.getParameter("cmPass").trim();
  29. cmPass2 = request.getParameter("cmPass2").trim();
  30. cmIp1 = request.getParameter("cmIp1").trim();
  31. cmIp2 = request.getParameter("cmIp2").trim();
  32. cmIpLock = TypeChange.stringToBoolean(request.getParameter("cmIpLock"));
  33. cmgID = TypeChange.stringToInt(request.getParameter("cmgID"));
  34. if(cmPass.equals(cmPass2)){
  35. cmPassEdit = 1;
  36. }
  37. if((cmName==null || cmName=="")||(cmPass==null||cmPass=="")){
  38. out.print(OutPrint.prtCenter("管理员ID 和 管理员密码 均不能为空!","./clubMasterEdit.jsp?cmID="+ cmID +"",1));
  39. out.close();
  40. if(true)return;
  41. }else{
  42. cm.setCmPassEdit(cmPassEdit);
  43. cm.setCmgID(cmgID);
  44. cm.setCmName(cmName);
  45. cm.setCmPass(cmPass);
  46. cm.setCmIpLock(cmIpLock);
  47. cm.setCmIp1(cmIp1);
  48. cm.setCmIp2(cmIp2);
  49. cm.masterEdit(cmID);
  50. out.print(OutPrint.prtCenter(cm.getMessage(),"./clubMasterEdit.jsp?cmID="+ cmID +"",1));
  51. out.close();
  52. if(true)return;
  53. }
  54. }else{
  55. if(cmID>0){
  56. cmi = (ClubMasterItem)cm.masterInfo(cmID);
  57. if(cmi!=null){
  58. cmName = cmi.getCmName();
  59. cmPass = cmi.getCmPass();
  60. cmIpLock = cmi.getCmIpLock();
  61. cmIp1 = cmi.getCmIp1();
  62. cmIp2 = cmi.getCmIp2();
  63. }else{
  64. out.print(cm.getMessage());
  65. out.close();
  66. if(true)return;
  67. }
  68. }
  69. }
  70. %>
  71. <html>
  72. <head>
  73. <title>社区管理</title>
  74. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  75. <link href="css.css" rel="stylesheet" type="text/css">
  76. </head>
  77. <body>
  78. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  79.   <tr>
  80.     <td align="center"><strong>添加/编辑 社区后台管理员</strong></td>
  81.   </tr>
  82. </table>
  83. <table width="99%" height="116" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  84.   <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
  85.     <td width="115" height="22" bgcolor="#f6f6f6"><strong>管理员ID</strong></td>
  86.     <td><input name="cmName" type="text" id="cmName" value="<%=cmName%>" size="30" maxlength="30"></td>
  87.     </tr>
  88.     <tr bgcolor="#f6f6f6">
  89.       <td height="10" bgcolor="#f6f6f6"><strong>管理员密码</strong></td>
  90.       <td>
  91. <input name="cmPass" type="password" id="cmPass" value="<%=cmPass%>" size="30" maxlength="30">
  92. <input name="cmPass2" type="hidden" id="cmPass2" value="<%=cmPass%>" size="30" maxlength="30">   
  93.   </td>
  94.     </tr>
  95.     <tr bgcolor="#f6f6f6">
  96.       <td height="11" bgcolor="#f6f6f6"><strong> 锁定登陆起始IP段 </strong></td>
  97.       <td><input name="cmIp1" type="text" id="cmIp1" value="<%=(cmIp1)%>" size="30" maxlength="30"></td>
  98.     </tr>
  99.     <tr bgcolor="#f6f6f6">
  100.       <td height="22" bgcolor="#f6f6f6"><strong> 锁定登陆结束IP段 </strong></td>
  101.       <td><input name="cmIp2" type="text" id="cmIp2" value="<%=(cmIp2)%>" size="30" maxlength="30"></td>
  102.     </tr>
  103.     <tr bgcolor="#f6f6f6">
  104.       <td height="10" bgcolor="#f6f6f6"><strong> 是否启用ip锁定 </strong></td>
  105.       <td>
  106. <input type="radio" name="cmIpLock" value="false" <%if(!cmIpLock){out.print("checked");}%>>解除锁定IP登录
  107. &nbsp;&nbsp;
  108. <input type="radio" name="cmIpLock" value="true" <%if(cmIpLock){out.print("checked");}%>>锁定IP登录
  109. </td></tr>
  110. <tr bgcolor="#f6f6f6">
  111. <td height="11" bgcolor="#f6f6f6"><strong> 等级 </strong></td>
  112. <td>
  113. <select name="cmgID">
  114. <c:forEach var="m" items="<%=cmg.masterGradeList()%>">
  115. <option value="<c:out value="${m.cmgID}" />" >
  116. <c:out value="${m.cmgName}" /> 
  117. </option>
  118. </c:forEach>
  119. </select>
  120. </td></tr>
  121. <tr bgcolor="#f6f6f6">
  122. <td height="22" bgcolor="#f6f6f6">&nbsp;</td>
  123. <td height="22" bgcolor="#f6f6f6"><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
  124. </tr>
  125. </form>
  126. </table>
  127. </body>
  128. </html>