[Rt-commit] r3324 - in rt/branches/CHALDEA-EXPERIMENTAL: . html/Search/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 18:10:11 EDT 2005


Author: jesse
Date: Sun Jul  3 18:10:10 2005
New Revision: 3324

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/html/Search/Elements/Chart
Log:
 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/CHALDEA-EXPERIMENTAL/html/Search/Elements/Chart
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/Search/Elements/Chart	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/Search/Elements/Chart	Sun Jul  3 18:10:10 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