[Koha-cvs] koha/admin auth_tag_structure.pl [rel_2_2]
Owen Leonard
oleonard at athenscounty.lib.oh.us
Tue Mar 7 21:19:07 CET 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Owen Leonard <oleonard at savannah.gnu.org> 06/03/07 20:19:07
Modified files:
admin : auth_tag_structure.pl
Log message:
Removing hard-coded table row background colors
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/admin/auth_tag_structure.pl.diff?only_with_tag=rel_2_2&tr1=1.2.2.4&tr2=1.2.2.5&r1=text&r2=text
Patches:
Index: koha/admin/auth_tag_structure.pl
diff -u koha/admin/auth_tag_structure.pl:1.2.2.4 koha/admin/auth_tag_structure.pl:1.2.2.5
--- koha/admin/auth_tag_structure.pl:1.2.2.4 Sun Feb 5 21:59:21 2006
+++ koha/admin/auth_tag_structure.pl Tue Mar 7 20:19:07 2006
@@ -210,13 +210,13 @@
}
my $env;
my ($count,$results)=StringSearch($env,$searchfield,$authtypecode);
- my $toggle="white";
+ my $toggle=1;
my @loop_data = ();
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
- if ($toggle eq 'white'){
- $toggle="#ffffcc";
+ if ($toggle eq 1){
+ $toggle=0;
} else {
- $toggle="white";
+ $toggle=1;
}
my %row_data; # get a fresh hash for the row data
$row_data{tagfield} = $results->[$i]{'tagfield'};
@@ -227,7 +227,7 @@
$row_data{subfield_link} ="auth_subfields_structure.pl?tagfield=".$results->[$i]{'tagfield'}."&authtypecode=".$authtypecode;
$row_data{edit} = "$script_name?op=add_form&searchfield=".$results->[$i]{'tagfield'}."&authtypecode=".$authtypecode;
$row_data{delete} = "$script_name?op=delete_confirm&searchfield=".$results->[$i]{'tagfield'}."&authtypecode=".$authtypecode;
- $row_data{bgcolor} = $toggle;
+ $row_data{toggle} = $toggle;
push(@loop_data, \%row_data);
}
$template->param(loop => \@loop_data,
More information about the Koha-cvs
mailing list