Lines 46-59
use C4::Dates qw(format_date);
Link Here
|
46 |
use C4::Output; |
46 |
use C4::Output; |
47 |
use C4::Budgets qw/GetCurrency GetCurrencies/; |
47 |
use C4::Budgets qw/GetCurrency GetCurrencies/; |
48 |
|
48 |
|
49 |
my $input = CGI->new; |
49 |
our $input = CGI->new; |
50 |
my $searchfield = $input->param('searchfield') || $input->param('description') || q{}; |
50 |
my $searchfield = $input->param('searchfield') || $input->param('description') || q{}; |
51 |
my $offset = $input->param('offset') || 0; |
51 |
our $offset = $input->param('offset') || 0; |
52 |
my $op = $input->param('op') || q{}; |
52 |
my $op = $input->param('op') || q{}; |
53 |
my $script_name = '/cgi-bin/koha/admin/currency.pl'; |
53 |
my $script_name = '/cgi-bin/koha/admin/currency.pl'; |
54 |
my $pagesize = 20; |
54 |
our $pagesize = 20; |
55 |
|
55 |
|
56 |
my ($template, $loggedinuser, $cookie) = get_template_and_user({ |
56 |
our ($template, $loggedinuser, $cookie) = get_template_and_user({ |
57 |
template_name => 'admin/currency.tmpl', |
57 |
template_name => 'admin/currency.tmpl', |
58 |
query => $input, |
58 |
query => $input, |
59 |
type => 'intranet', |
59 |
type => 'intranet', |
Lines 67-73
$searchfield=~ s/\,//g;
Link Here
|
67 |
$template->param(searchfield => $searchfield, |
67 |
$template->param(searchfield => $searchfield, |
68 |
script_name => $script_name); |
68 |
script_name => $script_name); |
69 |
|
69 |
|
70 |
my $dbh = C4::Context->dbh; |
70 |
our $dbh = C4::Context->dbh; |
71 |
|
71 |
|
72 |
if ( $op eq 'add_form' ) { |
72 |
if ( $op eq 'add_form' ) { |
73 |
add_form($searchfield); |
73 |
add_form($searchfield); |
74 |
- |
|
|