📄 editcontactmech.ftl
字号:
<#-- * Copyright (C) 2006 Open Source Strategies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA--><#-- * Copyright (c) 2001-2005 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author David E. Jones *@author Olivier Heintz (olivier.heintz@nereide.biz) *@since 1.0--> <#if !contactMech?exists> <#-- When creating a new contact mech, first select the type, then actually create --> <#if !preContactMechTypeId?has_content> <p class="head1">${uiLabelMap.PartyCreateNewContact}</p> <form method="post" action="<@ofbizUrl>editcontactmech</@ofbizUrl>" name="createcontactmechform"> <input type="hidden" name="donePage" value="${donePage}"> <input type="hidden" name="partyId" value="${partyId}"> <table width="90%" border="0" cellpadding="2" cellspacing="0"> <tr> <td width="26%"><div class="tabletext">${uiLabelMap.PartySelectContactType}:</div></td> <td width="74%"> <select name="preContactMechTypeId" class="selectBox"> <#list mechMap.contactMechTypes as contactMechType> <option value="${contactMechType.contactMechTypeId}">${contactMechType.description}</option> </#list> </select> <a href="javascript:document.createcontactmechform.submit()" class="buttontext">${uiLabelMap.CommonCreate}</a> </td> </tr> </table> </form> </#if> </#if> <#if mechMap.contactMechTypeId?has_content> <#if !contactMech?has_content> <div class="subSectionHeader"><div class="subSectionTitle">${uiLabelMap.PartyCreateNewContact}</div></div> <#if contactMechPurposeType?exists> <div>(${uiLabelMap.PartyMsgContactHavePurpose} <b>"${contactMechPurposeType.description?if_exists}"</b>)</div> </#if> <div class="form"> <table width="90%" border="0" cellpadding="2" cellspacing="0"> <form method="post" action="<@ofbizUrl>${mechMap.requestName}</@ofbizUrl>" name="editcontactmechform"> <input type="hidden" name="donePage" value="${donePage}"> <input type="hidden" name="contactMechTypeId" value="${mechMap.contactMechTypeId}"> <input type="hidden" name="partyId" value="${partyId}"> <#if cmNewPurposeTypeId?has_content><input type="hidden" name="contactMechPurposeTypeId" value="${cmNewPurposeTypeId}"></#if> <#if preContactMechTypeId?exists><input type="hidden" name="preContactMechTypeId" value="${preContactMechTypeId}"></#if> <#if contactMechPurposeTypeId?exists><input type="hidden" name="contactMechPurposeTypeId" value="${contactMechPurposeTypeId?if_exists}"></#if> <#if paymentMethodId?has_content><input type='hidden' name='paymentMethodId' value='${paymentMethodId}'></#if> <#else> <div class="subSectionHeader"><div class="subSectionTitle">${uiLabelMap.PartyEditContactInformation}</div></div> <div class="form"> <table width="90%" border="0" cellpadding="2" cellspacing="0"> <#if mechMap.purposeTypes?has_content> <tr> <td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.PartyContactPurposes}</div></td> <td width="5"> </td> <td width="74%"> <table border="0" cellspacing="1" bgcolor="black"> <#if mechMap.partyContactMechPurposes?has_content> <#list mechMap.partyContactMechPurposes as partyContactMechPurpose> <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")> <tr> <td bgcolor="white"> <div class="tabletext"> <#if contactMechPurposeType?has_content> <b>${contactMechPurposeType.description}</b> <#else> <b>${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"</b> </#if> (${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()}) <#if partyContactMechPurpose.thruDate?has_content>(${uiLabelMap.CommonExpire}: ${partyContactMechPurpose.thruDate.toString()}</#if> </div></td> <td bgcolor="white"><div><a href="<@ofbizUrl>deletePartyContactMechPurpose?partyId=${partyId}&contactMechId=${contactMechId}&contactMechPurposeTypeId=${partyContactMechPurpose.contactMechPurposeTypeId}&fromDate=${partyContactMechPurpose.fromDate.toString()}&DONE_PAGE=${donePageFull?replace("=","%3d")}&useValues=true</@ofbizUrl>" class="buttontext"> ${uiLabelMap.CommonDelete} </a></div></td> </tr> </#list> </#if> <tr> <form method="post" action="<@ofbizUrl>createPartyContactMechPurpose</@ofbizUrl>" name="newpurposeform"> <input type="hidden" name="partyId" value="${partyId}"> <input type="hidden" name="donePage" value="${donePage}"> <input type="hidden" name="useValues" value="true"> <input type="hidden" name="contactMechId" value="${contactMechId?if_exists}"> <td bgcolor="white"> <select name="contactMechPurposeTypeId" class="selectBox"> <option></option> <#list mechMap.purposeTypes as contactMechPurposeType> <option value="${contactMechPurposeType.contactMechPurposeTypeId}">${contactMechPurposeType.description}</option> </#list> </select> </td> </form> <td bgcolor="white"><div><a href="javascript:document.newpurposeform.submit()" class="buttontext"> ${uiLabelMap.PartyAddPurpose} </a></div></td> </tr> </table> </td> </tr> </#if> <form method="post" action="<@ofbizUrl>${mechMap.requestName}</@ofbizUrl>" name="editcontactmechform"> <input type="hidden" name="contactMechId" value="${contactMechId}"> <input type="hidden" name="contactMechTypeId" value="${mechMap.contactMechTypeId}"> <input type="hidden" name="partyId" value="${partyId}"> <input type="hidden" name="donePage" value="${donePage}"> </#if> <#if "POSTAL_ADDRESS" = mechMap.contactMechTypeId?if_exists>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -