diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-01-14 06:40:55 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-01-14 06:40:55 +0300 |
commit | 76071515bf1aa9e1def7f4c185b1ab0cc9c385e6 (patch) | |
tree | 3f10980a093701ec7d7b69af024a6dedca08e0fe /plugins/CoreHome/templates/datatable.tpl | |
parent | 032b512a4262fa432e5c2aa97d35daaab912ca2b (diff) |
Fixing #452
Diffstat (limited to 'plugins/CoreHome/templates/datatable.tpl')
-rw-r--r-- | plugins/CoreHome/templates/datatable.tpl | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/plugins/CoreHome/templates/datatable.tpl b/plugins/CoreHome/templates/datatable.tpl index 55291ee9ea..a8c204e478 100644 --- a/plugins/CoreHome/templates/datatable.tpl +++ b/plugins/CoreHome/templates/datatable.tpl @@ -1,42 +1,42 @@ -<div id="{$properties.uniqueId}">
- <div class="{if isset($javascriptVariablesToSet.idSubtable)&& $javascriptVariablesToSet.idSubtable!=0}sub{/if}{if $javascriptVariablesToSet.viewDataTable=='tableAllColumns'}dataTableAllColumnsWrapper{elseif $javascriptVariablesToSet.viewDataTable=='tableGoals'}dataTableAllColumnsWrapper{else}dataTableWrapper{/if}">
- {if isset($arrayDataTable.result) and $arrayDataTable.result == 'error'}
- {$arrayDataTable.message}
- {else}
- {if count($arrayDataTable) == 0}
- <div id="emptyDatatable">{'CoreHome_TableNoData'|translate}</div>
- {else}
- <a name="{$properties.uniqueId}"></a>
- <table cellspacing="0" class="dataTable">
- <thead>
- <tr>
- {foreach from=$dataTableColumns item=column}
- <th class="sortable" id="{$column.name}"><div id="thDIV">{$column.displayName}</div></th>
- {/foreach}
- </tr>
- </thead>
-
- <tbody>
- {foreach from=$arrayDataTable item=row}
- <tr {if $row.idsubdatatable && $javascriptVariablesToSet.controllerActionCalledWhenRequestSubTable != null}class="subDataTable" id="{$row.idsubdatatable}"{/if}>
-{foreach from=$dataTableColumns item=column}
-<td>
-{if !$row.idsubdatatable && $column.name=='label' && isset($row.metadata.url)}<span id="urlLink">{$row.metadata.url}</span>{/if}
-{if $column.name=='label'}{logoHtml metadata=$row.metadata alt=$row.columns.label}{/if}
-{* sometimes all columns are not set in the datatable, we assume the value 0 *}
-{if isset($row.columns[$column.name])}{$row.columns[$column.name]}{else}0{/if}
-</td>
-{/foreach}
- </tr>
- {/foreach}
- </tbody>
- </table>
- {/if}
-
- {if $properties.show_footer}
- {include file="CoreHome/templates/datatable_footer.tpl"}
- {/if}
- {include file="CoreHome/templates/datatable_js.tpl"}
- {/if}
- </div>
-</div>
+<div id="{$properties.uniqueId}"> + <div class="{if isset($javascriptVariablesToSet.idSubtable)&& $javascriptVariablesToSet.idSubtable!=0}sub{/if}{if $javascriptVariablesToSet.viewDataTable=='tableAllColumns'}dataTableAllColumnsWrapper{elseif $javascriptVariablesToSet.viewDataTable=='tableGoals'}dataTableAllColumnsWrapper{else}dataTableWrapper{/if}"> + {if isset($arrayDataTable.result) and $arrayDataTable.result == 'error'} + {$arrayDataTable.message} + {else} + {if count($arrayDataTable) == 0} + <div id="emptyDatatable">{'CoreHome_TableNoData'|translate}</div> + {else} + <a name="{$properties.uniqueId}"></a> + <table cellspacing="0" class="dataTable"> + <thead> + <tr> + {foreach from=$dataTableColumns item=column} + <th class="sortable" id="{$column.name}"><div id="thDIV">{$column.displayName}</div></th> + {/foreach} + </tr> + </thead> + + <tbody> + {foreach from=$arrayDataTable item=row} + <tr {if $row.idsubdatatable && $javascriptVariablesToSet.controllerActionCalledWhenRequestSubTable != null}class="subDataTable" id="{$row.idsubdatatable}"{/if}> +{foreach from=$dataTableColumns item=column} +<td> +{if !$row.idsubdatatable && $column.name=='label' && isset($row.metadata.url)}<span id="urlLink">{$row.metadata.url}</span>{/if} +{if $column.name=='label'}{logoHtml metadata=$row.metadata alt=$row.columns.label}{/if} +{* sometimes all columns are not set in the datatable, we assume the value 0 *} +{if isset($row.columns[$column.name])}{$row.columns[$column.name]}{else}0{/if} +</td> +{/foreach} + </tr> + {/foreach} + </tbody> + </table> + {/if} + + {if $properties.show_footer} + {include file="CoreHome/templates/datatable_footer.tpl"} + {/if} + {include file="CoreHome/templates/datatable_js.tpl"} + {/if} + </div> +</div> |