下載地址:http://code.google.com/p/freecms/ html
questionPage 緩存
從FreeCMS 1.2 開始支持 google
根據參數提取網上調查分頁對象。 spa
參數 code |
說明 orm |
id htm |
網上調查id 對象 |
name 排序 |
名稱 ci |
selecttype |
選擇類型 空字符串表示全部(默認) 0單選 1多選 |
order |
排序 1時間倒序(默認) 2時間正序 |
isok |
有效 空字符串表示全部(默認) 0無效 1有效 |
num |
數量 |
cache |
是否使用緩存,默認爲false |
page |
當前第幾頁,默認1 |
action |
分頁跳轉頁面 |
返回值 |
說明 |
questionList |
網上調查對象列表,類型爲List<數據對象question> |
pager |
分頁對象 |
示例1
分頁提取全部網上調查,每頁顯示10條。
<@questionPage num='10' page='${page!1}' action='${contextPath}templet_pro.do?siteid=${site.id}&templetPath=question.html';questionList,pager>
<ul>
<#list questionList as question>
<li>
${question.name}
</li>
</#list>
</ul>
${pager.formPageStr}
</@questionPage>