clubMasterEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:5k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cm" scope="page" class="com.gamvan.club.manage.ClubMaster"/>
- <jsp:useBean id="cmg" scope="request" class="com.gamvan.club.manage.ClubMasterGrade"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,18,"|");
- if(!ispass){
- out.print(OutPrint.prtCenter("您无权进行此项操作!","",2));
- out.close();
- }
- //权限判断代码结束
- String cmName, cmPass, cmPass2, cmIp1, cmIp2;
- boolean cmIpLock = false;
- int cmPassEdit = 0;
- int cmgID = 0;
- cmName = "";
- cmPass = "";
- cmIp1 = "";
- cmIp2 = "";
- int cmID = TypeChange.stringToInt(request.getParameter("cmID"));
- ClubMasterItem cmi = null;
- if(request.getMethod().equals("POST")){
- cmName = request.getParameter("cmName").trim();
- cmPass = request.getParameter("cmPass").trim();
- cmPass2 = request.getParameter("cmPass2").trim();
- cmIp1 = request.getParameter("cmIp1").trim();
- cmIp2 = request.getParameter("cmIp2").trim();
- cmIpLock = TypeChange.stringToBoolean(request.getParameter("cmIpLock"));
- cmgID = TypeChange.stringToInt(request.getParameter("cmgID"));
- if(cmPass.equals(cmPass2)){
- cmPassEdit = 1;
- }
- if((cmName==null || cmName=="")||(cmPass==null||cmPass=="")){
- out.print(OutPrint.prtCenter("管理员ID 和 管理员密码 均不能为空!","./clubMasterEdit.jsp?cmID="+ cmID +"",1));
- out.close();
- if(true)return;
- }else{
- cm.setCmPassEdit(cmPassEdit);
- cm.setCmgID(cmgID);
- cm.setCmName(cmName);
- cm.setCmPass(cmPass);
- cm.setCmIpLock(cmIpLock);
- cm.setCmIp1(cmIp1);
- cm.setCmIp2(cmIp2);
- cm.masterEdit(cmID);
- out.print(OutPrint.prtCenter(cm.getMessage(),"./clubMasterEdit.jsp?cmID="+ cmID +"",1));
- out.close();
- if(true)return;
- }
- }else{
- if(cmID>0){
- cmi = (ClubMasterItem)cm.masterInfo(cmID);
- if(cmi!=null){
- cmName = cmi.getCmName();
- cmPass = cmi.getCmPass();
- cmIpLock = cmi.getCmIpLock();
- cmIp1 = cmi.getCmIp1();
- cmIp2 = cmi.getCmIp2();
- }else{
- out.print(cm.getMessage());
- out.close();
- if(true)return;
- }
- }
- }
- %>
- <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>
- <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%" height="116" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
- <td width="115" height="22" bgcolor="#f6f6f6"><strong>管理员ID</strong></td>
- <td><input name="cmName" type="text" id="cmName" value="<%=cmName%>" size="30" maxlength="30"></td>
- </tr>
-
- <tr bgcolor="#f6f6f6">
- <td height="10" bgcolor="#f6f6f6"><strong>管理员密码</strong></td>
- <td>
- <input name="cmPass" type="password" id="cmPass" value="<%=cmPass%>" size="30" maxlength="30">
- <input name="cmPass2" type="hidden" id="cmPass2" value="<%=cmPass%>" size="30" maxlength="30">
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="11" bgcolor="#f6f6f6"><strong> 锁定登陆起始IP段 </strong></td>
- <td><input name="cmIp1" type="text" id="cmIp1" value="<%=(cmIp1)%>" size="30" maxlength="30"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"><strong> 锁定登陆结束IP段 </strong></td>
- <td><input name="cmIp2" type="text" id="cmIp2" value="<%=(cmIp2)%>" size="30" maxlength="30"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="10" bgcolor="#f6f6f6"><strong> 是否启用ip锁定 </strong></td>
- <td>
- <input type="radio" name="cmIpLock" value="false" <%if(!cmIpLock){out.print("checked");}%>>解除锁定IP登录
-
- <input type="radio" name="cmIpLock" value="true" <%if(cmIpLock){out.print("checked");}%>>锁定IP登录
- </td></tr>
- <tr bgcolor="#f6f6f6">
- <td height="11" bgcolor="#f6f6f6"><strong> 等级 </strong></td>
- <td>
- <select name="cmgID">
- <c:forEach var="m" items="<%=cmg.masterGradeList()%>">
- <option value="<c:out value="${m.cmgID}" />" >
- <c:out value="${m.cmgName}" />
- </option>
- </c:forEach>
- </select>
- </td></tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"> </td>
- <td height="22" bgcolor="#f6f6f6"><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>