📄 viewprofile.ftl
字号:
</#if> <#elseif "TELECOM_NUMBER" = contactMech.contactMechTypeId> <#assign telecomNumber = contactMechMap.telecomNumber> <div class="tabletext"> ${telecomNumber.countryCode?if_exists} <#if telecomNumber.areaCode?has_content>${telecomNumber.areaCode?default("000")}-</#if>${telecomNumber.contactNumber?default("000-0000")} <#if partyContactMech.extension?has_content>${uiLabelMap.PartyContactExt} ${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="linktext">(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="linktext">(lookup:whitepages.com)</a> </#if> </div> <#elseif "EMAIL_ADDRESS" = contactMech.contactMechTypeId> <div class="tabletext"> ${contactMech.infoString?if_exists} <a href="<@ofbizUrl>EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&partyId=${party.partyId}&communicationEventTypeId=EMAIL_COMMUNICATION&contactMechIdTo=${contactMech.contactMechId}&contactMechTypeId=EMAIL_ADDRESS<#if thisUserPrimaryEmail?has_content>&contactMechIdFrom=${thisUserPrimaryEmail.contactMechId}</#if></@ofbizUrl>" class="linktext">(${uiLabelMap.CommonSendEmail})</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="linktext">(${uiLabelMap.CommonOpenPageNewWindow})</a> </div> <#else> <div class="tabletext"> ${contactMech.infoString?if_exists} </div> </#if> <div class="tabletext">(${uiLabelMap.CommonUpdated}: ${partyContactMech.fromDate.toString()})</div> <#if partyContactMech.thruDate?has_content><div class="tabletext"><b>${uiLabelMap.PartyContactEffectiveThru}: ${partyContactMech.thruDate.toString()}</b></div></#if> </td> <td align="center" valign="top" nowrap width="1%"><div class="tabletext"><b>(${partyContactMech.allowSolicitation?if_exists})</b></div></td> <td width="5"> </td> <#if security.hasEntityPermission("PARTYMGR", "_UPDATE", session)> <td align="right" valign="top" nowrap width="1%"> <div><a href="<@ofbizUrl>editcontactmech?partyId=${party.partyId}&contactMechId=${contactMech.contactMechId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUpdate}</a> </div> </td> </#if> <#if security.hasEntityPermission("PARTYMGR", "_DELETE", session)> <td align="right" valign="top" width="1%"> <div><a href="<@ofbizUrl>deleteContactMech/viewprofile?partyId=${party.partyId}&contactMechId=${contactMech.contactMechId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonExpire}</a> </div> </td> </#if> </tr> </#list> </table> <#else> <div class="tabletext">${uiLabelMap.PartyNoContactInformation}</div> </#if> </div></div><#-- Payment Info ============================================================= --><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <#if security.hasEntityPermission("PAY_INFO", "_CREATE", session)> <a href="<@ofbizUrl>editcreditcard?partyId=${party.partyId}</@ofbizUrl>" class="submenutext">${uiLabelMap.AccountingCreateNewCreditCard}</a> <a href="<@ofbizUrl>editgiftcard?partyId=${party.partyId}</@ofbizUrl>" class="submenutext">${uiLabelMap.AccountingCreateNewGiftCard}</a> <a href="<@ofbizUrl>editeftaccount?partyId=${party.partyId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.AccountingCreateNewEftAccount}</a> </#if> </div> <div class="boxhead"> ${uiLabelMap.PartyPaymentMethodInformation}</div> </div> <div class="screenlet-body"> <#if paymentMethodValueMaps?has_content> <table width="100%" border="0" cellpadding="1"> <tr> <td align="left"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <#list paymentMethodValueMaps as paymentMethodValueMap> <#assign paymentMethod = paymentMethodValueMap.paymentMethod/> <tr> <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId> <#assign creditCard = paymentMethodValueMap.creditCard/> <td width="90%" valign="top"> <div class="tabletext"> <b> ${uiLabelMap.AccountingCreditCard}: <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard} </#if> <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard} </#if> ${creditCard.firstNameOnCard} <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard} </#if> ${creditCard.lastNameOnCard} <#if creditCard.suffixOnCard?has_content> ${creditCard.suffixOnCard}</#if> - <#if security.hasEntityPermission("PAY_INFO", "_VIEW", session)> ${creditCard.cardType} ${creditCard.cardNumber} ${creditCard.expireDate} <#else> ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)} </#if> </b> <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> <#if paymentMethod.glAccountId?has_content>(for GL Account ${paymentMethod.glAccountId})</#if> <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate?if_exists})</#if> <#if paymentMethod.thruDate?has_content><b>(${uiLabelMap.PartyContactEffectiveThru}: ${paymentMethod.thruDate})</b></#if> </div> </td> <td width="5"> </td> <td align="right" valign="top" width="1%" nowrap> <div> <#if security.hasEntityPermission("MANUAL", "_PAYMENT", session)> <a href="/accounting/control/manualETx?paymentMethodId=${paymentMethod.paymentMethodId}${externalKeyParam}" class="buttontext">Manual Tx</a> </#if> <#if security.hasEntityPermission("PAY_INFO", "_UPDATE", session)> <a href="<@ofbizUrl>editcreditcard?partyId=${party.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUpdate}</a> </#if> </div> </td> <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId> <#assign giftCard = paymentMethodValueMap.giftCard> <td width="90%" valign="top"> <div class="tabletext"> <b> ${uiLabelMap.AccountingGiftCard}: <#if security.hasEntityPermission("PAY_INFO", "_VIEW", session)> ${giftCard.cardNumber?default("N/A")} [${giftCard.pinNumber?default("N/A")}] <#else> <#if giftCard?has_content && giftCard.cardNumber?has_content> <#assign giftCardNumber = ""> <#assign pcardNumber = giftCard.cardNumber> <#if pcardNumber?has_content> <#assign psize = pcardNumber?length - 4> <#if 0 < psize> <#list 0 .. psize-1 as foo> <#assign giftCardNumber = giftCardNumber + "*"> </#list> <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]> <#else> <#assign giftCardNumber = pcardNumber> </#if> </#if> </#if> ${giftCardNumber?default("N/A")} </#if> </b> <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> <#if paymentMethod.glAccountId?has_content>(for GL Account ${paymentMethod.glAccountId})</#if> <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate?if_exists})</#if> <#if paymentMethod.thruDate?has_content><b>(${uiLabelMap.PartyContactEffectiveThru}: ${paymentMethod.thruDate.toString()}</b></#if> </div> </td> <td width="5"> </td> <td align="right" valign="top" width="1%" nowrap> <#if security.hasEntityPermission("PAY_INFO", "_UPDATE", session)> <div><a href="<@ofbizUrl>editgiftcard?partyId=${party.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUpdate}</a></div> </#if> </td> <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId> <#assign eftAccount = paymentMethodValueMap.eftAccount> <td width="90%" valign="top"> <div class="tabletext"> <b> ${uiLabelMap.PartyEftAccount}: ${eftAccount.nameOnAccount} - <#if eftAccount.bankName?has_content>${uiLabelMap.PartyBank}: ${eftAccount.bankName}</#if> <#if eftAccount.accountNumber?has_content>${uiLabelMap.PartyAccount} #: ${eftAccount.accountNumber}</#if> </b> <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> <#if paymentMethod.glAccountId?has_content>(for GL Account ${paymentMethod.glAccountId})</#if> <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate?if_exists})</#if> <#if paymentMethod.thruDate?has_content><b>(${uiLabelMap.PartyContactEffectiveThru}: ${paymentMethod.thruDate.toString()}</b></#if> </div> </td> <td width="5"> </td> <td align="right" valign="top" width="1%" nowrap> <#if security.hasEntityPermission("PAY_INFO", "_UPDATE", session)> <div><a href="<@ofbizUrl>editeftaccount?partyId=${party.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUpdate}</a></div> </#if> </td> <#elseif "COMPANY_CHECK" == paymentMethod.paymentMethodTypeId> <td width="90%" valign="top"> <div class="tabletext"> <b>Company Check</b> <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> <#if paymentMethod.glAccountId?has_content>(for GL Account ${paymentMethod.glAccountId})</#if> <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate?if_exists})</#if> <#if paymentMethod.thruDate?has_content><b>(${uiLabelMap.PartyContactEffectiveThru}: ${paymentMethod.thruDate.toString()}</b></#if> </div> </td> <td width="5"> </td> <td align="right" valign="top" width="1%" nowrap> </td> </#if> <td align="right" valign="top" width="1%"> <#if security.hasEntityPermission("PAY_INFO", "_DELETE", session)> <div><a href="<@ofbizUrl>deletePaymentMethod/viewprofile?partyId=${party.partyId}&paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonExpire}</a></div> </#if> </td> </tr> </#list> </table> </td> </tr> </table> <#else> <div class="tabletext">${uiLabelMap.PartyNoPaymentMethodInformation}</div> </#if> </div></div><#-- AVS Strings --><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.PartyCybersourceAvsOver}</div> </div> <div class="screenlet-body"> <div class="tabletext"> <b>${uiLabelMap.PartyAvsString}:</b> ${(avsOverride.avsDeclineString)?default("Global")} <#if security.hasEntityPermission("PARTYMGR", "_UPDATE", session)> <a href="<@ofbizUrl>editAvsOverride?partyId=${party.partyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonEdit}</a> <#if avsOverride?exists> <a href="<@ofbizUrl>resetAvsOverride?partyId=${party.partyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonReset}</a> </#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -