[Rt-commit] r3239 - in rt/branches/QUEBEC-EXPERIMENTAL: . html/Search/Elements

jesse at bestpractical.com jesse at bestpractical.com
Thu Jun 23 11:19:31 EDT 2005


Author: jesse
Date: Thu Jun 23 11:19:29 2005
New Revision: 3239

Modified:
   rt/branches/QUEBEC-EXPERIMENTAL/   (props changed)
   rt/branches/QUEBEC-EXPERIMENTAL/html/Search/Elements/Chart
Log:
 r20761 at hualien:  jesse | 2005-06-17 19:38:02 -0400
 * Now statistical reports include total # of tickets found


Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/Search/Elements/Chart
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Search/Elements/Chart	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Search/Elements/Chart	Thu Jun 23 11:19:29 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