From 91cce6c60aa445bf94dd45e90f972d1345c19742 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 20 Jan 2005 17:37:56 +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/issuingrules.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/issuingrules.pl b/admin/issuingrules.pl index 74fcdfedbd..338e52f311 100755 --- a/admin/issuingrules.pl +++ b/admin/issuingrules.pl @@ -131,7 +131,7 @@ $sth->finish; $sth=$dbh->prepare("Select description,itemtype from itemtypes order by description"); $sth->execute; # $i=0; -my $toggle="white"; +my $toggle= 1; my @row_loop; my @itemtypes; while (my $row=$sth->fetchrow_hashref){ @@ -145,10 +145,10 @@ push @itemtypes,\$line; foreach my $data (@itemtypes) { my @trow2; my @cell_loop; - if ( $toggle eq 'white' ) { - $toggle = '#ffffcc'; + if ( $toggle eq 1 ) { + $toggle = 0; } else { - $toggle = 'white'; + $toggle = 1; } for (my $i=0;$i<=$#trow3;$i++){ my $sth2=$dbh->prepare("select * from issuingrules where branchcode=? and categorycode=? and itemtype=?"); -- 2.39.5