format & link the total column
authorivan <ivan>
Sat, 15 Apr 2006 13:25:33 +0000 (13:25 +0000)
committerivan <ivan>
Sat, 15 Apr 2006 13:25:33 +0000 (13:25 +0000)
httemplate/graph/money_time.cgi

index d458405..67b8212 100644 (file)
@@ -95,7 +95,9 @@ my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
     </TD>
     <% $total += $column; %>
   <% } %>
     </TD>
     <% $total += $column; %>
   <% } %>
-  <TD><%= sprintf("%.2f", $total) %></TD>
+  <TD ALIGN="right" BGCOLOR="#eeeeee">
+    <%= $link ? $link. 'begin='. @{$data->{speriod}}[0]. ';end='. @{$data->{speriod}}[0]. '">' : '' %><FONT COLOR="#<%= $color{$row} %>">$<%= sprintf("%.2f", $total) %></FONT><%= $link ? '</A>' : '' %>
+  </TD>
   </TR>
 <% } %>
 </TABLE>
   </TR>
 <% } %>
 </TABLE>