Lines 53-58
my $template_flag;
Link Here
|
53 |
if (!defined $op) { |
53 |
if (!defined $op) { |
54 |
$template_name = "tools/batchMod.tmpl"; |
54 |
$template_name = "tools/batchMod.tmpl"; |
55 |
$template_flag = { tools => '*' }; |
55 |
$template_flag = { tools => '*' }; |
|
|
56 |
$op = q{}; |
56 |
} else { |
57 |
} else { |
57 |
$template_name = ($del) ? "tools/batchMod-del.tmpl" : "tools/batchMod-edit.tmpl"; |
58 |
$template_name = ($del) ? "tools/batchMod-del.tmpl" : "tools/batchMod-edit.tmpl"; |
58 |
$template_flag = ($del) ? { tools => 'items_batchdel' } : { tools => 'items_batchmod' }; |
59 |
$template_flag = ($del) ? { tools => 'items_batchdel' } : { tools => 'items_batchmod' }; |
Lines 440-447
foreach my $tag (sort keys %{$tagslib}) {
Link Here
|
440 |
$template->param(%$items_display_hashref) if $items_display_hashref; |
441 |
$template->param(%$items_display_hashref) if $items_display_hashref; |
441 |
$template->param( |
442 |
$template->param( |
442 |
op => $nextop, |
443 |
op => $nextop, |
443 |
$op => 1, |
|
|
444 |
); |
444 |
); |
|
|
445 |
$template->param( $op => 1 ) if $op; |
445 |
|
446 |
|
446 |
if ($op eq "action") { |
447 |
if ($op eq "action") { |
447 |
|
448 |
|
Lines 457-463
if ($op eq "action") {
Link Here
|
457 |
} |
458 |
} |
458 |
|
459 |
|
459 |
foreach my $error (@errors) { |
460 |
foreach my $error (@errors) { |
460 |
$template->param($error => 1); |
461 |
$template->param($error => 1) if $error; |
461 |
} |
462 |
} |
462 |
$template->param(src => $src); |
463 |
$template->param(src => $src); |
463 |
output_html_with_http_headers $input, $cookie, $template->output; |
464 |
output_html_with_http_headers $input, $cookie, $template->output; |
464 |
- |
|
|