📄 viewprofile.ftl
字号:
<div class="screenlet"> <div class="screenlet-header"> <div style="float: right;"> <#if profiledefs?has_content && profiledefs.defaultShipAddr?has_content && carrierShipMethods?has_content><a href="javascript:document.setdefaultshipmeth.submit();" class="submenutextright">${uiLabelMap.EcommerceSetDefault}</a></#if> </div> <div class="boxhead"> ${uiLabelMap.OrderDefaultShipmentMethod}</div> </div> <div class="screenlet-body"> <table width="100%" border="0" cellpadding="1"> <#if profiledefs?has_content && profiledefs.defaultShipAddr?has_content && carrierShipMethods?has_content> <#list carrierShipMethods as shipMeth> <#assign shippingMethod = shipMeth.shipmentMethodTypeId + "@" + shipMeth.partyId> <tr> <td width="5%"> </td> <td width="1"> <div class="tabletext"><nobr><#if shipMeth.partyId != "_NA_">${shipMeth.partyId?if_exists} </#if>${shipMeth.description?if_exists}</nobr></div> </td> <td><input type="radio" name="defaultShipMeth" value="${shippingMethod}" <#if profiledefs.defaultShipMeth?default("") == shippingMethod>checked</#if>></td> </tr> </#list> <#else> <div class="tabletext">${uiLabelMap.OrderDefaultShipmentMethodMsg}</div> </#if> </table> </div></div></form><#-- ============================================================= --><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.EcommerceFileManager}</div> </div> <div class="screenlet-body"> <table width="100%" border="0" cellpadding="1"> <#if partyContent?has_content> <#list partyContent as contentRole> <#assign content = contentRole.getRelatedOne("Content")> <#assign contentType = content.getRelatedOneCache("ContentType")> <#assign mimeType = content.getRelatedOneCache("MimeType")> <#assign status = content.getRelatedOneCache("StatusItem")> <tr> <td><a href="<@ofbizUrl>img/${content.contentName}?imgId=${content.dataResourceId}</@ofbizUrl>" class="buttontext">${content.contentId}</a> <td><div class="tabletext">${content.contentName?if_exists}</div></td> <td><div class="tabletext">${(contentType.description)?if_exists}</div></td> <td><div class="tabletext">${(mimeType.description)?if_exists}</div></td> <td><div class="tabletext">${(status.description)?if_exists}</div></td> <td><div class="tabletext">${contentRole.fromDate?if_exists}</div></td> <td align="right"> <a href="<@ofbizUrl>img/${content.contentName}?imgId=${content.dataResourceId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonView}</a> <a href="<@ofbizUrl>removePartyAsset?contentId=${contentRole.contentId}&partyId=${contentRole.partyId}&roleTypeId=${contentRole.roleTypeId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a> </td> </tr> </#list> <#else> <div class="tabletext">${uiLabelMap.EcommerceNoFiles}</div> </#if> </table> <div> </div> <div align="right" class="head3"><b><u>${uiLabelMap.EcommerceUploadNewFile}</u></b> <div> </div> <form method="post" enctype="multipart/form-data" action="<@ofbizUrl>createPartyAsset</@ofbizUrl>" style="margin: 0;"> <input type="hidden" name="dataCategoryId" value="PERSONAL"/> <input type="hidden" name="contentTypeId" value="DOCUMENT"/> <input type="hidden" name="statusId" value="CTNT_PUBLISHED"/> <input type="file" name="uploadedFile" size="50" class="inputBox"/> <input type="submit" value="Upload" class="smallSubmit"/> </form> </div> </div></div><#-- ============================================================= --><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.PartyContactLists}</div> </div> <div class="screenlet-body"> <table width="100%" border="0" cellpadding="1" cellspacing="0"> <tr> <td width="15%" nowrap><div class="tableheadtext">${uiLabelMap.EcommerceListName}</div></td> <#-- <td width="15%" nowrap><div class="tableheadtext">${uiLabelMap.EcommerceListType}</div></td> --> <td width="15%" nowrap><div class="tableheadtext">${uiLabelMap.CommonFromDate}</div></td> <td width="15%" nowrap><div class="tableheadtext">${uiLabelMap.CommonThruDate}</div></td> <td width="15%" nowrap><div class="tableheadtext">${uiLabelMap.CommonStatus}</div></td> <td width="5"> </td> <td width="20%" nowrap><div class="tableheadtext"><b> </b></div></td> </tr> <#list contactListPartyList as contactListParty> <#assign contactList = contactListParty.getRelatedOne("ContactList")/> <#assign statusItem = contactListParty.getRelatedOneCache("StatusItem")?if_exists/> <#-- <#assign contactListType = contactList.getRelatedOneCache("ContactListType")/> --> <tr><td colspan="6"><hr class="sepbar"/></td></tr> <tr> <td width="15%"><div class="tabletext"><b>${contactList.contactListName?if_exists}</b><#if contactList.description?has_content> - ${contactList.description}</#if></div></td> <#-- <td width="15%"><div class="tabletext">${contactListType.description?if_exists}</div></td> --> <td width="15%"><div class="tabletext">${contactListParty.fromDate?if_exists}</div></td> <td width="15%"><div class="tabletext">${contactListParty.thruDate?if_exists}</div></td> <td width="15%"><div class="tabletext">${(statusItem.description)?if_exists}</div></td> <td width="5"> </td> <td width="20%" nowrap> <#if (contactListParty.statusId?if_exists == "CLPT_ACCEPTED")> <a href="<@ofbizUrl>updateContactListParty?partyId=${party.partyId}&contactListId=${contactListParty.contactListId}&fromDate=${contactListParty.fromDate}&statusId=CLPT_REJECTED</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonUnsubscribe}</a> <#elseif (contactListParty.statusId?if_exists == "CLPT_PENDING")> <form method="post" action="<@ofbizUrl>updateContactListParty</@ofbizUrl>" name="clistAcceptForm${contactListParty_index}"> <input type="hidden" name="partyId" value="${party.partyId}"/> <input type="hidden" name="contactListId" value="${contactListParty.contactListId}"/> <input type="hidden" name="fromDate" value="${contactListParty.fromDate}"/> <input type="hidden" name="statusId" value="CLPT_ACCEPTED"/> <input type="text" size="10" name="optInVerifyCode" value="" class="inputBox"/> <input type="submit" value="${uiLabelMap.CommonVerifySubscription}" class="smallSubmit"/> </form> <#elseif (contactListParty.statusId?if_exists == "CLPT_REJECTED")> <a href="<@ofbizUrl>updateContactListParty?partyId=${party.partyId}&contactListId=${contactListParty.contactListId}&fromDate=${contactListParty.fromDate}&statusId=CLPT_PENDING</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonSubscribe}</a> </#if> </td> </tr> </#list> </table> <hr class="sepbar"/> <div> <form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="clistPendingForm"> <input type="hidden" name="partyId" value="${party.partyId}"/> <input type="hidden" name="statusId" value="CLPT_PENDING"/> <span class="tableheadtext">${uiLabelMap.CommonNewListSubscription}: </span> <select name="contactListId" class="selectBox"> <#list publicContactLists as publicContactList> <#-- <#assign publicContactListType = publicContactList.getRelatedOneCache("ContactListType")> --> <#assign publicContactMechType = publicContactList.getRelatedOneCache("ContactMechType")?if_exists> <option value="${publicContactList.contactListId}">${publicContactList.contactListName?if_exists} <#-- ${publicContactListType.description} --> <#if publicContactMechType?has_content>[${publicContactMechType.description}]</#if></option> </#list> </select> <select name="preferredContactMechId" class="selectBox"> <#-- <option></option> --> <#list partyAndContactMechList as partyAndContactMech> <option value="${partyAndContactMech.contactMechId}"><#if partyAndContactMech.infoString?has_content>${partyAndContactMech.infoString}<#elseif partyAndContactMech.tnContactNumber?has_content>${partyAndContactMech.tnCountryCode?if_exists}-${partyAndContactMech.tnAreaCode?if_exists}-${partyAndContactMech.tnContactNumber}<#elseif partyAndContactMech.paAddress1?has_content>${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2?if_exists}, ${partyAndContactMech.paCity?if_exists}, ${partyAndContactMech.paStateProvinceGeoId?if_exists}, ${partyAndContactMech.paPostalCode?if_exists}, ${partyAndContactMech.paPostalCodeExt?if_exists} ${partyAndContactMech.paCountryGeoId?if_exists}</#if></option> </#list> </select> <input type="submit" value="${uiLabelMap.CommonSubscribe}" class="smallSubmit"/> </form> </div> <div class="tabletext"> ${uiLabelMap.EcommerceListNote} </div> </div></div><#-- ============================================================= --><#if surveys?has_content><div class="screenlet"> <div class="screenlet-header"> <div class="boxhead"> ${uiLabelMap.EcommerceSurveys}</div> </div> <div class="screenlet-body"> <table width="100%" border="0" cellpadding="1"> <#list surveys as surveyAppl> <#assign survey = surveyAppl.getRelatedOne("Survey")> <tr> <td> </td> <td align="left" valign="top" width="10%" nowrap><div class="tabletext"><b>${survey.surveyName?if_exists}</b> - ${survey.description?if_exists}</div></td> <td width="5"> </td> <td align="left" valign="top" width="70%"> <#assign responses = Static["org.ofbiz.product.store.ProductStoreWorker"].checkSurveyResponse(request, survey.surveyId)?default(0)> <div class="tabletext"><#if (responses < 1)><font color="red"><b>${uiLabelMap.EcommerceNotCompleted}</b><#else>${uiLabelMap.EcommerceCompleted}</#if></div> </td> <#if (responses == 0 || survey.allowMultiple?default("N") == "Y")> <#assign surveyLabel = uiLabelMap.EcommerceTakeSurvey> <#if (responses > 0 && survey.allowUpdate?default("N") == "Y")> <#assign surveyLabel = uiLabelMap.EcommerceUpdateSurvey> </#if> <td align="right" width="10%" nowrap><a href="<@ofbizUrl>takesurvey?productStoreSurveyId=${surveyAppl.productStoreSurveyId}</@ofbizUrl>" class="buttontext">${surveyLabel}</a></td> <#else> </#if> </tr> </#list> </table> </div></div></#if><#-- ============================================================= --><#-- only 5 messages will show; edit the viewprofile.bsh to change this number -->${screens.render("component://ecommerce/widget/CustomerScreens.xml#messagelist-include")}<#else> <div class="head3">${uiLabelMap.PartyNoPartyForCurrentUserName}: ${userLogin.userLoginId}</div></#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -