{if $dialog_tools_data}
{assign var="left" value=$dialog_tools_data.left}
{assign var="right" value=$dialog_tools_data.right}
{if $dialog_tools_data.columns}
{assign var="columns" value=$dialog_tools_data.columns}
{else}
{assign var="columns" value=1}
{/if}
{if $left or $dialog_tools_data.mc_left}
| {$lng.lbl_in_this_section}: |
{/if}
{if $right}
{$lng.lbl_see_also}: |
{/if}
|
{if $left or $dialog_tools_data.mc_left}{* If left or multi-column left is defined *}
{if $columns gt 1}
{if $dialog_tools_data.mc_left}
{assign_ext var="table_rows" value=$dialog_tools_data.mc_left}
{else}
{assign_ext var="table_rows[0]" value=$left}
{/if}
{foreach from=$table_rows item=table_row}
{if $table_row.title ne ""}
{include file="main/subheader.tpl" title=$table_row.title class="red"}
{/if}
{assign var="left" value=$table_row.data}
{section name=dt1 loop=$left}
{/section}
{assign var="total_rows" value=$smarty.section.dt1.total}
{math equation="ceil(x/y)" x=$total_rows y=$columns assign="rows"}
{math equation="floor(x/y)" x=100 y=$columns assign="cell_width"}
{section name=col loop=$columns}
|
{math equation="x*y" x=$rows y=%col.index% assign="start_row"}
{section name=dt1 loop=$left start=$start_row max=$rows}
{include file="dialog_tools_cell.tpl" cell=$left[dt1]}
{/section}
|
{/section}
{/foreach}
{else}
{foreach from=$left item=cell}
{include file="dialog_tools_cell.tpl" cell=$cell}
{/foreach}
{/if}
|
{/if}
{if $right}
{foreach from=$right item=cell}
{include file="dialog_tools_cell.tpl" cell=$cell}
{/foreach}
|
{/if}
|
|
{/if}