開源 免費 java CMS - FreeCMS1.2-標籤 questionOne

下載地址:http://code.google.com/p/freecms/  html

questionOne 緩存

FreeCMS 1.2 開始支持 google

提取指定id的網上調查。 spa

參數 3d

說明 code

id htm

網上調查id 對象

cache ci

是否使用緩存,默認爲false get

 

 

返回值

說明

question

網上調查對象

answerList

選項對象列表

 

網上調查提交表單,可參見模板管理中模板示例庫/網上調查/questionOne.html

 

示例1

提取指定id網上調查,並顯示網上調查選項。

<@questionOne id="03d86aaa-0b64-44a4-a1ff-e154591a8379" ; question,answerList>

${question.name!""}

<table>

<tr><td>選項</td><td>選擇次數</td><td>佔比</td></tr>

    <#list answerList as answer>

<tr><td>${answer.name!""}</td><td>${answer.selectnum!0}</td><td>${((answer.selectnum!0)/(question.selectnum!1))?string.percent}</td>

    </tr>

    </#list>

</table>

</@questionOne>
相關文章
相關標籤/搜索