📄 powerpoweredit.jsp
字号:
<%@ page import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.xaccp.biz.service.power.*,com.xaccp.biz.po.*"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://www.designersky.com" prefix="my" %>
<html>
<head>
<script>
function del_button_onclick(powerId) {
var c = confirm('是否真的删除此权限?');
if (!c) return false;
window.location = 'powerPowerRealDelete.do?powerId=' + powerId + '&funId=${fun.id}';
return false;
}
</script>
</head>
<body>
<font color="red"><html:errors/></font>
<logic:present name="fun">
<div align="center">
功能节点:<B>${fun.name}</B>
</div>
<hr />
<table border="1" align="center" width="95%">
<caption>该节点下的权限</caption>
<tr>
<th width="40%">权限名称</th>
<th width="40%">权限代号</th>
<th width="20%">操作</th>
</tr>
<logic:iterate name="fun" property="tblPowers" id="p">
<html:form action="powerPowerRealEdit">
<input type="hidden" name="id" value="${p.id}"/>
<input type="hidden" name="funId" value="${fun.id}"/>
<tr>
<td><input name="name" value="${p.name}"/></td>
<td><input name="shortName" value="${p.shortName}"/></td>
<td>
<input type="button" value="删除" onclick="return del_button_onclick('${p.id}')" />
<input type="submit" value="修改"/>
</td>
</tr>
</html:form>
</logic:iterate>
</table>
<div align="center" style="padding:20px">
<html:form action="powerPowerRealEdit">
<input type="hidden" name="funId" value="${fun.id}"/>
权限名称:<input name="name"/><BR />
权限代号:<input name="shortName"/><BR />
<input type="submit" value="新增"/>
</html:form>
</div>
</logic:present>
<logic:notPresent name="fun">
请在右边的树形菜单中选择功能节点
</logic:notPresent>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -