#!/usr/bin/perl
-# $Id$
-
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
use C4::Output;
use C4::Circulation;
use C4::Members;
-use C4::Date;
+use C4::Dates qw/format_date_in_iso/;
=head1 NAME
my $basename = $input->param("basename");
my $mime = $input->param("MIME");
my $del = $input->param("sep");
-#warn "calcul : ".$calc;
my ($template, $borrowernumber, $cookie)
= get_template_and_user({template_name => $fullreportname,
query => $input,
debug => 1,
});
$template->param(do_it => $do_it,
- DHTMLcalendar_dateformat => get_date_format_string_for_DHTMLcalendar(),
+ DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
);
if ($do_it) {
# Displaying results
}
-
-
sub calculate {
my ($line, $column, $filters) = @_;
my @mainloop;
my $sth2 = $dbh->prepare( $strsth2 );
$sth2->execute;
-
-
while (my ($celvalue) = $sth2->fetchrow) {
my %cell;
# my %ft;
$dbcalc->execute;
# warn "filling table";
my $previous_col;
- my $i=1;
+ $i=1;
while (my @data = $dbcalc->fetchrow) {
my ($row, $col )=@data;
$col = "zzEMPTY" if ($col eq undef);
$i=1 if (($previous_col) and not($col eq $previous_col));
$table[$i]->{$col}=$row;
-# warn " ".$i." ".$col. " ".$row;
+# warn " $i $col $row";
$i++;
$previous_col=$col;
}
push @loopcol,{coltitle => "Global"} if not($column);
- my $max =(($line)?$line:@table -1);
+ $max =(($line)?$line:@table -1);
for ($i=1; $i<=$max;$i++) {
my @loopcell;
#@loopcol ensures the order for columns is common with column titles