addperson.jsp

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

JSP
135
字号
<%-- ***** 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.crm.custom.PersonListDAO" %>

<tiles:insert definition="standard">
	<tiles:put name="page.title"><bean:message key="domain.crm.addPerson.headLine"/></tiles:put>
	<tiles:put name="page.content">
		
	<script language="JavaScript" type="text/javascript">
	<!--
		function edit(i) {
			document.location="<%=response.encodeURL(request.getContextPath()+"/crm/contact/person/addPerson.do?id=")%>"+i;
		}
	//-->
	</script>
		
	<html:form action="/crm/contact/person/addPerson" styleClass="list" style="width: 500px;">
		<html:hidden property="sort"/>
		
		<fieldset class="search">
			<legend><bean:message key="default.group.search"/></legend>
			<table class="search">
				<colgroup>
					<col width="1*"/>
					<col width="1*"/>
					<col width="1*"/>
				</colgroup>
				<tr>
					<td>
						<buj:label property="lastName" errorStyleId="error"><bean:message key="entity.crm.person.lastName"/></buj:label>
						<html:text property="lastName" styleId="lastName"/>
					</td>
					<td>
						<buj:label property="firstName" errorStyleId="error"><bean:message key="entity.crm.person.firstName"/></buj:label>
						<html:text property="firstName" styleId="firstName"/>
					</td>
					<td>
						<buj:label property="companyName" errorStyleId="error"><bean:message key="entity.crm.company.companyName"/></buj:label>
						<html:text property="companyName" styleId="companyName"/>
					</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>
		<fieldset class="listAction">
			<html:image property="doBack" pageKey="icon.back.url" titleKey="icon.back.text" altKey="icon.back.text"/>
		</fieldset>		
		<fieldset class="list">
			<legend>
				<buj:paginationInfo 
					textKey="domain.crm.person.showPersons.pagination" 
					name="crm.contact.person.listScroll" 
					scope="request"/>
			</legend>
			<div class="pagination">
				<buj:paginationMenu 
					name="crm.contact.person.listScroll" 
					scope="request"/>
			</div>
			<table class="result">
				<colgroup>
					<col width="1*"/>
					<col width="1*"/>
					<col width="1*"/>
				</colgroup>
				<tr>
				<th>
					<buj:sort
  					 	messageKey="entity.crm.company.companyName"
						property="<%=String.valueOf(PersonListDAO.SORT_LASTNAME)%>"/>
				</th>
				<th>
					<buj:sort
  					 	messageKey="entity.crm.company.companyName"
						property="<%=String.valueOf(PersonListDAO.SORT_FIRSTNAME)%>"/>
				</th>
				<th>
					<buj:sort
  					 	messageKey="entity.crm.company.companyName"
						property="<%=String.valueOf(PersonListDAO.SORT_COMPANY_NAME)%>"/>
				</th>
			</tr>
			<logic:iterate id="data" indexId="index" name="crm.contact.person.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="personId" scope="page"/>);">
					<bean:write name="data" property="lastName" scope="page"/>
				</td>
				<td onclick="edit(<bean:write name="data" property="personId" scope="page"/>);">
					<bean:write name="data" property="firstName" scope="page"/>
				</td>
				<td onclick="edit(<bean:write name="data" property="personId" scope="page"/>);">
					<bean:write name="data" property="companyName" scope="page"/>
				</td>
			</tr>
			</logic:iterate>
			<logic:notPresent name="index" scope="page">
			<tr colspan="2" class="noRow">
				<td><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 + -
显示快捷键?