@@ -, +, @@ --- misc/cronjobs/runreport.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/misc/cronjobs/runreport.pl +++ a/misc/cronjobs/runreport.pl @@ -245,9 +245,14 @@ foreach my $report_id (@ARGV) { if ($format eq 'html') { my $cgi = CGI->new(); my @rows = (); + my $count = 0; while (my $line = $sth->fetchrow_arrayref) { foreach (@$line) { defined($_) or $_ = ''; } # catch undef values, replace w/ '' - push @rows, $cgi->TR( join('', $cgi->td($line)) ) . "\n"; + if ($count++ % 2 == 0) { + push @rows, $cgi->TR({-style=>'background-color: #ccc;'}, join('', $cgi->td($line)) ) . "\n"; + } else { + push @rows, $cgi->TR( join('', $cgi->td($line)) ) . "\n"; + } } $message = $cgi->table(join "", @rows); } elsif ($format eq 'csv') { @@ -270,7 +275,6 @@ foreach my $report_id (@ARGV) { my $email = Koha::Email->new(); my %mail; if ($format eq 'html') { - $message = "$message"; %mail = $email->create_message_headers({ to => $to, from => $from, --