list.jsp

来自「开源项目CRM之OpenCustomer」· JSP 代码 · 共 111 行

JSP
111
字号
<%-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is the OpenCustomer CRM.
   -
   - The Initial Developer of the Original Code is
   - Thomas Bader (Bader & Jene Software-Ingenieurb黵o).
   - Portions created by the Initial Developer are Copyright (C) 2005
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -   Thomas Bader <thomas.bader@bader-jene.de>
   -
   - ***** END LICENSE BLOCK ***** --%>
   
<%@ include file="/tiles/page.jsp" %>

<%@ page import="org.opencustomer.application.db.dao.system.UsergroupDAO" %>
<%@ page import="org.opencustomer.application.auth.Right" %>

<tiles:insert definition="standard">
	<tiles:put name="page.title"><bean:message key="domain.system.usergroup.showUsergroups.headLine"/></tiles:put>
	<tiles:put name="page.content">
		
	<script language="JavaScript" type="text/javascript">
	<!--
		function edit(i) {
			document.location="<%=response.encodeURL(request.getContextPath()+"/system/usergroup/edit.do?id=")%>"+i;
		}
	//-->
	</script>
		
	<html:form action="/system/usergroup/list" focus="name" styleClass="list" style="width: 600px;">
		<html:hidden property="sort"/>

		<fieldset class="search">
			<legend><bean:message key="default.group.search"/></legend>
			<table class="search">
				<colgroup>
					<col/>
				</colgroup>
				<tr>
					<td>
						<buj:label property="name" errorStyleId="error"><bean:message key="entity.role.name"/></buj:label>
						<html:text property="name" styleId="name"/>
					</td>
				</tr>
			</table>
			<div class="action">
				<html:image property="doSearch" pageKey="icon.search.url" styleClass="default"/>
				<html:image property="doResetSearch" pageKey="icon.searchClean.url" titleKey="icon.searchClean.text" altKey="icon.searchClean.text"/>
				<html:image property="doSearch" pageKey="icon.search.url" titleKey="icon.search.text" altKey="icon.search.text"/>
			</div>
		</fieldset>
		<buj:authenticate right="<%=Right.ADMINISTRATION_USERGROUP_WRITE.getLabel()%>">
		<fieldset class="listAction">
			<html:link action="/system/usergroup/edit" titleKey="icon.add.text">
				<html:img styleClass="action" altKey="icon.add.text" titleKey="icon.add.text" pageKey="icon.add.url"/>
			</html:link>
		</fieldset>		
		</buj:authenticate>
		<fieldset class="list">
			<legend>
				<buj:paginationInfo 
					textKey="domain.system.usergroup.showUsergroups.pagination" 
					name="system.usergroup.listScroll" 
					scope="request"/>
			</legend>
			<div class="pagination">
				<buj:paginationMenu 
					name="system.usergroup.listScroll" 
					scope="request"/>
			</div>
			<table class="result">
				<colgroup>
					<col/>
				</colgroup>
				<tr>
					<th>
						<buj:sort
	  					 	messageKey="entity.usergroup.name"
							property="<%=String.valueOf(UsergroupDAO.SORT_NAME)%>"/>
					</th>
				</tr>
				<logic:iterate id="data" indexId="index" name="system.usergroup.list" scope="request">
				<tr class="<buj:rowSwap name="index" number="3" odd="rowOdd" even="rowEven"/>" onmouseover="this.className='rowActive';" onmouseout="this.className='<buj:rowSwap name="index" number="3" odd="rowOdd" even="rowEven"/>'">
					<td onclick="edit(<bean:write name="data" property="id" scope="page"/>);"><bean:write name="data" property="name" scope="page"/></td>
				</tr>
				</logic:iterate>
				<logic:notPresent name="index" scope="page">
				<tr class="noRow">
					<td colspan="1"><bean:message key="default.message.noEntries"/></td>
				</tr>
				</logic:notPresent>
			</table>
		</fieldset>
	</html:form>
		
	</tiles:put>
</tiles:insert>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?