[Rt-commit] r3361 - in rt/branches/3.5-TESTING: .
html/Search/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Sun Jul 3 18:58:12 EDT 2005
Author: jesse
Date: Sun Jul 3 18:58:11 2005
New Revision: 3361
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/Search/Elements/Chart
Log:
r22215 at hualien: jesse | 2005-07-03 18:23:55 -0400
r22139 at hualien: jesse | 2005-07-03 17:49:33 -0400
r20761 at hualien: jesse | 2005-06-17 19:38:02 -0400
* Now statistical reports include total # of tickets found
Modified: rt/branches/3.5-TESTING/html/Search/Elements/Chart
==============================================================================
--- rt/branches/3.5-TESTING/html/Search/Elements/Chart (original)
+++ rt/branches/3.5-TESTING/html/Search/Elements/Chart Sun Jul 3 18:58:11 2005
@@ -52,17 +52,30 @@
<th class="collection-as-table"><&|/l&>Tickets</&>
</th>
</tr>
-% my $i;
+% my ($i,$total);
% while (my $key = shift @keys) {
% $i++;
+% my $value = shift @values;
+% $total += $value;
<tr class="<%$i%2 ? 'evenline' : 'oddline' %>">
<td class="label collection-as-table">
<%$key%>
</td>
<td class="value collection-as-table">
-<%shift @values%>
+<%$value%>
</td>
</tr>
% }
+
+%$i++;
+<tr class="<%$i%2 ? 'evenline' : 'oddline' %>">
+<td class="label collection-as-table">
+<%loc('Total')%>
+</td>
+<td class="value collection-as-table">
+<%$total%>
+</td>
+</tr>
+
</table>
More information about the Rt-commit
mailing list