##@TABLE.strCaption h##

{literal}
{/literal} {doevent name="PrintOnLoad"}
##if @TABLE.arrMasterTables[bDisplayInfo].len## {include file="$showmasterfile"} ##endif## ##if @BUILDER.bViewPDF## {if !$pdf}
##message PDF_VIEW##
{/if} ##endif## {foreach from=$pages item=page} {if $page.idx>1}
{/if}

# ##@TABLE.strCaption h##

##repeat @TABLE.nRecordsPerRowPrint @i## ##if @TABLE.nRecordsPerRowPrint>1 && !@first##
##endif## ##foreach Fields as @f filter @f.bPrinterPage order @f.nPrinterPageOrder## | ##@f.strLabel h## ##endfor## ##endrepeat##
{foreach from=$page.rowinfo item=row}
##repeat @TABLE.nRecordsPerRowPrint @i## ##if @TABLE.nRecordsPerRowPrint>1## ##endif## ##if !@first##
##endif## ##foreach Fields as @f filter @f.bPrinterPage order @f.nPrinterPageOrder## | {$row.##@i####@f.strName g##_value} ##endfor## ##if @TABLE.nRecordsPerRowPrint>1## ##endif## ##endrepeat##
{/foreach} ##if Fields[strTotalsType].len## {if $page.showtotals}
##foreach Fields as @f filter @f.bPrinterPage order @f.nPrinterPageOrder##
##if strTotalsType=="COUNT"## ##message COUNT##: {$showtotal_##@f.strName g##} ##elseif strTotalsType=="TOTAL"## ##message TOTAL##: {$showtotal_##@f.strName g##} ##elseif strTotalsType=="AVERAGE"## ##message AVERAGE##: {$showtotal_##@f.strName g##} ##endif## ##endfor##
{/if} ##endif##

{if !$page.last}

{/if} {/foreach} ##if @BUILDER.bViewPDF## {if !$pdf}
{/if} ##endif##