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

📄 miniresult.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#-- *  Copyright (c) 2003 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     Andy Zeneski (jaz@ofbiz.org) *@version    $Rev: 6771 $ *@since      3.1--><table width="100%" border="0" cellpadding="2" cellspacing="0">  <#list surveyQuestionAndAppls as surveyQuestionAndAppl>    <#-- get an answer from the answerMap -->    <#if surveyAnswers?has_content>      <#assign answer = surveyAnswers.get(surveyQuestionAndAppl.surveyQuestionId)?if_exists>    </#if>    <#-- get the question results -->    <#if surveyResults?has_content>      <#assign results = surveyResults.get(surveyQuestionAndAppl.surveyQuestionId)?if_exists>    </#if>    <tr>      <#-- standard question options -->      <td align='left'>        <#assign answerString = "answers">        <#if (results._total?default(0) == 1)>           <#assign answerString = "answer">        </#if>        <div class="tabletext">${surveyQuestionAndAppl.question?if_exists} (${results._total?default(0)?string.number} ${answerString})</div>      </td>    </tr>    <tr>      <td><hr class="sepbar"/></td>    </tr>        <tr>      <td align="left">        <#if surveyQuestionAndAppl.surveyQuestionTypeId == "BOOLEAN">          <#assign selectedOption = (answer.booleanResponse)?default("Y")>          <div class="tabletext"><nobr>            <#if "Y" == selectedOption><b>==>&nbsp;<font color="red"></#if>${uiLabelMap.CommonY}<#if "Y" == selectedOption></font></b></#if>&nbsp;[${results._yes_total?default(0)?string("#")} / ${results._yes_percent?default(0)?string("#")}%]          </nobr></div>          <div class="tabletext"><nobr>            <#if "N" == selectedOption><b>==>&nbsp;<font color="red"></#if>${uiLabelMap.CommonN}<#if "N" == selectedOption></font></b></#if>&nbsp;[${results._no_total?default(0)?string("#")} / ${results._no_percent?default(0)?string("#")}%]          </nobr></div>        <#elseif surveyQuestionAndAppl.surveyQuestionTypeId == "OPTION">          <#assign options = surveyQuestionAndAppl.getRelated("SurveyQuestionOption", sequenceSort)?if_exists>          <#assign selectedOption = (answer.surveyOptionSeqId)?default("_NA_")>          <#if options?has_content>            <#list options as option>              <#assign optionResults = results.get(option.surveyOptionSeqId)?if_exists>                <div class="tabletext"><nobr>                  <#if option.surveyOptionSeqId == selectedOption><b>==>&nbsp;<font color="red"></#if>                  ${option.description?if_exists}                  <#if option.surveyOptionSeqId == selectedOption></font></b></#if>                  &nbsp;[${optionResults._total?default(0)?string("#")} / ${optionResults._percent?default(0?string("#"))}%]                </nobr></div>            </#list>          </#if>        <#else>          <div class="tabletext">${uiLabelMap.EcommerceUnsupportedQuestionType}${surveyQuestionAndAppl.surveyQuestionTypeId}</div>        </#if>      </td>    </tr>  </#list></table>

⌨️ 快捷键说明

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