X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2F477partIIB.html;h=cb181f4fd85f163cd111fc5c33ebc15d716c68c3;hb=8baa8e46e67f00f297d7e10dad02c131d286f40e;hp=c58310d361d3aefb0af4fe7920a36260c602f7d9;hpb=0af38652da3b3be7da2d35b048285ef6f2194e1a;p=freeside.git diff --git a/httemplate/search/477partIIB.html b/httemplate/search/477partIIB.html index c58310d36..cb181f4fd 100755 --- a/httemplate/search/477partIIB.html +++ b/httemplate/search/477partIIB.html @@ -3,9 +3,10 @@ % for ( my $row = 0; $row < scalar(@rows); $row++ ) { % for my $col (0..2) { % if ( exists($data[$col][$row]) ) { -<% $cols[$col] %>> +<% $cols[$col] %>>\ +<% $data[$col][$row] %>\ +<% $cols[$col] %>> % } -<% $cols[$col] %>> % } #for $col % } #for $row % } else { # HTML mode @@ -14,19 +15,18 @@

- +
% foreach (@headers) { - + % } -% my @bgcolor = ('eeeeee','ffffff'); % my $row = 0; % foreach my $rowhead (@rows) { - - + + % for my $col (0..2) { -
<% $_ %><% $_ %>
<% $rowhead %>
<% $rowhead %> + % if ( exists($data[$col][$row]) ) { <% $data[$col][$row] %> % } @@ -120,7 +120,7 @@ foreach (@col_conds) { if ( $col_data[0] == 0 ) { $col_data[$row] = ''; # show nothing in this row, then } else { - $col_data[$row] = sprintf('%.2f', 100 * $count / $col_data[0]) . '%'; + $col_data[$row] = sprintf('%.3f', 100 * $count / $col_data[0]) . '%'; } } #if $row == 0 $row++;