projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved tax report, #23349
[freeside.git]
/
httemplate
/
search
/
477partIIB.html
diff --git
a/httemplate/search/477partIIB.html
b/httemplate/search/477partIIB.html
index
c58310d
..
cb181f4
100755
(executable)
--- 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]) ) {
% for ( my $row = 0; $row < scalar(@rows); $row++ ) {
% for my $col (0..2) {
% if ( exists($data[$col][$row]) ) {
-<PartII_<% $row %><% $cols[$col] %>>
+<PartII_<% $row + 1 %><% $cols[$col] %>>\
+<% $data[$col][$row] %>\
+</PartII_<% $row + 1 %><% $cols[$col] %>>
% }
% }
-</PartII_<% $row %><% $cols[$col] %>>
% } #for $col
% } #for $row
% } else { # HTML mode
% } #for $col
% } #for $row
% } else { # HTML mode
@@
-14,19
+15,18
@@
<TABLE>
<TR><TD VALIGN="bottom"><BR></TD></TR>
<TR><TD COLSPAN=2>
<TABLE>
<TR><TD VALIGN="bottom"><BR></TD></TR>
<TR><TD COLSPAN=2>
- <TABLE CLASS="grid" CELLSPACING=0
STYLE="border: 1px solid #cccccc;" BGCOLOR="#cccccc"
>
+ <TABLE CLASS="grid" CELLSPACING=0>
<TR>
% foreach (@headers) {
<TR>
% foreach (@headers) {
- <TH
class="grid"
><% $_ %></TH>
+ <TH><% $_ %></TH>
% }
</TR>
% }
</TR>
-% my @bgcolor = ('eeeeee','ffffff');
% my $row = 0;
% foreach my $rowhead (@rows) {
% my $row = 0;
% foreach my $rowhead (@rows) {
- <TR>
- <TD
CLASS="grid" BGCOLOR="#<% $bgcolor[$row % 2] %>
"><% $rowhead %></TD>
+ <TR
CLASS="row<% $row % 2 %>"
>
+ <TD
STYLE="text-align: left; font-weight: bold
"><% $rowhead %></TD>
% for my $col (0..2) {
% for my $col (0..2) {
- <TD
CLASS="grid" BGCOLOR="#<% $bgcolor[$row % 2] %>"
>
+ <TD>
% if ( exists($data[$col][$row]) ) {
<% $data[$col][$row] %>
% }
% 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 {
if ( $col_data[0] == 0 ) {
$col_data[$row] = ''; # show nothing in this row, then
} else {
- $col_data[$row] = sprintf('%.
2
f', 100 * $count / $col_data[0]) . '%';
+ $col_data[$row] = sprintf('%.
3
f', 100 * $count / $col_data[0]) . '%';
}
} #if $row == 0
$row++;
}
} #if $row == 0
$row++;