atk4/atk4 — pull request #383 by DarkSide666 (2013-08-02 00:27:17+00:00)
Title: addGrandTotals, Lister&Grid rewrites, template changes, PSR-2 and more

There are big amount of changes, but I'll name only few of them:
1. Slight template changes for CompleteLister and Grid.
2. Slight improvements of main.css
3. Obsolete methods removal - mostly from Grid_Advanced
4. Restructuring order of methods in class, methods grouped in groups for easier finding
5. New totals calculation - addGrandTotals(). Calculates grand totals of grid in one DB select for SQL_Model.
6. Improved configurability of some methods, for example, addButton
7. Added (renewed?) ability to define "no records" message of grid, method setNoRecordsMessage(). This was otherwise hard-coded in template.
8. fixed some bugs
9. and much more ... (I'm sure I have forgot something)

Example of grid with grand totals:
![grid-rewrite](https://f.cloud.github.com/assets/1969119/898275/39b270c8-fb0a-11e2-9607-74297d88382b.PNG)