move header() to include(/elements/header.html) so it can be changed in one place...
[freeside.git] / httemplate / search / report_tax.cgi
index b1c6d38..0f33c46 100755 (executable)
@@ -298,7 +298,7 @@ my $baselink   = $p. "search/cust_bill_pkg.cgi?$dateagentlink";
 my $exemptlink = $p. "search/cust_tax_exempt_pkg.cgi?$dateagentlink";
 %>
 
-<%= header( "$agentname Sales Tax Report - ".
+<%= include("/elements/header.html", "$agentname Sales Tax Report - ".
               ( $beginning
                   ? time2str('%h %o %Y ', $beginning )
                   : ''
@@ -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">