PHPMaker has the ability to display the aggregate functions such as SUM, COUNT, and AVERAGE at the bottom or the footer of the main table in the List pages. Unfortunately, the alignment of the columns are using "left-align" instead of "right-align". Since those aggregate columns are for displaying the total information in number, then it would be better to make them "right-align".
This following customization will make your aggregate functions columns become "right-align". We will customize the PHPMaker template for this purpose, so that you will be able to use the template for your future projects.
Updated on June 17, 2013: This customization below has been handled by using MasinoFixedWidthSite extension. You don’t need to implement the customization below if you use my extensions together with the original PHPMaker Template and Extension files.
Open your \Script\list-script.php file, and find this code (there are two occurances you will find this code, so make sure you have also done the replacement code below for twice):
then replace it with the following code:
<td<!--##=FieldTD_Item(goFld)##--> style="text-align: right;">
- Finally, re-generate your script files using PHPMaker as always.