📄 viewprofile.ftl
字号:
<#-- * Copyright (c) 2002-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 Johan Isacsson * @author David E. Jones * @author Andy Zeneski * @author Olivier Heintz (olivier.heintz@nereide.biz) * @created May 26 2003 */--><#if party?has_content><div style="text-align: right;"> <#if showOld> <a href="<@ofbizUrl>viewprofile?partyId=${party.partyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyHideOld}</a> <#else> <a href="<@ofbizUrl>viewprofile?partyId=${party.partyId}&SHOW_OLD=true</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyShowOld}</a> </#if></div><br/><div class="screenlet"> <div class="screenlet-header"> <#if lookupPerson?has_content> <div style="float: right;"> <#if security.hasEntityPermission("PARTYMGR", "_UPDATE", session)> <a href="<@ofbizUrl>editperson?partyId=${party.partyId}</@ofbizUrl>" class="submenutextright"> <#if lookupPerson?has_content>${uiLabelMap.CommonUpdate}</#if></a> </#if> </div> <div class="boxhead"> ${uiLabelMap.PartyPersonalInformation}</div> </#if> <#if lookupGroup?has_content> <#assign lookupPartyType = party.getRelatedOneCache("PartyType")> <div style="float: right;"> <#if security.hasEntityPermission("PARTYMGR", "_UPDATE", session)> <a href="<@ofbizUrl>editpartygroup?partyId=${party.partyId}</@ofbizUrl>" class="submenutextright"> <#if lookupGroup?has_content>${uiLabelMap.CommonUpdate}</#if></a> </#if> </div> <div class="boxhead"> ${uiLabelMap.PartyPartyGroupInformation}</div> </#if> </div> <div class="screenlet-body"><#if lookupPerson?has_content> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" width="10%"><div class="tabletext"><b>${uiLabelMap.PartyName}</b></div></td> <td width="5"> </td> <td align="left" width="90%"> <div class="tabletext"> ${lookupPerson.personalTitle?if_exists} ${lookupPerson.firstName?if_exists} ${lookupPerson.middleName?if_exists} ${lookupPerson.lastName?if_exists} ${lookupPerson.suffix?if_exists} </div> </td> </tr> <#if lookupPerson.nickname?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyNickname}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.nickname}</div></td></tr> </#if> <#if lookupPerson.gender?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyGender}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.gender}</div></td></tr> </#if> <#if lookupPerson.birthDate?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyBirthDate}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.birthDate.toString()}</div></td></tr> </#if> <#if lookupPerson.height?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyHeight}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.height}</div></td></tr> </#if> <#if lookupPerson.weight?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyWeight}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.weight}</div></td></tr> </#if> <#if lookupPerson.mothersMaidenName?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyMothersMaidenName}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.mothersMaidenName}</div></td></tr> </#if> <#if lookupPerson.maritalStatus?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyMaritalStatus}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.maritalStatus}</div></td></tr> </#if> <#if lookupPerson.socialSecurityNumber?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartySocialSecurityNumber}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.socialSecurityNumber}</div></td></tr> </#if> <#if lookupPerson.passportNumber?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyPassportNumber}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.passportNumber}</div></td></tr> </#if> <#if lookupPerson.passportExpireDate?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyPassportExpire}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.passportExpireDate.toString()}</div></td></tr> </#if> <#if lookupPerson.totalYearsWorkExperience?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyYearsWork}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.totalYearsWorkExperience}</div></td></tr> </#if> <#if lookupPerson.comments?has_content> <tr><td align="right" nowrap><div class="tabletext"><b>${uiLabelMap.PartyComments}</b></div></td><td> </td><td align="left"><div class="tabletext">${lookupPerson.comments}</div></td></tr> </#if> </table><#elseif lookupGroup?has_content> <div class="tabletext">${lookupGroup.groupName} (${(lookupPartyType.description)?if_exists})</div><#else> <div class="tabletext">${uiLabelMap.PartyInformationNotFound}</div></#if> <#if partyNameHistoryList?has_content> <div><hr class="sepbar"/></div> <div class="tableheadtext">Name History</div> <#list partyNameHistoryList as partyNameHistory> <#if lookupPerson?has_content> <div class="tabletext">Was: ${partyNameHistory.personalTitle?if_exists} ${partyNameHistory.firstName?if_exists} ${partyNameHistory.middleName?if_exists} ${partyNameHistory.lastName?if_exists} ${partyNameHistory.suffix?if_exists} (Changed: ${partyNameHistory.changeDate})</div> <#elseif lookupGroup?has_content> <div class="tabletext">Was: ${partyNameHistory.groupName?if_exists} (Changed: ${partyNameHistory.changeDate})</div> </#if> </#list> </#if> </div></div><#-- ============================================================= --><#if monthsToInclude?exists && totalSubRemainingAmount?exists && totalOrders?exists><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> Loyalty Points</div> </div> <div class="screenlet-body"> <div class="tabletext">You have ${totalSubRemainingAmount} points from ${totalOrders} order(s) in the last ${monthsToInclude} months.</div> </div></div></#if><#-- ============================================================= --><div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <#if security.hasEntityPermission("PARTYMGR", "_CREATE", session)> <a href="<@ofbizUrl>editcontactmech?partyId=${party.partyId}</@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonCreateNew}</a> </#if> </div> <div class="boxhead"> ${uiLabelMap.PartyContactInformation}</div> </div> <div class="screenlet-body"> <#if contactMeches?has_content> <table width="100%" border="0" cellpadding="0"> <tr align="left" valign=bottom> <th><div class="tableheadtext">${uiLabelMap.PartyContactType}</th> <th width="5"> </th> <th><div class="tableheadtext">${uiLabelMap.PartyContactInformation}</th> <th colspan="2"><div class="tableheadtext">${uiLabelMap.PartyContactSolicitingOk}</th> <th> </th> </tr> <#list contactMeches as contactMechMap> <#assign contactMech = contactMechMap.contactMech> <#assign partyContactMech = contactMechMap.partyContactMech> <tr><td colspan="7"><hr class="sepbar"></td></tr> <tr> <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%"> <#list contactMechMap.partyContactMechPurposes as partyContactMechPurpose> <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")> <div class="tabletext"> <#if contactMechPurposeType?has_content> <b>${contactMechPurposeType.description}</b> <#else> <b>${uiLabelMap.PartyMechPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"</b> </#if> <#if partyContactMechPurpose.thruDate?has_content> (${uiLabelMap.CommonExpire}: ${partyContactMechPurpose.thruDate.toString()}) </#if> </div> </#list> <#if "POSTAL_ADDRESS" = contactMech.contactMechTypeId> <#assign postalAddress = contactMechMap.postalAddress> <div class="tabletext"> <#if postalAddress.toName?has_content><b>${uiLabelMap.PartyAddrToName}:</b> ${postalAddress.toName}<br/></#if> <#if postalAddress.attnName?has_content><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br/></#if> ${postalAddress.address1?if_exists}<br/> <#if postalAddress.address2?has_content>${postalAddress.address2}<br/></#if> ${postalAddress.city?if_exists}, <#if postalAddress.stateProvinceGeoId?has_content> <#assign stateProvince = postalAddress.getRelatedOneCache("StateProvinceGeo")> ${stateProvince.abbreviation?default(stateProvince.geoId)} </#if> ${postalAddress.postalCode?if_exists} <#if postalAddress.countryGeoId?has_content><br/> <#assign country = postalAddress.getRelatedOneCache("CountryGeo")> ${country.geoName?default(country.geoId)} </#if> </div> <#if (postalAddress?has_content && !postalAddress.countryGeoId?has_content) || postalAddress.countryGeoId = "USA"> <#assign addr1 = postalAddress.address1?if_exists> <#if (addr1.indexOf(" ") > 0)> <#assign addressNum = addr1.substring(0, addr1.indexOf(" "))> <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1)> <a target="_blank" href="http://www.whitepages.com/find_person_results.pl?fid=a&s_n=${addressNum}&s_a=${addressOther}&c=${postalAddress.city?if_exists}&s=${postalAddress.stateProvinceGeoId?if_exists}&x=29&y=18" class="linktext">(lookup:whitepages.com)</a> </#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -