koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/admin itemtypes.pl,1.16,1.17


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/admin itemtypes.pl,1.16,1.17
Date: Thu, 17 Feb 2005 09:57:00 -0800

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

Modified Files:
        itemtypes.pl 
Log Message:
- formatting currency values
- fixing table row color toggle, and moving color values to the template 
(requires update to template)

Index: itemtypes.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/itemtypes.pl,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** itemtypes.pl        2 Dec 2004 16:37:33 -0000       1.16
--- itemtypes.pl        17 Feb 2005 17:56:58 -0000      1.17
***************
*** 105,109 ****
                                                        description => 
$data->{'description'},
                                                        renewalsallowed => 
$data->{'renewalsallowed'},
!                                                       rentalcharge => 
$data->{'rentalcharge'},
                                                        notforloan => 
$data->{'notforloan'}
                                                        );
--- 105,109 ----
                                                        description => 
$data->{'description'},
                                                        renewalsallowed => 
$data->{'renewalsallowed'},
!                                                       rentalcharge => 
sprintf("%.2f",$data->{'rentalcharge'}),
                                                        notforloan => 
$data->{'notforloan'}
                                                        );
***************
*** 146,150 ****
                                                        description => 
$data->{'description'},
                                                        renewalsallowed => 
$data->{'renewalsallowed'},
!                                                       rentalcharge => 
$data->{'rentalcharge'},
                                                        total => $total);
                                                                                
                        # END $OP eq DELETE_CONFIRM
--- 146,150 ----
                                                        description => 
$data->{'description'},
                                                        renewalsallowed => 
$data->{'renewalsallowed'},
!                                                       rentalcharge => 
sprintf("%.2f",$data->{'rentalcharge'}),
                                                        total => $total);
                                                                                
                        # END $OP eq DELETE_CONFIRM
***************
*** 167,183 ****
        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++){
                my %row_data;
!               if ($toggle eq 'white'){
!                       $row_data{toggle}="#ffffcc";
                } else {
!                       $row_data{toggle}="white";
                }
                $row_data{itemtype} = $results->[$i]{'itemtype'};
                $row_data{description} = $results->[$i]{'description'};
                $row_data{renewalsallowed} = $results->[$i]{'renewalsallowed'};
!               $row_data{rentalcharge} = $results->[$i]{'rentalcharge'};
                push(@loop_data, \%row_data);
        }
--- 167,184 ----
        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++){
                my %row_data;
!               if ($toggle eq 0){
!                       $toggle=1;
                } else {
!                       $toggle=0;
                }
+               $row_data{toggle} = $toggle;
                $row_data{itemtype} = $results->[$i]{'itemtype'};
                $row_data{description} = $results->[$i]{'description'};
                $row_data{renewalsallowed} = $results->[$i]{'renewalsallowed'};
!               $row_data{rentalcharge} = 
sprintf("%.2f",$results->[$i]{'rentalcharge'});
                push(@loop_data, \%row_data);
        }




reply via email to

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