account.jsp
来自「Jaoso新闻文章发布系统 0.9.1final 程序架构: Struts」· JSP 代码 · 共 96 行
JSP
96 行
<%@ include file = "../tiles/include.jsp"%>
<%
/**
* view all account
* @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 = "tab1"
width = "52">
<gui:tab prototype = "boTab" name = "tab1" title = "<%=accountTitle%>" followUp = "listAccount.do?method=listAccount">
<html:form action = "removeAccountAction?method=removeAccount" onsubmit = "return validateListAccountForm(this);">
<html:errors/>
<table class="sort-table" cellSpacing="1" cellPadding="1" width="100%" border="0">
<thead>
<tr>
<td><bean:message key = "security.account"/></td>
<td><bean:message key = "security.group"/></td>
</tr>
</thead>
<logic:iterate name="accounts" id="account">
<tr>
<td><input type="checkbox" name="id" value="<bean:write name="account" property="id" />">
<bean:write name="account" property="name" /></td>
<td><bean:write name="account" property="group.desc" /></td>
</tr>
</logic:iterate>
<tr>
<td colspan = "2" align = "right">
<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>
<html:form action="changeAccountGroup?method=changeAccountGroup" >
<table class="sort-table" cellSpacing="1" cellPadding="1" width="100%" border="0">
<thead>
<tr>
<td><bean:message key = "security.account"/></td>
<td><bean:message key = "security.group"/></td>
</tr>
</thead>
<tr>
<td>
<html:select property="accountId" style="width:200px;">
<html:options collection="accounts" labelProperty="name" property="id"/>
</html:select>
</td>
<td>
<html:select property="groupId" style="width:200px;">
<html:options collection="groups" labelProperty="desc" property="id"/>
</html:select>
</td>
</tr>
<tr>
<td align= "right" colspan= "2">
<html:submit styleClass="button"><bean:message key="button.save"/></html:submit>
</td>
</tr>
</html:form>
</table>
</gui:tab>
<gui:tab prototype = "boTab" name = "tab2" title = "<%=groupTitle%>" followUp="listGroup.do?method=listRole">
group
</gui:tab>
<gui:tab prototype = "boTab" name = "tab2" title = "<%=rightTitle%>" followUp="listRight.do?method=listRight">
right
</gui:tab>
</gui:tabbedPanel>
</gui:window>
</center>
<html:javascript formName="listAccountForm"
dynamicJavascript="true"
staticJavascript="false"/>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?