📄 editcontactmech.ftl
字号:
<#--
/**
* Title: Edit Contact Mechanism Page
* Description: None
* Copyright (c) 2001 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 Johan Isacsson
*@author Catherine.Heintz@nereide.biz (migration to uiLabelMap)
*@created June 02 2003
*@version 1.2
*/
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<table border=0 width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'>
<tr>
<td align=left width='40%' >
<div class='boxhead'> ${uiLabelMap.WorkEffortCalendarEvent}: ${workEffort.workEffortName?if_exists}</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<table width='100%' cellpadding='2' cellspacing='0' border='0'>
<tr>
<td>
<div class='tabContainer'>
<a href="<@ofbizUrl>/event?workEffortId=${workEffortId}</@ofbizUrl>" class="tabButton">${uiLabelMap.WorkEffortEvent}</a>
<a href="<@ofbizUrl>/eventPartyAssignments?workEffortId=${workEffortId}</@ofbizUrl>" class="tabButton">${uiLabelMap.PartyParties}</a>
<a href="<@ofbizUrl>/eventContactMechs?workEffortId=${workEffortId}</@ofbizUrl>" class="tabButtonSelected">${uiLabelMap.PartyContactInformation}</a>
</div>
<#-- ============================================================= -->
<#if (!security.hasEntityPermission("PARTYMGR", "_VIEW", session) && !mechMap.partyContactMech?exists && mechMap.contactMech?exists)>
<p><h3>${uiLabelMap.PartyErrorContactInformation}</h3></p>
<a href="<@ofbizUrl>/authview/${donePage}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonBack}]</a>
<#else>
<#if mechMap.contactMechTypeId?has_content>
<#if !mechMap.contactMech?has_content>
<#if contactMeches?has_content><table>
<form method="post" action="<@ofbizUrl>/createContactMech</@ofbizUrl>">
<input type="hidden" name="DONE_PAGE" value="${donePage}">
<input type="hidden" name="workEffortId" value="${workEffortId}">
<tr><td colspan="5"><span class="head1">${uiLabelMap.WorkEffortSelectContactMechanism}</span></td></tr>
<#list contactMeches as contactMechMap>
<#assign contactMech = contactMechMap.contactMech>
<tr><td colspan="5"><hr class='sepbar'></td></tr>
<tr>
<td><input type="radio" value="${contactMech.contactMechId}" name="contactMechId"></td>
<td align="right" valign="top" width="10%">
<div class="tabletext"> <b>${contactMechMap.contactMechType.description}</b></div>
</td>
<td width="5"> </td>
<td align="left" valign="top" width="80%">
<#if contactMechMap.postalAddress?exists>
<#assign postalAddress = contactMechMap.postalAddress>
<div class="tabletext">
<#if postalAddress.toName?has_content><b>${uiLabelMap.CommonTo}:</b> ${postalAddress.toName}<br></#if>
<#if postalAddress.attnName?has_content><b>${uiLabelMap.CommonAttn}:</b> ${postalAddress.attnName}<br></#if>
${postalAddress.address1?if_exists}<br>
<#if postalAddress.address2?has_content><br></#if>
${postalAddress.city?if_exists},
${postalAddress.stateProvinceGeoId?if_exists}
${postalAddress.postalCode?if_exists}
<#if postalAddress.countryGeoId?has_content><br>${postalAddress.countryGeoId}</#if>
</div>
<#if (postalAddress?has_content && !postalAddress.countryGeoId?has_content) || postalAddress.countryGeoId = "USA">
<#assign addr1 = postalAddress.address1?default("")>
<#if (addr1?index_of(' ') > 0)>
<#assign addressOther = "">
<#assign addressNum = "">
<#list addr1?split(" ") as seq>
<#if seq_index = 0>
<#assign addressNum = seq>
<#else>
<#assign addressOther = addressOther + " " + seq>
</#if>
</#list>
<a target='_blank' href='http://www.whitepages.com/find_person_results.pl?fid=a&s_n=${addressNum}&s_a=${addressOther?trim}&c=${postalAddress.city?if_exists}&s=${postalAddress.stateProvinceGeoId?if_exists}&x=29&y=18' class='buttontext'>(lookup:whitepages.com)</a>
</#if>
</#if>
<#elseif contactMechMap.telecomNumber?exists>
<#assign telecomNumber = contactMechMap.telecomNumber>
<div class="tabletext">
${telecomNumber.countryCode?if_exists}
<#if telecomNumber.areaCode?has_content>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}
<#if contactMechMap.partyContactMech.extension?has_content>ext ${contactMechMap.partyContactMech.extension}</#if>
<#if (telecomNumber?has_content && !telecomNumber.countryCode?has_content) || telecomNumber.countryCode = "011">
<a target='_blank' href='http://www.anywho.com/qry/wp_rl?npa=${telecomNumber.areaCode?if_exists}&telephone=${telecomNumber.contactNumber?if_exists}&btnsubmit.x=20&btnsubmit.y=8' class='buttontext'>(lookup:anywho.com)</a>
<a target='_blank' href='http://whitepages.com/find_person_results.pl?fid=p&ac=${telecomNumber.areaCode?if_exists}&s=&p=${telecomNumber.contactNumber?if_exists}&pt=b&x=40&y=9' class='buttontext'>(lookup:whitepages.com)</a>
</#if>
</div>
<#elseif "EMAIL_ADDRESS" = contactMech.contactMechTypeId>
<div class="tabletext">
${contactMech.infoString?if_exists}
<a href='mailto:${contactMech.infoString?if_exists}' class='buttontext'>(${uiLabelMap.PartySendEmail})</a>
</div>
<#elseif "WEB_ADDRESS" = contactMech.contactMechTypeId>
<div class="tabletext">
${contactMech.infoString?if_exists}
<#assign openAddress = contactMech.infoString?default("")>
<#if !openAddress?starts_with("http") && !openAddress.starts_with("HTTP")><#assign openAddress = "http://" + openAddress></#if>
<a target='_blank' href='${openAddress}' class='buttontext'>(${uiLabelMap.WorkEffortOpenPageInNewWindow})</a>
</div>
<#else>
<div class="tabletext">
${contactMech.infoString?if_exists}
</div>
</#if>
</td>
<td width="5"> </td>
</tr>
</#list>
<tr><td colspan="5"><input type="submit" value="${uiLabelMap.CommonAdd}"></td></tr>
</form>
</table>
<br>
<p class="head1">${uiLabelMap.PartyCreateAdditionalContactInformation}</p>
<#else>
<#if partyId?has_content>
<#-- No contact information was found for the party with id ${partyId}<br> -->
<#assign uiLabelWithVar=uiLabelMap.PartyNoContactInformationParty?interpret><@uiLabelWithVar/><br>
<br>
</#if>
<p class="head1">${uiLabelMap.PartyCreateNewContact}</p>
</#if>
<#if contactMechPurposeType?exists>
<div>(${uiLabelMap.PartyNoteNewContactInformation}<b>"${contactMechPurposeType.description?if_exists}"</b>)</div>
</#if>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<form method="post" action='<@ofbizUrl>/${mechMap.requestName}</@ofbizUrl>' name="editcontactmechform">
<input type=hidden name='DONE_PAGE' value='${donePage}'>
<input type=hidden name='contactMechTypeId' value='${mechMap.contactMechTypeId}'>
<input type=hidden name='partyId' value='${partyId}'>
<input type="hidden" name="workEffortId" value="${workEffortId}">
<#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?exists><input type='hidden' name='paymentMethodId' value='${paymentMethodId}'></#if>
<#else>
<p class="head1">${uiLabelMap.PartyEditContactInformation}</p>
<a href='<@ofbizUrl>/authview/${donePage}</@ofbizUrl>' class='buttontext'>[${uiLabelMap.CommonGoBack}]</a>
<a href="javascript:document.editcontactmechform.submit()" class="buttontext">[${uiLabelMap.CommonSave}]</a>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="26%" align=right valign=top><div class="tabletext">${uiLabelMap.PartyContactPurposes}</div></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -