All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.table.ftl Maven / Gradle / Ivy

There is a newer version: 3.5.3
Show newest version
[#ftl]
[#macro sortTd id extra...]
  [#if extra['name']??][@msg.text name="${extra['name']}"/][#else]${extra['text']}[/#if]
[/#macro]
[#macro td extra...]
  [#if extra['name']??][@msg.text name="${extra['name']}"/][#else]${extra['text']}[/#if]
[/#macro]
[#macro thead extra...]
  [#nested]
[/#macro]
[#macro  tr class]
  [#nested]
[/#macro]
[#macro selectAllTd id extra...]
  
[/#macro]
[#macro selectTd id value extra...]
  [#nested]
[/#macro]
 
[#macro table extra...]
  [#if extra['id']??]
    [#assign pageId="${extra['id']}"]
  [/#if]
  [#if !(cssClass??)][#assign cssClass="listTable"/][/#if]
  
  [#nested]
  [#if curPage?? && pageId??]
  [@page.bar pageId=pageId curPage=curPage sortable=extra['sortable']?? headIndex=extra['headIndex']!("0") scheme=extra['pageBarScheme']!"xhtml" fixPageSize=extra['fixPageSize']!"0" target=extra['target']!"" cssClass="darkColumn"/]
  [/#if]
  
[/#macro] [#macro tbody datas extra...] [#list datas as data] [#if data_index%2==1][#assign class="grayStyle"][/#if] [#if data_index%2==0][#assign class="brightStyle"][/#if] [@tr class="${class}"][#nested data,data_index][/@tr] [/#list] [#assign curPage=datas] [/#macro]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy