J
|
Jane 8/16/2007 |
Hi, |
R
|
rcurtin author 8/16/2007 |
Well I have the fields totaling but I need all the totals to be totaled if possible. This image is the bottom of all my fields I want to add them from left to right or right to left.
|
R
|
rcurtin author 8/24/2007 |
just a friendly BUMP to see if anyone knows how to do this. Just want to total all the allready totaled totals.. |
J
|
Jane 8/27/2007 |
Hi, $val1 = $smarty->get_template_vars('showtotal_Fieldname1'); $val2 = $smarty->get_template_vars('showtotal_Fieldname2'); $val3 = $smarty->get_template_vars('showtotal_Fieldname3'); $val1 = strip_tags($val1); $val2 = strip_tags($val2); $val3 = strip_tags($val3; $sum = $val1+$val2+$val3; echo "Global total = ".$sum; |
M
|
Max68 8/27/2007 |
[quote name='Jane' date='Aug 27 2007, 08:24 AM' post='20846'] |
M
|
Max68 8/29/2007 |
I've found the solution to do correctly the sum with latin number format, but i don't know how put the result (in the esample echo $sum) in a cell of the same row of other totals. |
![]() |
Alexey admin 8/29/2007 |
Max, |
R
|
rcurtin author 10/18/2007 |
Well I have this semi working..... to calculate global total use List Page: Before display event on the Events tab. Here is a sample code:
|
R
|
rcurtin author 10/18/2007 |
Ok I figured it out myself there was no event even needed.... boy I feel kinda stupid LOL |
M
|
mustafa 10/23/2008 |
Hello, Hi, to calculate global total use List Page: Before display event on the Events tab. Here is a sample code:
|
J
|
Jane 10/24/2008 |
Hi, global $totals; $val1 = $totals["Fieldname1"]; $val2 = $totals["Fieldname2"]; $val3 = $totals["Fieldname3"]; $val1 = strip_tags($val1); $val2 = strip_tags($val2); $val3 = strip_tags($val3); $sum = $val1+$val2+$val3; echo "Global total = ".$sum; |