##@TABLE.strCaption h##

{literal}
{/literal} {include_if_exists file="include/header.##@ext##"} {doevent name="PrintOnLoad"} ##if @TABLE.arrMasterTables[bDisplayInfo].len## {include file="$showmasterfile"} ##endif##

# ##@TABLE.strCaption h##

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

##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=$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##
##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##
##endif##

{include_if_exists file="include/footer.##@ext##"} ##if @BUILDER.bViewPDF## {if !$pdf}
{/if} ##endif##