Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / test / progressbar.pl
blob87cd84c2e34f2e4e4c604aef736f99ec19e049f0
1 #!/usr/bin/perl
3 # Script for testing progressbar, part 1 - initial screem
4 # it is split into two scripts so we can use firebug to debug it
6 # Koha library project www.koha-community.org
8 # Licensed under the GPL
10 # Copyright 2010 Catalyst IT, Ltd
12 # This file is part of Koha.
14 # Koha is free software; you can redistribute it and/or modify it
15 # under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 3 of the License, or
17 # (at your option) any later version.
19 # Koha is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with Koha; if not, see <http://www.gnu.org/licenses>.
27 use strict;
28 use warnings;
30 # standard or CPAN modules used
31 use CGI qw ( -utf8 );
32 use CGI::Cookie;
34 # Koha modules used
35 use C4::Context;
36 use C4::Auth;
37 use C4::Output;
38 use C4::BackgroundJob;
40 my $input = new CGI;
41 my $dbh = C4::Context->dbh;
42 $dbh->{AutoCommit} = 0;
44 my ($template, $loggedinuser, $cookie)
45 = get_template_and_user({template_name => "test/progressbar.tt",
46 query => $input,
47 type => "intranet",
48 debug => 1,
49 });
51 output_html_with_http_headers $input, $cookie, $template->output;
53 exit 0;