use C4::Labels;
use C4::Output;
use C4::Context;
-use HTML::Template;
+use HTML::Template::Pro;
-use Smart::Comments;
+# use Smart::Comments;
my $query = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
my @barcode_types = get_barcode_types();
my @batches = get_batches();
-if ($op = 'delete_layout') {
-delete_layout($layout_id);
+if ($op eq 'delete_layout') { # had been assignment! serious error!
+ delete_layout($layout_id);
}
-
-
-
### $data
$template->param( guidebox => 1 ) if ( $data->{'guidebox'} );
startlabel => $data->{'startlabel'},
fontsize => $active_template->{'fontsize'},
- intranetcolorstylesheet =>
- C4::Context->preference("intranetcolorstylesheet"),
- intranetstylesheet => C4::Context->preference("intranetstylesheet"),
- IntranetNav => C4::Context->preference("IntranetNav"),
);
output_html_with_http_headers $query, $cookie, $template->output;