my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
my @header;
- my $layout = $::request->{layout};
-
$::lxdebug->leave_sub and return if !$ENV{HTTP_USER_AGENT} || $self->{header}++;
+ if ($params{no_layout}) {
+ $::request->{layout} = SL::Controller::Layout->new(style => 'none');
+ }
+
+ my $layout = $::request->{layout};
+
# standard css for all
$layout->use_stylesheet("$_.css") for qw(
main menu tabcontent list_accounts jquery.autocomplete
$form->{formname} ||= 'Form';
$form->{title} = $locale->text("Select a part");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("generic/part_selection", { "HEADER" => \@header,
"PARTS" => $parts, });
@header_sort);
$form->{"title"} = $locale->text("Select a Customer");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("generic/select_delivery_customer", { "HEADER" => \@header,
"DELIVERY" => $delivery, });
@header_sort);
$form->{"title"} = $locale->text("Select a Customer");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("generic/select_vendor", { "HEADER" => \@header,
"VENDOR" => $vendor, });
$form->{formel} = $formel;
$form->{title} = $locale->text("Please enter values");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("generic/calculate_qty", { "HEADER" => \@header,
"VARIABLES" => \@variable, });
my $locale = $main::locale;
$form->{title} = $locale->text("Enter longdescription");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("generic/set_longdescription");
$main::lxdebug->leave_sub();
$sort =~ s/.*\.(.*)/$1/;
$form->{title} = $locale->text("History");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template( "common/show_history", {
"DATEN" => $form->get_history($dbh,$form->{input_name},"",$form->{order}),
"SUCCESS" => ($form->get_history($dbh,$form->{input_name}) ne "0"),
uc($sort) => 1,
- uc($sort)."BY" => $sortby
+ uc($sort)."BY" => $sortby,
} );
$dbh->disconnect();
$form->{title} = $form->{vc} eq "customer" ?
$locale->text("Customer details") : $locale->text("Vendor details");
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template("common/show_vc_details", { "is_customer" => $form->{vc} eq "customer" });
$main::lxdebug->leave_sub();
get_basic_bin_wh_info($stock_info);
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template('do/stock_in_form', { 'UNITS' => $units_data,
'STOCK_INFO' => $stock_info,
'PART_INFO' => $part_info, });
}
}
- $form->header();
+ $form->header(no_layout => 1);
print $form->parse_html_template('do/stock_out_form', { 'UNITS' => $units_data,
'WHCONTENTS' => $form->{delivered} ? $stock_info : \@contents,
'PART_INFO' => $part_info, });