diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-07-28 03:32:54 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-07-28 03:32:54 +0400 |
commit | 4b544aa9c09777426715b606319e54646bab5eda (patch) | |
tree | ab59bac1803b272272ca9d16ae69b65fd44a25ba /plugins/CoreHome/templates/datatable_actions.tpl | |
parent | e20c0f86431de3c35c3e5cf7f66d8d98c71aced7 (diff) |
- end of previous commit. For some reasons Tortoise didn't see these files, bad!
Diffstat (limited to 'plugins/CoreHome/templates/datatable_actions.tpl')
-rw-r--r-- | plugins/CoreHome/templates/datatable_actions.tpl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/CoreHome/templates/datatable_actions.tpl b/plugins/CoreHome/templates/datatable_actions.tpl new file mode 100644 index 0000000000..275a6a2daa --- /dev/null +++ b/plugins/CoreHome/templates/datatable_actions.tpl @@ -0,0 +1,40 @@ +<div id="{$id}" class="parentDivActions">
+{if isset($arrayDataTable.result) and $arrayDataTable.result == 'error'}
+ {$arrayDataTable.message}
+{else}
+ {if count($arrayDataTable) == 0}
+ <div id="emptyDatatable">{'CoreHome_TableNoData'|translate}</div>
+ {else}
+ <table cellspacing="0" class="dataTable dataTableActions">
+ <thead>
+ <tr>
+ {foreach from=$dataTableColumns item=column}
+ <th class="sortable" id="{$column.id}">{$column.name}</td>
+ {/foreach}
+ </tr>
+ </thead>
+
+ <tbody>
+ {foreach from=$arrayDataTable item=row}
+ <tr {if $row.idsubdatatable}class="rowToProcess subActionsDataTable" id="{$row.idsubdatatable}"{else} class="actionsDataTable rowToProcess"{/if}>
+ {foreach from=$dataTableColumns key=idColumn item=column}
+ <td>
+ {* 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>
+
+ </tfoot>
+ </table>
+ {/if}
+
+ {if $showFooter}
+ {include file="CoreHome/templates/datatable_footer.tpl"}
+ {/if}
+ {include file="CoreHome/templates/datatable_actions_js.tpl"}
+
+ {/if}
+</div>
|