Added magic RCS comment.
[koha.git] / reports.pl
1 #!/usr/bin/perl
2
3 # $Id$
4
5 #script to display reports
6 #written 8/11/99
7
8
9 # Copyright 2000-2002 Katipo Communications
10 #
11 # This file is part of Koha.
12 #
13 # Koha is free software; you can redistribute it and/or modify it under the
14 # terms of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
16 # version.
17 #
18 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
20 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License along with
23 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA  02111-1307 USA
25
26 use strict;
27 use CGI;
28 use C4::Output;
29 use C4::Stats;
30 use C4::Stock;
31
32 my $input = new CGI;
33 print $input->header;
34 my $type=$input->param('type');
35 print startpage();
36 print startmenu('issue');
37 my @data;
38 if ($type eq 'search'){
39  @data=statsreport('search','something');
40 }
41 if ($type eq 'issue'){
42  @data=statsreport('issue','today');
43 }
44 if ($type eq 'stock'){
45  @data=stockreport();
46 }
47
48 print mkheadr(1,"$type reports");
49 print @data;
50
51 print endmenu('issue');
52 print endpage();