{literal}
{/literal}
{include file="system_appbuilder_btn.tpl.html"}

{if $form.icon !='' } {/if} ## {$form.title} {$form.description}

{if $actionPanel or $searchPanel }
{foreach item=elem from=$actionPanel} {$elem.element} {/foreach}
{foreach item=elem key=name from=$searchPanel} {if $name=='qry_name' || $name=='btn_dosearch' || $name=='data_filter' || $name=='type_selector'} {if $elem.label} {$elem.label} {/if} {$elem.element} {/if} {/foreach}
{foreach item=elem key=name from=$searchPanel} {if $name!='qry_name' && $name!='btn_dosearch' && $name!='data_filter' && $name!='type_selector'} {if $elem.label} {$elem.label} {/if} {$elem.element} {/if} {/foreach}
{/if}

{foreach item=cell key=elems_name from=$dataPanel.elems} {if $cell.type=='ColumnStyle'} {assign var=row_style_name value=$elems_name} {else} {if $cell.type=='RowCheckbox'} {assign var=th_style value="text-align:left;padding-left:10px;"} {else} {assign var=th_style value=""} {/if} {$cell.label} {/if} {/foreach}
{assign var=group_counter value=0} {foreach item=row key=group_name from=$form.dataGroup}
{t}Group: {/t}{$group_name}
{assign var=row_counter value=0} {foreach item=row from=$form.dataGroup.$group_name.data} {if $row.$row_style_name != ''} {assign var=col_style value=$row.$row_style_name} {else} {assign var=col_style value=''} {/if} {if $row_counter is odd}
{else}
{/if} {assign var=col_counter value=0} {foreach item=cell key=cell_name from=$row} {if $col_counter eq 0} {assign var=col_class value=' class="row_header" '} {else} {assign var=col_class value=' '} {/if} {if $cell_name != $row_style_name} {if $cell_name == 'fld_type'} {php} $IE6 = strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') ? true : false ; if($IE6){ {/php} {assign var=bg_img value=none;} {php}}else{{/php} {assign var=bg_img value=url($theme_url/images/table_row_td_trans_bg.png);} {php}}{/php} {if $col_style != ''} {assign var=row_bgcolor value=background-color:#$col_style;background-image:$bg_img} {else} {assign var=row_bgcolor value=background-color:#ffffff;background-image:$bg_img} {/if} {else} {assign var=row_bgcolor value=''} {/if} {if $cell != ''} {$cell} {else} | {/if} {/if} {assign var=col_counter value=$col_counter+1} {/foreach}
{assign var=row_counter value=$row_counter+1} {/foreach}
{assign var=group_counter value=$group_counter+1} {/foreach}