atk4/atk4 — pull request #374 by DarkSide666 (2013-07-25 18:10:04+00:00)
Title: addGrandTotals() for CompleteLister

1) rewrite of CompleteLister template
2) new method addGrandTotals() for CompleteLister
3) split some functionality to child methods, like renderTotalsRow, renderGrandTotalsRow etc.

Short test case:
```
$model->setLimit(5, 5);
$c = $this->add('CompleteLister');
$c->setModel($model);

$c->addTotals(); // totals only for limited amout of data - current "page"

$c->addGrandTotals(); // calculate totals for all model fields, all rows
//$c->addGrandTotals(array('StartBalance','EndBalance')); // calculate totals for only these fields
```