<div id="{{: tableSheet.tableId}}_viewport" class="tablesheet-Viewport">
<table id="{{: tableSheet.tableId}}" class="tablesorter tablesheet-Table" data-od-sheetname="{{: tableSheet.settings.odSheetname}}" data-od-fixed-rows="{{: tableSheet.settings.odFixedRows}}" data-od-fixed-columns="{{: tableSheet.settings.odFixedColumns}}">
{{for tableSheet.columnArray}}
<col class="{{: cssClasses}}">
{{/for}}
<thead id="{{: tableSheet.tableId}}_thead" class="tablesheet-THead">
    <tr>
{{if withKeyHeader}}
    {{for tableSheet.columnArray}}
        <th title="{{> title}}">{{: name}}
        {{if #index == 0}}
            {{include ~root tmpl="tablesheet:counter"/}}
        {{/if}}
        </th>
    {{/for}}
{{else}}
    {{for tableSheet.columnArray}}
        <th>{{> title}}
        {{if #index == 0}}
            {{include ~root tmpl="tablesheet:counter"/}}
        {{/if}}
        </th>
    {{/for}}
{{/if}}
    </tr>
</thead>
{{if tableSheet.withSum}}
<tfoot id="{{: tableSheet.tableId}}_tfoot" class="tablesheet-TFoot"> 
    <tr>
    {{for tableSheet.columnArray}}
        {{if withSum}}
        <td class="tablesheet-cell-Number tablesheet-Sum">
        {{for sumValueArray}}
            {{if #index > 0}}<br>{{/if}}
            {{> text}}
        {{/for}}
        </td>
        {{else}}
        <td></td>
        {{/if}}
    {{/for}}
    </tr>
</tfoot>
{{/if}}
<tbody id="{{: tableSheet.tableId}}_tbody" class="tablesheet-TBody">
{{for tableSheet.rowArray tmpl="tablesheet:row"/}}
</tbody>
</table>
</div>
