koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/reports itemtypes.plugin,1.1,1.1.2.1


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/reports itemtypes.plugin,1.1,1.1.2.1
Date: Wed, 06 Apr 2005 12:49:09 -0700

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;




reply via email to

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