From: Moritz Bunkus Date: Wed, 31 Oct 2007 14:50:52 +0000 (+0000) Subject: Umstellung der Vorlagen in templates/webpages/common von HTML::Template auf Template. X-Git-Tag: release-2.6.0beta1~452 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1a39394f99bd1a1870fe148cadfe52942096a802;p=kivitendo-erp.git Umstellung der Vorlagen in templates/webpages/common von HTML::Template auf Template. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index ac973cff9..94fc1928f 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -2706,7 +2706,7 @@ sub show_history_search { $form->{title} = $locale->text("History Search"); $form->header(); - print $form->parse_html_template("/common/search_history"); + print $form->parse_html_template2("common/search_history"); $lxdebug->leave_sub(); } @@ -2785,7 +2785,7 @@ sub show_am_history { my ($sort, $sortby) = split(/\-\-/, $form->{order}); $sort =~ s/.*\.(.*)$/$1/; - print $form->parse_html_template("/common/show_history", + print $form->parse_html_template2("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, diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 627cbee87..f05d15823 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1422,7 +1422,7 @@ sub ap_transactions { } $report->set_options('top_info_text' => join("\n", @options), - 'raw_bottom_info_text' => $form->parse_html_template('ap/ap_transactions_bottom'), + 'raw_bottom_info_text' => $form->parse_html_template2('ap/ap_transactions_bottom'), 'output_format' => 'HTML', 'title' => $form->{title}, 'attachment_basename' => $locale->text('invoice_list') . strftime('_%Y%m%d', localtime time), diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 11a12e440..17db605ca 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1505,7 +1505,7 @@ sub ar_transactions { } $report->set_options('top_info_text' => join("\n", @options), - 'raw_bottom_info_text' => $form->parse_html_template('ar/ar_transactions_bottom'), + 'raw_bottom_info_text' => $form->parse_html_template2('ar/ar_transactions_bottom'), 'output_format' => 'HTML', 'title' => $form->{title}, 'attachment_basename' => $locale->text('invoice_list') . strftime('_%Y%m%d', localtime time), diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index dfecb2878..e9a824178 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -514,7 +514,7 @@ sub show_history { $form->{title} = $locale->text("History"); $form->header(); - print $form->parse_html_template( "common/show_history", { + print $form->parse_html_template2( "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, @@ -559,8 +559,8 @@ sub show_vc_details { $form->{title} = $form->{vc} eq "customer" ? $locale->text("Customer details") : $locale->text("Vendor details"); $form->header(); - print($form->parse_html_template("common/show_vc_details", - { "is_customer" => $form->{vc} eq "customer" })); + print($form->parse_html_template2("common/show_vc_details", + { "is_customer" => $form->{vc} eq "customer" })); $lxdebug->leave_sub(); } diff --git a/templates/webpages/ap/ap_transactions_bottom_de.html b/templates/webpages/ap/ap_transactions_bottom_de.html index 3b7faa63b..0e30e4321 100644 --- a/templates/webpages/ap/ap_transactions_bottom_de.html +++ b/templates/webpages/ap/ap_transactions_bottom_de.html @@ -1,9 +1,9 @@ -
+[% USE HTML %] - + - - + + Neu erfassen
diff --git a/templates/webpages/ap/ap_transactions_bottom_master.html b/templates/webpages/ap/ap_transactions_bottom_master.html index ed2739564..f864d8734 100644 --- a/templates/webpages/ap/ap_transactions_bottom_master.html +++ b/templates/webpages/ap/ap_transactions_bottom_master.html @@ -1,9 +1,9 @@ - +[% USE HTML %] - + - - + + Create new
diff --git a/templates/webpages/ar/ar_transactions_bottom_de.html b/templates/webpages/ar/ar_transactions_bottom_de.html index 7a073571b..9c1a17c1c 100644 --- a/templates/webpages/ar/ar_transactions_bottom_de.html +++ b/templates/webpages/ar/ar_transactions_bottom_de.html @@ -1,9 +1,9 @@ - +[% USE HTML %] - + - - + + Neu erfassen
diff --git a/templates/webpages/ar/ar_transactions_bottom_master.html b/templates/webpages/ar/ar_transactions_bottom_master.html index 29c5ece89..887b28827 100644 --- a/templates/webpages/ar/ar_transactions_bottom_master.html +++ b/templates/webpages/ar/ar_transactions_bottom_master.html @@ -1,9 +1,9 @@ - +[% USE HTML %] - + - - + + Create new
diff --git a/templates/webpages/common/search_history_de.html b/templates/webpages/common/search_history_de.html index d909ebfe8..447657e35 100644 --- a/templates/webpages/common/search_history_de.html +++ b/templates/webpages/common/search_history_de.html @@ -1,4 +1,4 @@ - +[% USE HTML %] @@ -6,8 +6,8 @@ - - + + @@ -21,10 +21,10 @@