diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-11-19 22:30:17 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-11-19 22:30:17 +0300 |
commit | 8a477ff8a2e17275bb1d61c989c913e2cba22f58 (patch) | |
tree | 405324e2d30150a1089662cbc2698cdacfb5afba /plugins/CoreHome/templates/datatable.tpl | |
parent | d49eecec95325389f8dd2fe6429884a746c2886c (diff) |
- New feature: adding icon under the data tables, so you can vizualize more data for a given report. It provides an easy 1 click access to more insights. enjoy! (still beta)
Diffstat (limited to 'plugins/CoreHome/templates/datatable.tpl')
-rw-r--r-- | plugins/CoreHome/templates/datatable.tpl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/CoreHome/templates/datatable.tpl b/plugins/CoreHome/templates/datatable.tpl index 5cde2c9974..7fa2363943 100644 --- a/plugins/CoreHome/templates/datatable.tpl +++ b/plugins/CoreHome/templates/datatable.tpl @@ -1,4 +1,5 @@ -<div id="{$id}" class="parentDiv">
+<div id="{$id}">
+ <div class="{if $javascriptVariablesToSet.showAllColumns}dataTableAllColumnsWrapper{else}dataTableWrapper{/if}">
{if isset($arrayDataTable.result) and $arrayDataTable.result == 'error'}
{$arrayDataTable.message}
{else}
@@ -10,7 +11,7 @@ <thead>
<tr>
{foreach from=$dataTableColumns item=column}
- <th class="sortable" id="{$column.id}"><div id="thDIV">{$column.displayName}</div></th>
+ <th class="sortable" id="{$column.name}"><div id="thDIV">{$column.displayName}</div></th>
{/foreach}
</tr>
</thead>
@@ -18,12 +19,12 @@ <tbody>
{foreach from=$arrayDataTable item=row}
<tr {if $row.idsubdatatable}class="subDataTable" id="{$row.idsubdatatable}"{/if}>
- {foreach from=$dataTableColumns key=idColumn item=column}
+ {foreach from=$dataTableColumns item=column}
<td>
- {if $idColumn==0 && isset($row.metadata.url)}<span id="urlLink">{$row.metadata.url}</span>{/if}
- {if $idColumn==0 && isset($row.metadata.logo)}<img {if isset($row.metadata.logoWidth)}width="{$row.metadata.logoWidth}"{/if} {if isset($row.metadata.logoHeight)}height="{$row.metadata.logoHeight}"{/if} src="{$row.metadata.logo}" />{/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}
+ {if $column.name=='label' && isset($row.metadata.url)}<span id="urlLink">{$row.metadata.url}</span>{/if}
+ {if $column.name=='label' && isset($row.metadata.logo)}<img {if isset($row.metadata.logoWidth)}width="{$row.metadata.logoWidth}"{/if} {if isset($row.metadata.logoHeight)}height="{$row.metadata.logoHeight}"{/if} src="{$row.metadata.logo}" />{/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>
@@ -37,4 +38,5 @@ {/if}
{include file="CoreHome/templates/datatable_js.tpl"}
{/if}
+ </div>
</div>
|