koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/admin systempreferences.pl,1.22,1.22.2.1


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/admin systempreferences.pl,1.22,1.22.2.1
Date: Fri, 11 Feb 2005 08:23:35 -0800

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

Modified Files:
      Tag: rel_2_2
        systempreferences.pl 
Log Message:
Updating table row color toggle to pass variable to the template instead of 
HTML value.  Works now with CSS.

Index: systempreferences.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/systempreferences.pl,v
retrieving revision 1.22
retrieving revision 1.22.2.1
diff -C2 -r1.22 -r1.22.2.1
*** systempreferences.pl        18 Aug 2004 16:05:14 -0000      1.22
--- systempreferences.pl        11 Feb 2005 16:23:31 -0000      1.22.2.1
***************
*** 284,294 ****
        my $env;
        my ($count,$results)=StringSearch($env,$searchfield,'web');
!       my $toggle="white";
        my @loop_data = ();
        for (my $i=$offset; $i < 
($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
!               if ($toggle eq 'white'){
!                       $toggle="#ffffcc";
                } else {
!                       $toggle="white";
                }
                my %row_data;  # get a fresh hash for the row data
--- 284,294 ----
        my $env;
        my ($count,$results)=StringSearch($env,$searchfield,'web');
!       my $toggle=0;
        my @loop_data = ();
        for (my $i=$offset; $i < 
($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
!               if ($toggle eq 0){
!                       $toggle=1;
                } else {
!                       $toggle=0;
                }
                my %row_data;  # get a fresh hash for the row data
***************
*** 296,299 ****
--- 296,300 ----
                $row_data{value} = $results->[$i]{'value'};
                $row_data{explanation} = $results->[$i]{'explanation'};
+               $row_data{toggle} = $toggle;
                $row_data{edit} = 
"$script_name?op=add_form&amp;searchfield=".$results->[$i]{'variable'};
                $row_data{delete} = 
"$script_name?op=delete_confirm&amp;searchfield=".$results->[$i]{'variable'};




reply via email to

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