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

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

mailPage 緩存

FreeCMS 1.2 開始支持 google

根據參數提取信件分頁對象。 spa

參數 code

說明 orm

querycode htm

查詢碼 對象

title 排序

標題 ci

num

提取數量

order

排序類型 

1發表時間降序(默認)

2發表時間升序

3回覆時間降序

4回覆時間升序

titleLen

標題顯示長度

writer

寫信人

type

類型

unit部門信件

user我的信件

other 其餘信件

空字符串表示全部(默認)

mailtype

信件類型

state

辦理狀態 空字符串表示全部(默認) 1已辦結 0辦理中

isopen

是否公開 空字符串表示全部(默認) 1公開 0不公開

userid

指定用戶id

unitid

指定部門id

cache

是否使用緩存,默認爲false

page

當前第幾頁,默認1

action

分頁跳轉頁面

 

 

返回值

說明

mailList

信件對象列表,類型爲List<數據對象mail>

pager

分頁對象

 

示例1

分頁提取全部信件,每頁顯示10條。

<@mailPage  num='10' page='${page}' action='${contextPath}templet_pro.do?siteid=${site.id}&templetPath=mail.html';mailList,pager>

 

<ul>

    <#list mailList as mail>

    <li>

        分頁:${mail.title}

    </li>

    </#list>

</ul>

${pager.formPageStr}

</@mailPage>

相關文章
相關標籤/搜索