{* $Id$ *} {if isset($tstotals)} {$rowtotal = 0} {if !empty($tstotals.row)} {$rowtotal = $tstotals.row|count} {/if} {if empty($nofoot)} {/if} {foreach $tstotals as $key => $value} {if $key == 'col'} {foreach $value as $info} {if !empty($precols)} {for $i=1 to $precols} {if $i === 1} {$info.label|escape} {/if} {/for} {else} {$precols = 0} {/if} {for $i=1 to $fieldcount} {$index = $i - 1 + $precols} {if isset($tscols.$index.math.ignore) && $tscols.$index.math.ignore} {$ignore = 1} {$format = 0} {elseif !empty($tscols.$index.math.format)} {$ignore = 0} {$format = " data-tsmath-mask='{$tscols.$index.math.format}'"} {else} {$ignore = 0} {$format = 0} {/if} {if $i === 1 && $ignore && empty($precols)} {$info.label|escape} {/if} {/for} {if !empty($postcols)} {for $i=1 to $postcols} {/for} {else} {$postcols = 0} {/if} {if $rowtotal} {for $i=1 to $rowtotal} {/for} {/if} {/foreach} {/if} {if $key == 'all'} {foreach $value as $tableinfo} {$allcols = $precols + $fieldcount + $postcols + $rowtotal} {for $i=1 to $allcols} {$index = $i -1} {if !empty($tscols.$index.math.format)} {$format = " data-tsmath-mask='{$tscols.$index.math.format}'"} {else} {$format = 0} {/if} {if $i === 1} {$tableinfo.label|escape} {/if} {/for} {/foreach} {/if} {/foreach} {if empty($nofoot)} {/if} {/if}