?? group_edit.jsp
字號(hào):
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
<title>System rights group manage</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/common.css" rel="stylesheet" type="text/css">
<script language=javascript src="../js/SysRight.Js"></script>
</head>
<body bgcolor="#ffffff" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#ffffff">系統(tǒng)面板>權(quán)限組設(shè)置>修改權(quán)限組</td>
</tr>
<tr>
<td bgcolor="#cccccc"> </td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<html:form action="/admin/group_edit.do?action=save">
<tr>
<td align="right">權(quán)限組名稱:<html:text property="id" style="display:none;"/></td>
<td><html:text property="name"/><html:errors property="name"/></td>
</tr>
<tr>
<td align="right">系統(tǒng)代碼:</td>
<td><html:text property="code"/><html:errors property="code"/></td>
</tr>
<tr>
<td align="right">狀態(tài):</td>
<td>
<html:radio property="status" value="1" styleId="status1"/><LABEL for="status1">啟用</LABEL>
<html:radio property="status" value="0" styleId="status2"/><LABEL for="status2">停用</LABEL><html:errors property="status"/></td>
</tr>
<tr>
<td align="right" valign="top">描述:</td>
<td><html:textarea property="remark" cols="40" rows="5"/></td>
</tr>
<tr>
<td colspan="2">選擇權(quán)限模塊:(全選<input type="CheckBox" onClick="javascript:if(confirm('確信選擇嗎?')) ParentCheck('_',this.checked); else this.checked=!this.checked" name="CheckBox">)</td>
</tr>
<tr>
<td colspan="2">
<table cellSpacing=0 borderColorDark=#ffffff cellPadding=3 width="100%" borderColorLight=#dddddd border=1>
<tr>
<td>
<table cellSpacing=0 borderColorDark=#ffffff cellPadding=3 width="100%" borderColorLight=#dddddd border=1>
<tr>
<td>
<table cellSpacing=0 cellPadding=0 width="100%" border=0>
<logic:iterate name="RightsMenu" property="rightstop" id="rightstop" indexId="ind">
<tr>
<td><img src="images/+.gif" name="0<bean:write name="ind"/>" width="9" height="9" border="0" onclick="showtr(<bean:write name="ind"/>);"><bean:write name="rightstop" property="rightsname"/>
<input id="_<bean:write name="rightstop" property="prvid"/>_" name="rightpoint" onclick="JavaScript:ParentCheck('_<bean:write name="rightstop" property="prvid"/>_',this.checked);" value="<bean:write name="rightstop" property="prvid"/>" type="checkbox" <bean:write name="rightstop" property="checkstatus"/>></td>
</tr>
<tr id="<bean:write name="ind"/>" style="DISPLAY: none" name="<bean:write name="ind"/>">
<td>
<img src="images/vLine.gif" width="11" height="16" border="0"><img src="images/cLine.gif" width="16" height="14" border="0">
<logic:iterate name="rightstop" property="rightsMenu" id="rightsMenu">
<bean:write name="rightsMenu" property="param0"/><input id="_<bean:write name="rightstop" property="prvid"/>_" onclick="JavaScript:IfOneCheck(_<bean:write name="rightstop" property="prvid"/>_)" name="rightpoint" type="checkbox" value="<bean:write name="rightsMenu" property="param1"/>" <bean:write name="rightsMenu" property="param2"/>>
</logic:iterate>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td colspan="2">
<logic:present name="InfoTips" scope="request">
<div>
<bean:message key="message.login.status"/>
<bean:write name="InfoTips" property="tipsInfo"/>
</div>
</logic:present><br>
<input type="submit" name="cmdSave" value="修 改" onclick="javascript:return checkright();">
<input type="button" name="cmdBack" value="返回上級(jí)" onclick="javascript:location='group_man.do';"></td>
</tr>
</html:form>
</table>
</body>
</html:html>
<script language="javascript">
var CodeArr=new Array();//ID數(shù)組
var iCode=group_editForm.rightpoint.length;//權(quán)限組數(shù)
for(var i=0;i<iCode;i++){
CodeArr[i]="_"+group_editForm.rightpoint[i].value+"_";
}
function ParentCheck(strId,Status){
if(strId!=''){
for(var i=0;i<iCode;i++){
if(CodeArr[i].indexOf(strId)>-1){
eval("CheckAll(group_editForm."+CodeArr[i]+","+Status+")");
}
}
}
}
</script>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -