📄 role_modify.jsp.svn-base
字号:
<%@ page contentType="text/html;charset=utf-8" %>
<%@ include file="../../include/include.jsp"%>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/pub.css">
<script>
function checkform() {
if(roleActionForm.roleName.value=="") {
window.alert("请输入角色名称!");
roleActionForm.roleName.focus();
return false;
}
return true;
}
function sel(tt) {
var t = eval(tt);
var r = window.event.srcElement.checked
if(t) {
for(i=0;i<t.childNodes.length;i++) {
cc = t.childNodes[i];
if(cc) {
if(cc.tagName=="INPUT" && cc.type=="checkbox") cc.checked = r;
}
}
}
}
</script>
</head>
<body topmargin="2" leftmargin="2">
<table width="450" align="center">
<tr>
<td>
<b>角色管理 >> <bean:write name="roleActionForm" property="result" /></b>
</td>
</tr>
<tr>
<td>
<table width="100%" bgcolor="#6DB1DE" cellpadding="4" cellspacing="1">
<html:form action="roleAction" onsubmit="return checkform();">
<html:hidden property="method" />
<html:hidden property="roleId" />
<tr>
<td align="right" bgcolor="#EFF8FF" class="ajc3">角色名称:</td>
<td bgcolor="white"><html:text property="roleName" size="20" maxlength="20" /></td>
</tr>
<tr>
<td align="center" bgcolor="#EFF8FF" class="ajc3" colspan=2 style="padding-left:50px">角色权限:</td>
</tr>
<logic:notEmpty name="roleActionForm" property="moduleList">
<logic:iterate id="lsModule" name="roleActionForm" property="moduleList">
<tr>
<td bgcolor="#EFF8FF" class="ajc3" colspan=2 style="padding-left:25px"><bean:write name="lsModule" property="moduleName" /></td>
</tr>
<logic:notEmpty name="lsModule" property="moduleList">
<logic:iterate id="dtModule" name="lsModule" property="moduleList">
<tr>
<td bgcolor="#F8FAFF" class="ajc3" colspan=2 style="padding-left:25px"><bean:write name="dtModule" property="moduleName" /> <input type=checkbox id='cc_<bean:write name="dtModule" property="moduleId" />' onclick="sel('tc_<bean:write name="dtModule" property="moduleId" />');">
<label for='cc_<bean:write name="dtModule" property="moduleId" />'><bean:message key="admin.authority.list.all"/></label></td>
</tr>
<tr>
<td bgcolor="white" colspan=2 style="padding-left:15px" id='tc_<bean:write name="dtModule" property="moduleId" />'>
<logic:iterate id="auth" name="dtModule" property="authorityList">
<html:multibox property="authoritys">
<bean:write name="auth" property="authorityId" />
</html:multibox>
<bean:write name="auth" property="authorityName" />
</logic:iterate>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:iterate>
</logic:notEmpty>
<tr>
<td bgcolor="white" colspan=2 height="10"></td>
</tr>
<tr>
<td colspan=2 align=center bgcolor="white"><input type="submit" value="<bean:message key="admin.modul.modify.submit"/>"> <input type="reset" value="<bean:message key="admin.modul.modify.reset"/>"></td>
</tr>
</html:form>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -