Revision ddb162b6
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
454 | 454 |
my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET; |
455 | 455 |
my @header; |
456 | 456 |
|
457 |
my $layout = $::request->{layout}; |
|
458 |
|
|
459 | 457 |
$::lxdebug->leave_sub and return if !$ENV{HTTP_USER_AGENT} || $self->{header}++; |
460 | 458 |
|
459 |
if ($params{no_layout}) { |
|
460 |
$::request->{layout} = SL::Controller::Layout->new(style => 'none'); |
|
461 |
} |
|
462 |
|
|
463 |
my $layout = $::request->{layout}; |
|
464 |
|
|
461 | 465 |
# standard css for all |
462 | 466 |
$layout->use_stylesheet("$_.css") for qw( |
463 | 467 |
main menu tabcontent list_accounts jquery.autocomplete |
bin/mozilla/ap.pl | ||
---|---|---|
410 | 410 |
|
411 | 411 |
$form->header; |
412 | 412 |
print qq| |
413 |
<body> |
|
414 |
|
|
415 | 413 |
<form method=post action=$form->{script}> |
416 | 414 |
|
417 | 415 |
<input type=hidden name=id value=$form->{id}> |
bin/mozilla/common.pl | ||
---|---|---|
196 | 196 |
$form->{formname} ||= 'Form'; |
197 | 197 |
|
198 | 198 |
$form->{title} = $locale->text("Select a part"); |
199 |
$form->header(); |
|
199 |
$form->header(no_layout => 1);
|
|
200 | 200 |
print $form->parse_html_template("generic/part_selection", { "HEADER" => \@header, |
201 | 201 |
"PARTS" => $parts, }); |
202 | 202 |
|
... | ... | |
244 | 244 |
@header_sort); |
245 | 245 |
|
246 | 246 |
$form->{"title"} = $locale->text("Select a Customer"); |
247 |
$form->header(); |
|
247 |
$form->header(no_layout => 1);
|
|
248 | 248 |
print $form->parse_html_template("generic/select_delivery_customer", { "HEADER" => \@header, |
249 | 249 |
"DELIVERY" => $delivery, }); |
250 | 250 |
|
... | ... | |
292 | 292 |
@header_sort); |
293 | 293 |
|
294 | 294 |
$form->{"title"} = $locale->text("Select a Customer"); |
295 |
$form->header(); |
|
295 |
$form->header(no_layout => 1);
|
|
296 | 296 |
print $form->parse_html_template("generic/select_vendor", { "HEADER" => \@header, |
297 | 297 |
"VENDOR" => $vendor, }); |
298 | 298 |
|
... | ... | |
334 | 334 |
|
335 | 335 |
$form->{formel} = $formel; |
336 | 336 |
$form->{title} = $locale->text("Please enter values"); |
337 |
$form->header(); |
|
337 |
$form->header(no_layout => 1);
|
|
338 | 338 |
print $form->parse_html_template("generic/calculate_qty", { "HEADER" => \@header, |
339 | 339 |
"VARIABLES" => \@variable, }); |
340 | 340 |
|
... | ... | |
350 | 350 |
my $locale = $main::locale; |
351 | 351 |
|
352 | 352 |
$form->{title} = $locale->text("Enter longdescription"); |
353 |
$form->header(); |
|
353 |
$form->header(no_layout => 1);
|
|
354 | 354 |
print $form->parse_html_template("generic/set_longdescription"); |
355 | 355 |
|
356 | 356 |
$main::lxdebug->leave_sub(); |
... | ... | |
399 | 399 |
$sort =~ s/.*\.(.*)/$1/; |
400 | 400 |
|
401 | 401 |
$form->{title} = $locale->text("History"); |
402 |
$form->header(); |
|
402 |
$form->header(no_layout => 1);
|
|
403 | 403 |
print $form->parse_html_template( "common/show_history", { |
404 | 404 |
"DATEN" => $form->get_history($dbh,$form->{input_name},"",$form->{order}), |
405 | 405 |
"SUCCESS" => ($form->get_history($dbh,$form->{input_name}) ne "0"), |
406 | 406 |
uc($sort) => 1, |
407 |
uc($sort)."BY" => $sortby |
|
407 |
uc($sort)."BY" => $sortby,
|
|
408 | 408 |
} ); |
409 | 409 |
|
410 | 410 |
$dbh->disconnect(); |
... | ... | |
458 | 458 |
|
459 | 459 |
$form->{title} = $form->{vc} eq "customer" ? |
460 | 460 |
$locale->text("Customer details") : $locale->text("Vendor details"); |
461 |
$form->header(); |
|
461 |
$form->header(no_layout => 1);
|
|
462 | 462 |
print $form->parse_html_template("common/show_vc_details", { "is_customer" => $form->{vc} eq "customer" }); |
463 | 463 |
|
464 | 464 |
$main::lxdebug->leave_sub(); |
bin/mozilla/dn.pl | ||
---|---|---|
283 | 283 |
$main::auth->assert('dunning_edit'); |
284 | 284 |
|
285 | 285 |
$form->{"title"} = $locale->text("Set eMail text"); |
286 |
$form->header(); |
|
286 |
$form->header(no_layout => 1);
|
|
287 | 287 |
print($form->parse_html_template("dunning/set_email")); |
288 | 288 |
|
289 | 289 |
$main::lxdebug->leave_sub(); |
bin/mozilla/do.pl | ||
---|---|---|
1150 | 1150 |
|
1151 | 1151 |
get_basic_bin_wh_info($stock_info); |
1152 | 1152 |
|
1153 |
$form->header(); |
|
1153 |
$form->header(no_layout => 1);
|
|
1154 | 1154 |
print $form->parse_html_template('do/stock_in_form', { 'UNITS' => $units_data, |
1155 | 1155 |
'STOCK_INFO' => $stock_info, |
1156 | 1156 |
'PART_INFO' => $part_info, }); |
... | ... | |
1244 | 1244 |
} |
1245 | 1245 |
} |
1246 | 1246 |
|
1247 |
$form->header(); |
|
1247 |
$form->header(no_layout => 1);
|
|
1248 | 1248 |
print $form->parse_html_template('do/stock_out_form', { 'UNITS' => $units_data, |
1249 | 1249 |
'WHCONTENTS' => $form->{delivered} ? $stock_info : \@contents, |
1250 | 1250 |
'PART_INFO' => $part_info, }); |
bin/mozilla/fu.pl | ||
---|---|---|
93 | 93 |
|
94 | 94 |
$form->{jsscript} = 1; |
95 | 95 |
|
96 |
$form->header(); |
|
96 |
$form->header(no_layout => $::form->{POPUP_MODE});
|
|
97 | 97 |
print $form->parse_html_template('fu/add_edit'); |
98 | 98 |
|
99 | 99 |
$main::lxdebug->leave_sub(); |
bin/mozilla/oe.pl | ||
---|---|---|
1999 | 1999 |
$::form->{AR} = [ grep { $_->{link} =~ m/(?:^|:)AR(?::|$)/ } @{ $::form->{ALL_CHARTS} } ]; |
2000 | 2000 |
$::form->{title} = $::locale->text('Edit the configuration for periodic invoices'); |
2001 | 2001 |
|
2002 |
$::form->header(); |
|
2002 |
$::form->header(no_layout => 1);
|
|
2003 | 2003 |
print $::form->parse_html_template('oe/edit_periodic_invoices_config', $config); |
2004 | 2004 |
|
2005 | 2005 |
$::lxdebug->leave_sub(); |
Auch abrufbar als: Unified diff
popups ohne layout rendern