Lines 52-59
my @item_numbers;
Link Here
|
52 |
my $output_format = $cgi->param('output_format') || 'pdf'; |
52 |
my $output_format = $cgi->param('output_format') || 'pdf'; |
53 |
my $referer = $cgi->param('referer') || undef; |
53 |
my $referer = $cgi->param('referer') || undef; |
54 |
|
54 |
|
55 |
my $from = $cgi->param('from') || undef; |
55 |
my $txt_from = $cgi->param('from') || undef; |
56 |
my $to = $cgi->param('to') || undef; |
56 |
my $txt_to = $cgi->param('to') || undef; |
|
|
57 |
my $from = int($txt_from) || undef; |
58 |
my $to = int($txt_to) || undef; |
59 |
my $range = length($txt_from) || undef; |
57 |
|
60 |
|
58 |
my $layouts = undef; |
61 |
my $layouts = undef; |
59 |
my $templates = undef; |
62 |
my $templates = undef; |
Lines 74-79
if ($op eq 'export') {
Link Here
|
74 |
start_label => $start_label, |
77 |
start_label => $start_label, |
75 |
label_ids => $label_id_param, |
78 |
label_ids => $label_id_param, |
76 |
label_count => scalar(@label_ids), |
79 |
label_count => scalar(@label_ids), |
|
|
80 |
range => $range |
77 |
}); |
81 |
}); |
78 |
$template->param( |
82 |
$template->param( |
79 |
batches => \@batches, |
83 |
batches => \@batches, |
Lines 84-94
if ($op eq 'export') {
Link Here
|
84 |
my $item_number_param = '&item_number='; |
88 |
my $item_number_param = '&item_number='; |
85 |
$item_number_param .= join ('&item_number=',@item_numbers); |
89 |
$item_number_param .= join ('&item_number=',@item_numbers); |
86 |
push (@batches, {create_script => ($output_format eq 'pdf' ? 'label-create-pdf.pl' : 'label-create-csv.pl'), |
90 |
push (@batches, {create_script => ($output_format eq 'pdf' ? 'label-create-pdf.pl' : 'label-create-csv.pl'), |
87 |
template_id => $template_id, |
91 |
template_id => $template_id, |
88 |
layout_id => $layout_id, |
92 |
layout_id => $layout_id, |
89 |
start_label => $start_label, |
93 |
start_label => $start_label, |
90 |
item_numbers => $item_number_param, |
94 |
item_numbers => $item_number_param, |
91 |
label_count => scalar(@item_numbers), |
95 |
label_count => scalar(@item_numbers), |
|
|
96 |
range => $range |
92 |
}); |
97 |
}); |
93 |
$template->param( |
98 |
$template->param( |
94 |
batches => \@batches, |
99 |
batches => \@batches, |
Lines 102-107
if ($op eq 'export') {
Link Here
|
102 |
template_id => $template_id, |
107 |
template_id => $template_id, |
103 |
layout_id => $layout_id, |
108 |
layout_id => $layout_id, |
104 |
start_label => $start_label, |
109 |
start_label => $start_label, |
|
|
110 |
range => $range |
105 |
}); |
111 |
}); |
106 |
} |
112 |
} |
107 |
$template->param( |
113 |
$template->param( |
Lines 128-133
if ($op eq 'export') {
Link Here
|
128 |
template_id => $template_id, |
134 |
template_id => $template_id, |
129 |
layout_id => $layout_id, |
135 |
layout_id => $layout_id, |
130 |
start_label => $start_label, |
136 |
start_label => $start_label, |
|
|
137 |
range => $range |
131 |
}); |
138 |
}); |
132 |
$template->param( |
139 |
$template->param( |
133 |
batches => \@batches, |
140 |
batches => \@batches, |
Lines 156-161
elsif ($op eq 'none') {
Link Here
|
156 |
label_count => $label_count, |
163 |
label_count => $label_count, |
157 |
item_count => $item_count, |
164 |
item_count => $item_count, |
158 |
referer => $referer, |
165 |
referer => $referer, |
|
|
166 |
range => $range, |
167 |
txt_from => $txt_from, |
168 |
txt_to => $txt_to, |
159 |
from => $from, |
169 |
from => $from, |
160 |
to => $to |
170 |
to => $to |
161 |
); |
171 |
); |
162 |
- |
|
|