[Koha-cvs] CVS: koha/reports itemtypes.plugin,1.1,1.1.2.1
Owen Leonard
oleonard at users.sourceforge.net
Wed Apr 6 21:49:09 CEST 2005
Update of /cvsroot/koha/koha/reports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28616/reports
Modified Files:
Tag: rel_2_2
itemtypes.plugin
Log Message:
Adding toggle for alternating row colors
Index: itemtypes.plugin
===================================================================
RCS file: /cvsroot/koha/koha/reports/itemtypes.plugin,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** itemtypes.plugin 30 Mar 2004 16:09:04 -0000 1.1
--- itemtypes.plugin 6 Apr 2005 19:49:05 -0000 1.1.2.1
***************
*** 74,83 ****
--- 74,90 ----
my ($description,$biblioitems,$total);
my $grantotal = 0;
+ my $count = 0;
while (($description,$biblioitems,$total) = $sth->fetchrow) {
my %line;
+ if($count % 2){
+ $line{toggle} = 1;
+ } else {
+ $line{toggle} = 0;
+ }
$line{itemtype} = $description;
$line{count} = $total;
$grantotal += $total;
push @results,\%line;
+ $count ++;
}
my @mainloop;
More information about the Koha-cvs
mailing list