Labels.pm - add deduplicate_batch sub
[koha.git] / labels / label-save-template.pl
blob4a5192cca67a9ad352024dde82f86b95b3d500b6
1 #!/usr/bin/perl
3 use strict;
4 use CGI;
5 use C4::Auth;
6 use C4::Context;
7 use C4::Output;
8 use C4::Labels;
9 use HTML::Template::Pro;
10 use POSIX;
12 #use Data::Dumper;
13 #use Smart::Comments;
16 my $dbh = C4::Context->dbh;
17 my $query = new CGI;
19 my $tmpl_id = $query->param('tmpl_id');
20 my $tmpl_code = $query->param('tmpl_code');
21 my $tmpl_desc = $query->param('tmpl_desc');
22 my $page_height = $query->param('page_height');
23 my $page_width = $query->param('page_width');
24 my $label_height = $query->param('label_height');
25 my $label_width = $query->param('label_width');
26 my $topmargin = $query->param('topmargin');
27 my $leftmargin = $query->param('leftmargin');
28 my $cols = $query->param('cols');
29 my $rows = $query->param('rows');
30 my $colgap = $query->param('colgap');
31 my $rowgap = $query->param('rowgap');
32 my $fontsize = $query->param('fontsize');
33 my $units = $query->param('units');
34 my $active = $query->param('active');
37 SaveTemplate(
39 $tmpl_id, $tmpl_code, $tmpl_desc, $page_width,
40 $page_height, $label_width, $label_height, $topmargin,
41 $leftmargin, $cols, $rows, $colgap,
42 $rowgap, $fontsize, $units
47 print $query->redirect("./label-templates.pl");