[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/admin systempreferences.pl,1.22,1.23
From: |
Owen Leonard |
Subject: |
[Koha-cvs] CVS: koha/admin systempreferences.pl,1.22,1.23 |
Date: |
Fri, 11 Feb 2005 08:24:20 -0800 |
Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13530/admin
Modified Files:
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.23
diff -C2 -r1.22 -r1.23
*** systempreferences.pl 18 Aug 2004 16:05:14 -0000 1.22
--- systempreferences.pl 11 Feb 2005 16:24:11 -0000 1.23
***************
*** 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&searchfield=".$results->[$i]{'variable'};
$row_data{delete} =
"$script_name?op=delete_confirm&searchfield=".$results->[$i]{'variable'};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/admin systempreferences.pl,1.22,1.23,
Owen Leonard <=