koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/admin categorie.pl,1.16,1.17
Date: Thu, 20 Jan 2005 12:21:11 -0800

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

Modified Files:
        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.17
diff -C2 -r1.16 -r1.17
*** categorie.pl        18 Aug 2004 16:05:14 -0000      1.16
--- categorie.pl        20 Jan 2005 20:20:57 -0000      1.17
***************
*** 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;
                }
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]