[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha stats2.pl,1.2,1.3
From: |
Andrew Arensburger |
Subject: |
[Koha-cvs] CVS: koha stats2.pl,1.2,1.3 |
Date: |
Sat, 05 Oct 2002 02:46:45 -0700 |
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv19864
Modified Files:
stats2.pl
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.
Index: stats2.pl
===================================================================
RCS file: /cvsroot/koha/koha/stats2.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** stats2.pl 14 Aug 2002 18:12:51 -0000 1.2
--- stats2.pl 5 Oct 2002 09:46:43 -0000 1.3
***************
*** 22,32 ****
# Suite 330, Boston, MA 02111-1307 USA
- use C4::Stats;
use strict;
use Date::Manip;
use CGI;
use C4::Output;
use DBI;
- use C4::Database;
my $input=new CGI;
--- 22,32 ----
# Suite 330, Boston, MA 02111-1307 USA
use strict;
+ use C4::Context;
+ use C4::Stats;
use Date::Manip;
use CGI;
use C4::Output;
use DBI;
my $input=new CGI;
***************
*** 60,64 ****
$date2=UnixDate($date2,'%Y-%m-%d');
! my $dbh=C4Connect;
my $query="select *
from accountlines,accountoffsets,borrowers where
--- 60,64 ----
$date2=UnixDate($date2,'%Y-%m-%d');
! my $dbh = C4::Context->dbh;
my $query="select *
from accountlines,accountoffsets,borrowers where
***************
*** 77,81 ****
print
"<TR><Td>$data->{'surname'}</td><td>$data->{'description'}</td><td>$data->{'amount'}
</td>";
! if ($data->{'accountype'}='Pay'){
my $branch=Getpaidbranch($data->{'timestamp'});
print "<td>$branch</td>";
--- 77,81 ----
print
"<TR><Td>$data->{'surname'}</td><td>$data->{'description'}</td><td>$data->{'amount'}
</td>";
! if ($data->{'accountype'}='Pay'){ # FIXME - This should be "==", not "=",
right?
my $branch=Getpaidbranch($data->{'timestamp'});
print "<td>$branch</td>";
***************
*** 95,97 ****
print endpage;
$sth->finish;
- $dbh->disconnect;
--- 95,96 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha stats2.pl,1.2,1.3,
Andrew Arensburger <=