⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showforumresponse.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#import "bloglib.ftl" as blog/><div class="screenlet" ><div class="head1">&nbsp;&nbsp;&nbsp;&nbsp;{${uiLabelMap.EcommerceFromSite}</div><br/><div style="margin:10px;" ><@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 /><#-- Do this so that we don't have to find the content twice (again in renderSubContent) --><#assign lastNode = globalNodeTrail?if_exists?last/><#if lastNode?has_content>  <#assign subContent=lastNode.value/><#else><#assign subContent = delegator.findByPrimaryKeyCache("Content", Static["org.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId))/><#assign dummy = globalNodeTrail.add(lastNode)/></#if><br/><div class="head1">${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName?if_exists} - ${subContent.description?if_exists}:</div><br/><#assign thisContentId=subContentId?if_exists><#if !thisContentId?has_content>    <#assign thisContentId=contentId?if_exists></#if><table border="0" width="100%" class="blogtext">    <tr>    <td width="40">&nbsp;</td>    <td>    <@renderSubContentCache subContentId=thisContentId />    </td>    <td width="40" valign="bottom"><@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" ><a class="tabButton" href="<@ofbizUrl>createforumresponse?contentIdTo=${subContentId}&amp;nodeTrailCsv=${nodeTrailCsv?if_exists}</@ofbizUrl>" >${uiLabelMap.EcommerceRespond}</a></@checkPermission><br/>    </td>    </tr></table><hr/><#--<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" >            ${permissionErrorMsg?if_exists}</@checkPermission>--><table border="0" width="100%" class="tableheadtext"><!-- Note that the "...When" arguments in the loopSubContentCache must be compatible with those in     any embedded transformSubContent, because it will assume that the first node has already     had its conditions checked.     It is not convenient to have the traverseSubContent check or recheck the first node     because the associated ContentAssoc entity is not known.-->        <div class="head1">${uiLabelMap.EcommerceResponses}</div><br/><@loopSubContentCache  contentAssocTypeId="RESPONSE" subContentId=subContentId mapKey=""                pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"                followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">    <@traverseSubContentCache  contentAssocTypeId="RESPONSE"                             pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"                            followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"                            wrapTemplateId=""                        >    <#assign indentStr=indent?default("0")/>    <#assign indent=indentStr?number/>    <#if 1 < indent >        <#assign fillRange=1..indent/>        <#assign indentFill=""/>        <#list fillRange as i>            <#assign indentFill = indentFill + "&nbsp;&nbsp;&nbsp;&nbsp;" />        </#list>        <#assign thisContentId = ""/>        <#if nodeTrailCsv?exists>            <#assign idList = nodeTrailCsv?split(",")/>            <#if 0 < idList?size >                <#assign thisContentId = idList?last>            </#if>        </#if>        <#if content?exists>  <tr>  <td class="tabletext">        ${indentFill}        <a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv?if_exists}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>                     ${content.contentId?if_exists}-${content.description?if_exists}<br/>  </td>  </tr>        </#if>    </#if>     </@traverseSubContentCache ></@loopSubContentCache ><#--<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" ></@wrapSubContentCache >--></table></div></div><#-- not used, will be deleted --><#macro getCurrentContent >    <#assign globalNodeTrail=globalNodeTrail/>    <#if globalNodeTrail?exists>        <#assign currentNode=globalNodeTrail?last/>        <#if currentNode?exists>            <#assign currentValue=currentNode.value/>            <#if currentValue?exists>                <@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" >                    <@traverseSubContentCache  contentAssocTypeId="SUB_CONTENT"                             pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"                            returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")"                            followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")"                            wrapTemplateId=""                        >                <#assign description=currentValue.description?default("No description")/>${uiLabelMap.CommonDescription}[${currentValue.contentId?if_exists}]:${description}<a class="tabButton" href="<@ofbizUrl>ViewBlog?contentId=${thisContentId}&amp;nodeTrailCsv=${nodeTrailCsv?if_exists}</@ofbizUrl>" >${uiLabelMap.CommonView}</a>                   </@traverseSubContentCache >                </@wrapSubContentCache>            </#if>        </#if>    </#if></#macro><#macro renderSiteAncestryPath trail startIndex=0 >    <#assign indent = "">    <#assign csv = "">    <#assign counter = 0>    <#assign len = trail?size>    <table border="0" class="tabletext" cellspacing="4">    <#list trail as webSitePublishPoint>        <#if counter < len && startIndex <= counter >       <tr>         <td >            ${indent}            <a class="tabButton" href="<@ofbizUrl>main?pubPt=${webSitePublishPoint.contentId?if_exists}</@ofbizUrl>" >${uiLabelMap.CommonBackTo}</a> &nbsp;${webSitePublishPoint.templateTitle?if_exists}                <#assign indent = indent + "&nbsp;&nbsp;&nbsp;&nbsp;">         [${webSitePublishPoint.contentId?if_exists}]</td>        </#if>       </tr>        <#assign counter = counter + 1>    <#if 20 < counter > <#break/></#if>    </#list>    </table></#macro>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -