📄 clubuseropedit.jsp
字号:
<%@ 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.ClubClassResults"/>
<%
// 权限判断共享代码
int uoID = ParamUtils.getIntParameter(request,"uoID",0);
int ugID = ParamUtils.getIntParameter(request,"ugID",0);
ccID = ParamUtils.getIntParameter(request,"ccID",0);
String act = ParamUtils.getStringParameter(request,"act","add");
String uoUser = "";
int uoCID =0, uoGradeID=0, uois=0;
if(request.getMethod().equals("POST")){
uoUser = ParamUtils.getStringParameter(request,"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(ParamUtils.getIntParameter(request,"ccid",0));
cuo.setUoByUser(gvcmName);
cuo.setUoIs(ParamUtils.getByteParameter(request,"uois"));
cuo.setUoByip(request.getRemoteAddr());
cuo.useropEdit(act);
out.print(prtCenter2(cuo.getMessage(),"./clubUserop.jsp",1));
out.close();
if(true){return;}
}
if(uoID>0){
cuoi = 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 = "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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -