From f328b3f140f909e475a127fde34c56e9f57c0d47 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 20 Jan 2005 20:20:15 +0000 Subject: [PATCH] Changing table row color toggle so that color values can be specified in the template instead of the script (requires update to template) --- admin/categorie.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/categorie.pl b/admin/categorie.pl index 5a8d4e519a..fc1655c084 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -162,7 +162,7 @@ if ($op eq 'add_form') { my $env; my @loop; my ($count,$results)=StringSearch($env,$searchfield,'web'); - my $toggle = 'white'; + my $toggle = 0; for (my $i=0; $i < $count; $i++){ my %row = (categorycode => $results->[$i]{'categorycode'}, description => $results->[$i]{'description'}, @@ -175,13 +175,13 @@ if ($op eq 'add_form') { reservefee => $results->[$i]{'reservefee'}, toggle => $toggle ); push @loop, \%row; - if ( $toggle eq 'white' ) + if ( $toggle eq 0 ) { - $toggle = '#ffffcc'; + $toggle = 1; } else { - $toggle = 'white'; + $toggle = 0; } } $template->param(loop => \@loop); -- 2.39.5