summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2006-01-27 07:34:17 +0000
committerivan <ivan>2006-01-27 07:34:17 +0000
commit0a4a314b33a22b314ac5c4c85840a4bbff49cdf3 (patch)
tree5b727a55b023d820a0a9280e84eaa9f2ebab7aef
parentb5ecccfac56fc5d4eaa617a8c08dd168ffb74bac (diff)
small visual fix to alternating row colors when show_taxclasses is on
-rwxr-xr-xhttemplate/search/report_tax.cgi10
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi
index b1c6d3809..61ed26fac 100755
--- a/httemplate/search/report_tax.cgi
+++ b/httemplate/search/report_tax.cgi
@@ -413,6 +413,8 @@ my $exemptlink = $p. "search/cust_tax_exempt_pkg.cgi?$dateagentlink";
</TR>
<% #some false laziness w/above
+ $bgcolor1 = '#eeeeee';
+ $bgcolor2 = '#ffffff';
foreach my $region ( @base_regions ) {
if ( $bgcolor eq $bgcolor1 ) {
@@ -440,6 +442,14 @@ my $exemptlink = $p. "search/cust_tax_exempt_pkg.cgi?$dateagentlink";
<% } %>
+ <%
+ if ( $bgcolor eq $bgcolor1 ) {
+ $bgcolor = $bgcolor2;
+ } else {
+ $bgcolor = $bgcolor1;
+ }
+ %>
+
<TR>
<TD CLASS="grid" BGCOLOR="<%= $bgcolor %>">Total</TD>
<TD CLASS="grid" BGCOLOR="<%= $bgcolor %>" ALIGN="right">