[Koha-cvs] CVS: koha/admin categorie.pl,1.16,1.16.2.1

Owen Leonard oleonard at users.sourceforge.net
Thu Jan 20 21:20:18 CET 2005


Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18302/admin

Modified Files:
      Tag: rel_2_2
	categorie.pl 
Log Message:
Changing table row color toggle so that color values can be specified in the template instead of the script (requires update to template)

Index: categorie.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/categorie.pl,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -C2 -r1.16 -r1.16.2.1
*** categorie.pl	18 Aug 2004 16:05:14 -0000	1.16
--- categorie.pl	20 Jan 2005 20:20:15 -0000	1.16.2.1
***************
*** 163,167 ****
  	my @loop;
  	my ($count,$results)=StringSearch($env,$searchfield,'web');
! 	my $toggle = 'white';
  	for (my $i=0; $i < $count; $i++){
  		my %row = (categorycode => $results->[$i]{'categorycode'},
--- 163,167 ----
  	my @loop;
  	my ($count,$results)=StringSearch($env,$searchfield,'web');
! 	my $toggle = 0;
  	for (my $i=0; $i < $count; $i++){
  		my %row = (categorycode => $results->[$i]{'categorycode'},
***************
*** 176,186 ****
  				toggle => $toggle );	
  		push @loop, \%row;
! 		if ( $toggle eq 'white' )
  		{
! 			$toggle = '#ffffcc';
  		}
  		else
  		{
! 			$toggle = 'white';
  		}
  	}
--- 176,186 ----
  				toggle => $toggle );	
  		push @loop, \%row;
! 		if ( $toggle eq 0 )
  		{
! 			$toggle = 1;
  		}
  		else
  		{
! 			$toggle = 0;
  		}
  	}





More information about the Koha-cvs mailing list