return $file;
}
-sub parse_html_template2 {
+sub parse_html_template {
$main::lxdebug->enter_sub();
my ($self, $file, $additional_params) = @_;
$self->{title} = $title if ($title);
$self->header();
- print $self->parse_html_template2("generic/error", $add_params);
+ print $self->parse_html_template("generic/error", $add_params);
die("Error: $error\n");
}
$self->{title} = $title if ($title);
$self->header();
- print $self->parse_html_template2("generic/information", $add_params);
+ print $self->parse_html_template("generic/information", $add_params);
die("Information: $error\n");
}
my $self = shift;
my $variables = $self->prepare_html_content();
- return $self->{form}->parse_html_template2('report_generator/html_report', $variables);
+ return $self->{form}->parse_html_template('report_generator/html_report', $variables);
}
sub verify_paper_size {
$form->error($locale->text('Could not write the temporary HTML file.'));
}
- $html_file->print($form->parse_html_template2('report_generator/pdf_report', $variables));
+ $html_file->print($form->parse_html_template('report_generator/pdf_report', $variables));
$html_file->close();
my $cmdline =
$form->{"stylesheet"} = "lx-office-erp.css";
$form->{"title"} = $main::locale->text("Dataset upgrade");
$form->header();
- print($form->parse_html_template2("dbupgrade/header"));
+ print $form->parse_html_template("dbupgrade/header");
$form->{dbupdate} = "db$myconfig{dbname}";
$form->{ $form->{dbupdate} } = 1;
if ($form->{"show_dbupdate_warning"}) {
- print($form->parse_html_template2("dbupgrade/warning"));
+ print $form->parse_html_template("dbupgrade/warning");
exit(0);
}
$self->{"menustyle"} eq "xml" ? "menuXML.pl" :
"menu.pl";
- print($form->parse_html_template2("dbupgrade/footer",
- { "menufile" => $menufile }));
+ print $form->parse_html_template("dbupgrade/footer", { "menufile" => $menufile });
$rc = -2;
}
if (!defined($result)) {
- print($form->parse_html_template2("dbupgrade/error",
- { "file" => $filename,
- "error" => $@ }));
+ print $form->parse_html_template("dbupgrade/error",
+ { "file" => $filename,
+ "error" => $@ });
exit(0);
} elsif (1 != $result) {
unlink("users/nologin") if (2 == $result);
# apply upgrade
$main::lxdebug->message(DEBUG2, "Applying Update $control->{file}");
- print($form->parse_html_template2("dbupgrade/upgrade_message2",
- $control));
+ print $form->parse_html_template("dbupgrade/upgrade_message2", $control);
if ($file_type eq "sql") {
$self->process_query($form, $dbh, "sql/" . $form->{"dbdriver"} .
qq|Lx-Office ERP $form->{version} | . $locale->text('Administration');
$form->header();
- print $form->parse_html_template2('admin/adminlogin');
+ print $form->parse_html_template('admin/adminlogin');
}
sub login {
$form->{MEMBERS} = [ @members{sort { lc $a cmp lc $b } keys %members} ];
$form->header();
- print $form->parse_html_template2("admin/list_users");
+ print $form->parse_html_template("admin/list_users");
}
sub add_user {
chop $form->{all_acs};
$form->header();
- print $form->parse_html_template2("admin/edit_user");
+ print $form->parse_html_template("admin/edit_user");
}
sub save {
. $locale->text('Change Admin Password');
$form->header();
- print $form->parse_html_template2("admin/change_admin_password");
+ print $form->parse_html_template("admin/change_admin_password");
}
sub change_password {
$form->{ALLOW_DBBACKUP} = "$pg_dump_exe" ne "DISABLED";
$form->header();
- print $form->parse_html_template2("admin/dbadmin");
+ print $form->parse_html_template("admin/dbadmin");
}
sub continue {
$form->{ALL_UPDATED} = !scalar @need_updates;
$form->header();
- print $form->parse_html_template2("admin/update_dataset");
+ print $form->parse_html_template("admin/update_dataset");
}
sub dbupdate {
$| = 1;
- print $form->parse_html_template2("admin/dbupgrade_all_header");
+ print $form->parse_html_template("admin/dbupgrade_all_header");
foreach my $i (@update_rows) {
restore_form($saved_form);
my $controls = parse_dbupdate_controls($form, $form->{dbdriver});
- print $form->parse_html_template2("admin/dbupgrade_header");
+ print $form->parse_html_template("admin/dbupgrade_header");
$form->{dbupdate} = $form->{dbname};
$form->{$form->{dbname}} = 1;
User->dbupdate($form);
User->dbupdate2($form, $controls);
- print $form->parse_html_template2("admin/dbupgrade_footer");
+ print $form->parse_html_template("admin/dbupgrade_footer");
}
- print $form->parse_html_template2("admin/dbupgrade_all_done");
+ print $form->parse_html_template("admin/dbupgrade_all_done");
}
sub create_dataset {
. $locale->text('Create Dataset');
$form->header();
- print $form->parse_html_template2("admin/create_dataset");
+ print $form->parse_html_template("admin/create_dataset");
}
sub dbcreate {
. $locale->text('Create Dataset');
$form->header();
- print $form->parse_html_template2("admin/dbcreate");
+ print $form->parse_html_template("admin/dbcreate");
}
sub delete_dataset {
$form->{DBSOURCES} = [ map { { "name", $_ } } sort @dbsources ];
$form->header();
- print $form->parse_html_template2("admin/delete_dataset");
+ print $form->parse_html_template("admin/delete_dataset");
}
sub dbdelete {
. $locale->text('Database Administration') . " / "
. $locale->text('Delete Dataset');
$form->header();
- print $form->parse_html_template2("admin/dbdelete");
+ print $form->parse_html_template("admin/dbdelete");
}
sub backup_dataset {
$form->{from} = "Lx-Office Admin <${username}\@${hostname}>";
$form->header();
- print $form->parse_html_template2("admin/backup_dataset");
+ print $form->parse_html_template("admin/backup_dataset");
}
sub backup_dataset_start {
. $locale->text('Backup Dataset');
$form->header();
- print $form->parse_html_template2("admin/backup_dataset_email_done");
+ print $form->parse_html_template("admin/backup_dataset_email_done");
}
}
}
$form->header();
- print $form->parse_html_template2("admin/restore_dataset");
+ print $form->parse_html_template("admin/restore_dataset");
}
sub restore_dataset_start {
$AUTOFLUSH = 1;
$form->header();
- print $form->parse_html_template2("admin/restore_dataset_start_header");
+ print $form->parse_html_template("admin/restore_dataset_start_header");
while (my $line = <$in>) {
print $line;
$in->close();
$form->{retval} = $CHILD_ERROR >> 8;
- print $form->parse_html_template2("admin/restore_dataset_start_footer");
+ print $form->parse_html_template("admin/restore_dataset_start_footer");
unlink "${tmpdir}/.pgpass", $tmp;
rmdir $tmpdir;
};
# Ausgabe des Templates
- print($form->parse_html_template2('am/edit_accounts', $parameters_ref));
+ print($form->parse_html_template('am/edit_accounts', $parameters_ref));
$lxdebug->leave_sub();
};
# Ausgabe des Templates
- print($form->parse_html_template2('am/list_accounts', $parameters_ref));
+ print($form->parse_html_template('am/list_accounts', $parameters_ref));
$lxdebug->leave_sub();
$form->{title} = $locale->text('Chart of Accounts');
$form->header();
- print $form->parse_html_template2('am/list_account_details');
+ print $form->parse_html_template('am/list_account_details');
$lxdebug->leave_sub();
$form->{title} = $locale->text('Edit Preferences for #1', $form->{login});
$form->header();
- print $form->parse_html_template2('am/config');
+ print $form->parse_html_template('am/config');
$lxdebug->leave_sub();
}
$form->{"title"} = sprintf($locale->text("Add and edit %s"), $form->{"unit_type"} eq "dimension" ? $locale->text("dimension units") : $locale->text("service units"));
$form->header();
- print($form->parse_html_template2("am/edit_units",
- { "UNITS" => \@unit_list,
- "NEW_BASE_UNIT_DDBOX" => $ddbox,
- "LANGUAGES" => \@languages,
- "updownlink" => $updownlink }));
+ print($form->parse_html_template("am/edit_units",
+ { "UNITS" => \@unit_list,
+ "NEW_BASE_UNIT_DDBOX" => $ddbox,
+ "LANGUAGES" => \@languages,
+ "updownlink" => $updownlink }));
$lxdebug->leave_sub();
}
$form->{title} = $locale->text("History Search");
$form->header();
- print $form->parse_html_template2("common/search_history");
+ print $form->parse_html_template("common/search_history");
$lxdebug->leave_sub();
}
my ($sort, $sortby) = split(/\-\-/, $form->{order});
$sort =~ s/.*\.(.*)$/$1/;
- print $form->parse_html_template2("common/show_history",
+ print $form->parse_html_template("common/show_history",
{"DATEN" => $form->get_history($dbh, $daten, $restriction, $form->{order}),
"SUCCESS" => ($form->get_history($dbh, $daten, $restriction, $form->{order}) ne "0"),
"NONEWWINDOW" => 1,
};
# Ausgabe des Templates
- print($form->parse_html_template2('am/edit_tax', $parameters_ref));
+ print($form->parse_html_template('am/edit_tax', $parameters_ref));
$lxdebug->leave_sub();
}
};
# Ausgabe des Templates
- print($form->parse_html_template2('am/edit_tax', $parameters_ref));
+ print($form->parse_html_template('am/edit_tax', $parameters_ref));
$lxdebug->leave_sub();
}
$form->header();
# Ausgabe des Templates
- print($form->parse_html_template2('am/list_tax', $parameters_ref));
+ print($form->parse_html_template('am/list_tax', $parameters_ref));
$lxdebug->leave_sub();
}
$form->{fokus} = 'description';
$form->header();
- print $form->parse_html_template2('am/edit_price_factor');
+ print $form->parse_html_template('am/edit_price_factor');
$lxdebug->leave_sub();
}
$form->{factor} = $form->format_amount(\%myconfig, $form->{factor} * 1);
$form->header();
- print $form->parse_html_template2('am/edit_price_factor');
+ print $form->parse_html_template('am/edit_price_factor');
$lxdebug->leave_sub();
}
$form->{url_base} = build_std_url('callback');
$form->header();
- print $form->parse_html_template2('am/list_price_factors');
+ print $form->parse_html_template('am/list_price_factors');
$lxdebug->leave_sub();
}
$options{"HIDDEN"} = [ map(+{ "name" => $_, "value" => $form->{$_} }, @hidden) ];
$form->header;
- print($form->parse_html_template2("am/edit_templates", \%options));
+ print($form->parse_html_template("am/edit_templates", \%options));
$lxdebug->leave_sub();
}
}
$report->set_options('top_info_text' => join("\n", @options),
- 'raw_bottom_info_text' => $form->parse_html_template2('ap/ap_transactions_bottom'),
+ 'raw_bottom_info_text' => $form->parse_html_template('ap/ap_transactions_bottom'),
'output_format' => 'HTML',
'title' => $form->{title},
'attachment_basename' => $locale->text('invoice_list') . strftime('_%Y%m%d', localtime time),
}
$report->set_options('top_info_text' => join("\n", @options),
- 'raw_bottom_info_text' => $form->parse_html_template2('ar/ar_transactions_bottom'),
+ 'raw_bottom_info_text' => $form->parse_html_template('ar/ar_transactions_bottom'),
'output_format' => 'HTML',
'title' => $form->{title},
'attachment_basename' => $locale->text('invoice_list') . strftime('_%Y%m%d', localtime time),
$form->{"title"} = $locale->text("Select a Customer");
$form->header();
- print $form->parse_html_template2("generic/select_delivery_customer", { "HEADER" => \@header,
- "DELIVERY" => $delivery,
- "onload" => $onload });
+ print $form->parse_html_template("generic/select_delivery_customer", { "HEADER" => \@header,
+ "DELIVERY" => $delivery,
+ "onload" => $onload });
$lxdebug->leave_sub();
}
$form->{"title"} = $locale->text("Select a Customer");
$form->header();
- print $form->parse_html_template2("generic/select_vendor", { "HEADER" => \@header,
- "VENDOR" => $vendor,
- "onload" => $onload });
+ print $form->parse_html_template("generic/select_vendor", { "HEADER" => \@header,
+ "VENDOR" => $vendor,
+ "onload" => $onload });
$lxdebug->leave_sub();
}
$form->{formel} = $formel;
$form->{"title"} = $locale->text("Please enter values");
$form->header();
- print($form->parse_html_template2("generic/calculate_qty", { "HEADER" => \@header,
- "VARIABLES" => \@variable,
- "onload" => $onload }));
+ print($form->parse_html_template("generic/calculate_qty", { "HEADER" => \@header,
+ "VARIABLES" => \@variable,
+ "onload" => $onload }));
$lxdebug->leave_sub();
}
$form->{title} = $locale->text("Enter longdescription");
$form->header();
- print $form->parse_html_template2("generic/set_longdescription");
+ print $form->parse_html_template("generic/set_longdescription");
$lxdebug->leave_sub();
}
$form->{title} = $locale->text("History");
$form->header();
- print $form->parse_html_template2( "common/show_history", {
+ 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,
$form->{title} = $form->{vc} eq "customer" ?
$locale->text("Customer details") : $locale->text("Vendor details");
$form->header();
- print($form->parse_html_template2("common/show_vc_details",
- { "is_customer" => $form->{vc} eq "customer" }));
+ print $form->parse_html_template("common/show_vc_details", { "is_customer" => $form->{vc} eq "customer" });
$lxdebug->leave_sub();
}
$form->{fokus} = 'Form.name';
$form->header();
- print $form->parse_html_template2('ct/search');
+ print $form->parse_html_template('ct/search');
$lxdebug->leave_sub();
}
my $report = SL::ReportGenerator->new(\%myconfig, $form);
$report->set_options('top_info_text' => join("\n", @options),
- 'raw_bottom_info_text' => $form->parse_html_template2('ct/list_names_bottom'),
+ 'raw_bottom_info_text' => $form->parse_html_template('ct/list_names_bottom'),
'output_format' => 'HTML',
'title' => $form->{title},
'attachment_basename' => $attachment_basename . strftime('_%Y%m%d', localtime time),
$form->{callback} ||= build_std_url("action=edit_config");
$form->header();
- print $form->parse_html_template2("dunning/edit_config");
+ print $form->parse_html_template("dunning/edit_config");
$lxdebug->leave_sub();
}
$form->{fokus} = "search.customer";
$form->header();
- print $form->parse_html_template2("dunning/add");
+ print $form->parse_html_template("dunning/add");
$lxdebug->leave_sub();
}
'no_opendocument' => 1,);
$form->header();
- print $form->parse_html_template2("dunning/show_invoices");
+ print $form->parse_html_template("dunning/show_invoices");
$lxdebug->leave_sub();
}
$form->{"title"} = $locale->text("Set eMail text");
$form->header();
- print($form->parse_html_template2("dunning/set_email"));
+ print($form->parse_html_template("dunning/set_email"));
$lxdebug->leave_sub();
}
. qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|
. qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
- print $form->parse_html_template2("dunning/search");
+ print $form->parse_html_template("dunning/search");
$lxdebug->leave_sub();
$report->add_data($current_dunning_rows) if (scalar @{ $current_dunning_rows });
- $report->set_options('raw_top_info_text' => $form->parse_html_template2('dunning/show_dunning_top'),
- 'raw_bottom_info_text' => $form->parse_html_template2('dunning/show_dunning_bottom'),
+ $report->set_options('raw_top_info_text' => $form->parse_html_template('dunning/show_dunning_top'),
+ 'raw_bottom_info_text' => $form->parse_html_template('dunning/show_dunning_bottom'),
'output_format' => 'HTML',
'attachment_basename' => $locale->text('dunning_list') . strftime('_%Y%m%d', localtime time),
);
$form->{remove_draft} = 1;
$form->header();
- print($form->parse_html_template2("drafts/save_new"));
+ print($form->parse_html_template("drafts/save_new"));
return $lxdebug->leave_sub();
}
my $saved_form = save_form();
$form->header();
- print($form->parse_html_template2("drafts/load",
- { "DRAFTS" => \@drafts,
- "SAVED_FORM" => $saved_form,
- "draft_nextsub" => $draft_nextsub }));
+ print($form->parse_html_template("drafts/load",
+ { "DRAFTS" => \@drafts,
+ "SAVED_FORM" => $saved_form,
+ "draft_nextsub" => $draft_nextsub }));
$lxdebug->leave_sub();
. '</span></p> ';
}
- $raw_bottom_info_text .= $form->parse_html_template2('gl/generate_report_bottom');
+ $raw_bottom_info_text .= $form->parse_html_template('gl/generate_report_bottom');
$report->set_options('raw_bottom_info_text' => $raw_bottom_info_text);
);
$report->set_options('top_info_text' => $locale->text('Options') . ': ' . join(', ', grep $_, @options),
- 'raw_bottom_info_text' => $form->parse_html_template2('ic/generate_report_bottom'),
+ 'raw_bottom_info_text' => $form->parse_html_template('ic/generate_report_bottom'),
'output_format' => 'HTML',
'title' => $form->{title},
'attachment_basename' => $attachment_basenames{$form->{searchitems}} . strftime('_%Y%m%d', localtime time),
$form->{"title"} = $locale->text("Language Values");
$form->header();
- print $form->parse_html_template2("ic/parts_language_selection", { "HEADER" => \@header,
- "LANGUAGES" => $languages,
- "onload" => $onload });
+ print $form->parse_html_template("ic/parts_language_selection", { "HEADER" => \@header,
+ "LANGUAGES" => $languages,
+ "onload" => $onload });
$lxdebug->leave_sub();
}
push @HIDDENS, { 'name' => 'taxaccount2', 'value' => $form->{taxaccounts} };
$form->header();
- print $form->parse_html_template2("generic/new_item", { HIDDENS => [ sort { $a->{name} cmp $b->{name} } @HIDDENS ] } );
+ print $form->parse_html_template("generic/new_item", { HIDDENS => [ sort { $a->{name} cmp $b->{name} } @HIDDENS ] } );
$lxdebug->leave_sub();
}
@dont_hide_key{@dont_hide_key_list} = (1) x @dont_hide_key_list;
@hidden_keys = sort grep { !$dont_hide_key{$_} } grep { !ref $form->{$_} } keys %$form;
- print $form->parse_html_template2('generic/edit_email',
- { title => $title,
- a_filename => $attachment_filename,
- _print_options_ => print_options('inline' => 1),
- HIDDEN => [ map +{ name => $_, value => $form->{$_} }, @hidden_keys ],
- SHOW_BCC => $myconfig{role} eq 'admin' });
+ print $form->parse_html_template('generic/edit_email',
+ { title => $title,
+ a_filename => $attachment_filename,
+ _print_options_ => print_options('inline' => 1),
+ HIDDEN => [ map +{ name => $_, value => $form->{$_} }, @hidden_keys ],
+ SHOW_BCC => $myconfig{role} eq 'admin' });
$lxdebug->leave_sub();
}
remove_draft_checked => $form->{remove_draft} ? "checked" : ''
);
- my $print_options = $form->parse_html_template2("generic/print_options", { SELECTS => \@SELECTS, %template_vars } );
+ my $print_options = $form->parse_html_template("generic/print_options", { SELECTS => \@SELECTS, %template_vars } );
if ($options{inline}) {
$lxdebug->leave_sub();
$form->{date} = clock_line();
$form->{menu} = acc_menu();
- print $form->parse_html_template2("menu/menuv3");
+ print $form->parse_html_template("menu/menuv3");
}
is_pur_ord => scalar ($form->{type} =~ /purchase_order$/),
);
- print $form->parse_html_template2("oe/orders_header", { %TMPL_VAR });
+ print $form->parse_html_template("oe/orders_header", { %TMPL_VAR });
$lxdebug->leave_sub();
}
$form->{oldinvtotal} = $form->{invtotal};
- print $form->parse_html_template2("oe/orders_footer", {
+ print $form->parse_html_template("oe/orders_footer", {
%TMPL_VAR,
webdav => $webdav,
print_options => print_options(inline => 1),
}
$report->set_options('top_info_text' => join("\n", @options),
- 'raw_top_info_text' => $form->parse_html_template2('oe/orders_top'),
- 'raw_bottom_info_text' => $form->parse_html_template2('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
+ 'raw_top_info_text' => $form->parse_html_template('oe/orders_top'),
+ 'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
'output_format' => 'HTML',
'title' => $form->{title},
'attachment_basename' => $attachment_basename . strftime('_%Y%m%d', localtime time),
$form->{VARIABLES} = [ map { { "key" => $_, "value" => $form->{$_} } } grep { ref $_ eq "" } keys %{ $form } ];
$form->header();
- print $form->parse_html_template2("oe/check_for_direct_delivery");
+ print $form->parse_html_template("oe/check_for_direct_delivery");
$lxdebug->leave_sub();
push @ROWS, { ROW1 => \@ROW1, ROW2 => \@ROW2, HIDDENS => \@HIDDENS, colspan => $colspan, };
}
- print $form->parse_html_template2('oe/sales_order', { ROWS => \@ROWS,
- HEADER => \@HEADER,
- });
+ print $form->parse_html_template('oe/sales_order', { ROWS => \@ROWS,
+ HEADER => \@HEADER,
+ });
if (0 != ($form->{sellprice_total} * 1)) {
$form->{marge_percent} = ($form->{sellprice_total} - $form->{lastcost_total}) / $form->{sellprice_total} * 100;
$form->{title} = $locale->text('PDF export -- options');
$form->header();
- print $form->parse_html_template2('report_generator/pdf_export_options', { 'HIDDEN' => \@form_values });
+ print $form->parse_html_template('report_generator/pdf_export_options', { 'HIDDEN' => \@form_values });
$lxdebug->leave_sub();
}
$form->{title} = $locale->text('CSV export -- options');
$form->header();
- print $form->parse_html_template2('report_generator/csv_export_options', { 'HIDDEN' => \@form_values });
+ print $form->parse_html_template('report_generator/csv_export_options', { 'HIDDEN' => \@form_values });
$lxdebug->leave_sub();
}
$report->add_data(create_aging_subtotal_row(\%totals, \@columns, \@periods, 'listtotal'));
if ($form->{arap} eq 'ar') {
- $raw_top_info_text = $form->parse_html_template2('rp/aging_ar_top');
- $raw_bottom_info_text = $form->parse_html_template2('rp/aging_ar_bottom', { 'row_idx' => $row_idx,
- 'PRINT_OPTIONS' => print_options(inline => 1), });
+ $raw_top_info_text = $form->parse_html_template('rp/aging_ar_top');
+ $raw_bottom_info_text = $form->parse_html_template('rp/aging_ar_bottom', { 'row_idx' => $row_idx,
+ 'PRINT_OPTIONS' => print_options(inline => 1), });
$report->set_options('raw_top_info_text' => $raw_top_info_text,
'raw_bottom_info_text' => $raw_bottom_info_text);
}
# $locale->text('Nov')
# $locale->text('Dec')
-# $form->parse_html_template2('generic/util_hidden_variables');
+# $form->parse_html_template('generic/util_hidden_variables');
#############################
};
- print($form->parse_html_template2('ustva/report', $template_ref));
+ print($form->parse_html_template('ustva/report', $template_ref));
taxnumber => $myconfig{taxnumber},
};
- print($form->parse_html_template2('ustva/generic_taxreport', $template_ref));
+ print($form->parse_html_template('ustva/generic_taxreport', $template_ref));
} else
{
};
# Ausgabe des Templates
- print($form->parse_html_template2('ustva/config_step1', $template_ref));
+ print($form->parse_html_template('ustva/config_step1', $template_ref));
$lxdebug->leave_sub();
}
};
# Ausgabe des Templates
- print($form->parse_html_template2('ustva/config_step2', $template_ref));
+ print($form->parse_html_template('ustva/config_step2', $template_ref));
$lxdebug->leave_sub();
}
# is this a template call?
- if (/parse_html_template2?\s*\(\s*[\"\']([\w\/]+)/) {
+ if (/parse_html_template\s*\(\s*[\"\']([\w\/]+)/) {
my $newfile = "$basedir/templates/webpages/$1_master.html";
if (-f $newfile) {
# &scanhtmlfile($newfile);
sub myshowerror {
my ($msg) = @_;
- print($main::form->parse_html_template2("dbupgrade/units_error",
- { "message" => $msg }));
+ print $main::form->parse_html_template("dbupgrade/units_error", { "message" => $msg });
return 2;
}
map({ push(@unknown_parts, { "name" => $_, "NEW_UNITS" => $ddbox }); }
sort({ lc($a) cmp lc($b) } keys(%unknown_dimension_units)));
- print($form->parse_html_template2("dbupgrade/units_parts",
- { "NEW_BASE_UNIT_DDBOX" => $ddbox,
- "UNKNOWN_PART_UNITS" => \@unknown_parts,
- }));
+ print $form->parse_html_template("dbupgrade/units_parts",
+ { "NEW_BASE_UNIT_DDBOX" => $ddbox,
+ "UNKNOWN_PART_UNITS" => \@unknown_parts,
+ });
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/units_parts_done"));
+ print $form->parse_html_template("dbupgrade/units_parts_done");
}
if (scalar(keys(%unknown_service_units)) != 0) {
map({ push(@unknown_services, { "name" => $_, "NEW_UNITS" => $ddbox }); }
sort({ lc($a) cmp lc($b) } keys(%unknown_service_units)));
- print($form->parse_html_template2("dbupgrade/units_services",
- { "NEW_BASE_UNIT_DDBOX" => $ddbox,
- "UNKNOWN_PART_UNITS" => \@unknown_services,
- }));
+ print $form->parse_html_template("dbupgrade/units_services",
+ { "NEW_BASE_UNIT_DDBOX" => $ddbox,
+ "UNKNOWN_PART_UNITS" => \@unknown_services,
+ }));
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/units_services_done"));
+ print $form->parse_html_template("dbupgrade/units_services_done");
}
return 0;
my $service_units = retrieve_units(\%dbup_myconfig, $form, "service");
my $service_ddbox = unit_select_data($service_units);
- print($form->parse_html_template2("dbupgrade/units_set_default",
- { "DIMENSION_DDBOX" => $dimension_ddbox,
- "SERVICE_DDBOX" => $service_ddbox }));
+ print $form->parse_html_template("dbupgrade/units_set_default",
+ { "DIMENSION_DDBOX" => $dimension_ddbox,
+ "SERVICE_DDBOX" => $service_ddbox });
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/units_set_default_done"));
+ print $form->parse_html_template("dbupgrade/units_set_default_done");
return 1;
}
}
my $res;
- print($form->parse_html_template2("dbupgrade/units_header"));
+ print $form->parse_html_template("dbupgrade/units_header");
if ($form->{"action2"} eq "add_unit") {
$res = update_units_add_unit();
sub myshowerror {
my ($msg) = @_;
- print($main::form->parse_html_template2("dbupgrade/units_error",
- { "message" => $msg }));
+ print($main::form->parse_html_template("dbupgrade/units_error", { "message" => $msg }));
return 2;
}
my @coas = map(+{ "name" => $_ }, @valid_coas);
- print($form->parse_html_template2("dbupgrade/coa_guess",
- { "COAS" => \@coas }));
+ print($form->parse_html_template("dbupgrade/coa_guess", { "COAS" => \@coas }));
return 2;
}
sub myshowerror {
my ($msg) = @_;
- print($main::form->parse_html_template2("dbupgrade/units_error",
- { "message" => $msg }));
+ print($main::form->parse_html_template("dbupgrade/units_error", { "message" => $msg }));
return 2;
}
return create_standard_buchungsgruppen_skr04();
}
- print($form->parse_html_template2("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
+ print($form->parse_html_template("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
return 1;
}
sub myshowerror {
my ($msg) = @_;
- print($main::form->parse_html_template2("dbupgrade/units_error",
- { "message" => $msg }));
+ print($main::form->parse_html_template("dbupgrade/units_error", { "message" => $msg }));
return 2;
}
return update_steuersaetze_skr04();
}
- print($form->parse_html_template2("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
+ print($form->parse_html_template("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
return 1;
}
$entry->{"eur"} = $main::eur;
}
- # $form->parse_html_template2("dbupgrade/buchungsgruppen_parts")
- # $form->parse_html_template2("dbupgrade/buchungsgruppen_services")
- # $form->parse_html_template2("dbupgrade/buchungsgruppen_assemblies")
-
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_${type}",
- { "LIST" => $list,
- "BUCHUNGSGRUPPEN" => $buchungsgruppen,
- }));
+ # $form->parse_html_template("dbupgrade/buchungsgruppen_parts")
+ # $form->parse_html_template("dbupgrade/buchungsgruppen_services")
+ # $form->parse_html_template("dbupgrade/buchungsgruppen_assemblies")
+
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_${type}",
+ { "LIST" => $list,
+ "BUCHUNGSGRUPPEN" => $buchungsgruppen,
+ }));
}
sub create_buchungsgruppen {
my ($acc_inventory, $acc_income, $acc_expense) = retrieve_accounts();
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_header"));
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_header"));
if (scalar(@{$parts})) {
display_create_bgs_dialog("parts", $parts,
$buchungsgruppen);
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_parts_done"));
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_parts_done"));
}
if (scalar(@{$services})) {
$buchungsgruppen);
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_services_done"));
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_services_done"));
}
if (scalar(@{$assemblies})) {
$buchungsgruppen);
return 2;
} else {
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_assemblies_done"));
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_assemblies_done"));
}
- print($form->parse_html_template2("dbupgrade/buchungsgruppen_footer"));
+ print($form->parse_html_template("dbupgrade/buchungsgruppen_footer"));
return 1;
}
if (@warnings) {
@warnings = map(+{ "message" => $_ }, @warnings);
- print($form->parse_html_template2("dbupgrade/update_templates_warnings",
- { "WARNINGS" => \@warnings }));
+ print($form->parse_html_template("dbupgrade/update_templates_warnings", { "WARNINGS" => \@warnings }));
}
return 1;