📄 right.jsp
字号:
<%@ include file = "../tiles/include.jsp"%>
<%
/**
* view all right
* @author edgeloner
* 2004-05-25 created
*/
%>
<bean:define id="title">
<bean:message key="security.title"/>
</bean:define>
<bean:define id="accountTitle">
<bean:message key="security.account"/>
</bean:define>
<bean:define id="groupTitle">
<bean:message key="security.group"/>
</bean:define>
<bean:define id="rightTitle">
<bean:message key="security.right"/>
</bean:define>
<center>
<gui:window title = "<%=title%>" prototype = "boWindow" color = "100%">
<gui:tabbedPanel prototype = "boTabbedPanel" followUp = "listAccount.do" color = "#f0f0f0" selectedTab = "tab3"
width = "58">
<gui:tab prototype = "boTab" name = "tab1" title = "<%=accountTitle%>" followUp = "listAccount.do?method=listAccount">
account
</gui:tab>
<gui:tab prototype = "boTab" name = "tab2" title = "<%=groupTitle%>" followUp="listGroup.do?method=listRole">
group
</gui:tab>
<gui:tab prototype = "boTab" name = "tab3" title = "<%=rightTitle%>" followUp="listRight.do?method=listRight">
<html:form action = "createRightAction?method=createRight" onsubmit = "return validateRightForm(this);">
<html:errors/>
<table WIDTH="100%" class="sort-table" cellSpacing="1" cellPadding="1" width="100%" border="0">
<thead>
<tr>
<td colspan="2"><bean:message key="right.create"/></td>
</tr>
</thead>
<tr>
<td><bean:message key="right.box"/></td>
<td><html:text property = "box" size = "20"/></td>
</tr>
<tr>
<td><bean:message key="right.desc"/></td>
<td><html:text property = "desc" size = "20"/></td>
</tr>
<tr>
<td><bean:message key="right.url"/></td>
<td><html:text property = "url" size = "20"/></td>
</tr>
<tr>
<td colspan="2" align = "right">
<html:submit styleClass="button">
<bean:message key = "button.save"/></html:submit>
<html:reset styleClass="button">
<bean:message key = "button.reset"/></html:reset>
</td>
</tr>
</html:form>
</table>
<html:form action = "removeRightAction?method=removeRight" onsubmit = "return validateListRightForm(this);">
<table class="sort-table" cellSpacing="1" cellPadding="1" width="100%" border="0">
<thead>
<tr>
<td><bean:message key="right.box"/></td>
<td><bean:message key="right.desc"/></td>
<td><bean:message key="right.url"/></td>
</tr>
</thead>
<logic:iterate name="rights" id="right" indexId="i">
<tr>
<td><input type="checkbox" name="index" value="<bean:write name="i" />">
<input type="hidden" name="id" value="<bean:write name="right" property="id" />">
<input type="text" name="box" value="<bean:write name="right" property="box" />"></td>
<td><input type="text" name="desc" value="<bean:write name="right" property="desc" />"></td>
<td><input type="text" name="url" value="<bean:write name="right" property="url" />"></td>
</tr>
</logic:iterate>
<tr>
<td colspan="3" align = "right">
<html:submit styleClass="button" onclick="document.forms[1].action='updateRightAction.do?method=updateRight'">
<bean:message key = "button.update"/></html:submit>
<html:submit styleClass="button">
<bean:message key = "button.delete"/></html:submit>
<html:reset styleClass="button">
<bean:message key = "button.reset"/></html:reset>
</td>
</tr>
</html:form>
</table>
</gui:tab>
</gui:tabbedPanel>
</gui:window>
</center>
<html:javascript formName="listRightForm"
dynamicJavascript="true"
staticJavascript="false"/>
<html:javascript formName="rightForm"
dynamicJavascript="true"
staticJavascript="false"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -