📄 assign_rights.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb" %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>角色管理 - 分配权限</title>
<link rel="stylesheet" type="text/css" href="styles.css" >
<script>
function save(){
doSubmit('doAssignRights');
}
</script>
</head>
<body class="main">
<html:form action="role">
<html:hidden property="o" value="doAssignRights" />
<html:hidden property="item.roleId" />
<table class="input_table" border="0" cellPadding="3" cellSpacing="0">
<tr>
<td class="input_title" width="10%">角色名</td>
<td class="input_content" width="20%">
${roleForm.item.roleName }
</td>
<td class="input_title" width="10%">角色描述</td>
<td class="input_content" width="20%">
${roleForm.item.roleDesc }
</td>
<td class="input_title" width="10%">状态</td>
<td class="input_content" width="20%">
${roleForm.item.roleFlagString }
</td>
</tr>
<tr>
<td class="input_title" >权限</td>
<td class="input_content" colspan="5" style="text-align:right;">
<button onclick="javascript:history.go(-1);">取 消</button>
<button onclick="javascript:save();">保 存</button>
</td>
</tr>
<tr>
<td class="input_content" colspan="10" height="500px">
<%-- 显示所有权限 --%>
<logic:iterate id="right" name="ALL_RIGHTS_LIST" type="org.jb.y272.team0.entity.SysRight">
<div>
<%
for(int i=0; i< right.getRightCode().length();++i){
out.print(" ");
}
%>
${right.rightText }
<input name="selectedRights" type="checkbox" ${right.isSelected } value="${right.rightCode }" />
</div>
</logic:iterate>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -