{END style_block} {$reportTitle} {BEGIN style_block} {$includes}
{$header}

{$reportTitle}

{BEGIN grid_block}
{foreach from=$aTotals item=fld} {if $fld.show == "true"} {/if} {/foreach} {if $sds == "true"} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $sps == "true"} {if $testAgrSum > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrAvg > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrMin > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrMax > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {/if} {if $sgs == "true"} {if $testAgrSum > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrAvg > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrMin > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {if $testAgrMax > 0} {foreach from=$aTotals item=fld name=totals} {if $fld.show == "true"} {/if} {/foreach} {/if} {/if}
{$fld.label}
{$row.totals[$fld.name]}
Page summary {$page.page_total_cnt} - records total
{if $smarty.foreach.totals.first} Sum  {/if} {if $fld.sum == "true"} {$fld.page_total_sum} {else}   {/if}
{if $smarty.foreach.totals.first} Average  {/if} {if $fld.avg == "true"} {$fld.page_total_avg} {else}   {/if}
{if $smarty.foreach.totals.first} Min  {/if} {if $fld.min == "true"} {$fld.page_total_min} {else}   {/if}
{if $smarty.foreach.totals.first} Max  {/if} {if $fld.max == "true"} {$fld.page_total_max} {else}   {/if}
Global summary {$global_total_cnt} - records total
{if $smarty.foreach.totals.first} Sum  {/if} {if $fld.sum == "true"} {$fld.global_total_sum} {else}   {/if}
{if $smarty.foreach.totals.first} Average  {/if} {if $fld.avg == "true"} {$fld.global_total_avg} {else}   {/if}
{if $smarty.foreach.totals.first} Min  {/if} {if $fld.min == "true"} {$fld.global_total_min} {else}   {/if}
{if $smarty.foreach.totals.first} Max  {/if} {if $fld.max == "true"} {$fld.global_total_max} {else}   {/if}
{if !$pdf || !$all} {include_if_exists file="include/footer.$ext"} {/if}