Umstellung der HTML-Vorlagen aus templates/webpages/rp von HTML::Template auf Template.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 1 Nov 2007 10:38:19 +0000 (10:38 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 1 Nov 2007 10:38:19 +0000 (10:38 +0000)
bin/mozilla/rp.pl
templates/webpages/rp/aging_ar_bottom_de.html
templates/webpages/rp/aging_ar_bottom_master.html

index 1a2999b..a6294f2 100644 (file)
@@ -1441,9 +1441,9 @@ sub aging {
   $report->add_data(create_aging_subtotal_row(\%totals, \@columns, \@periods, 'listtotal'));
 
   if ($form->{arap} eq 'ar') {
-    $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), });
+    $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), });
     $report->set_options('raw_top_info_text'    => $raw_top_info_text,
                          'raw_bottom_info_text' => $raw_bottom_info_text);
   }
index 6360b77..903cda9 100644 (file)
@@ -1,17 +1,17 @@
- <input type="hidden" name="rowcount" value="<TMPL_VAR row_idx ESCAPE=HTML>">
+[% USE HTML %] <input type="hidden" name="rowcount" value="[% HTML.escape(row_idx) %]">
 
- <TMPL_VAR PRINT_OPTIONS>
+ [% PRINT_OPTIONS %]
 
- <input type="hidden" name="todate" value="<TMPL_VAR todate ESCAPE=HTML>">
- <input type="hidden" name="title" value="<TMPL_VAR title ESCAPE=HTML>">
- <input type="hidden" name="arap" value="<TMPL_VAR arap ESCAPE=HTML>">
- <input type="hidden" name="ct" value="<TMPL_VAR ct ESCAPE=HTML>">
- <input type="hidden" name="customer" value="<TMPL_VAR customer ESCAPE=HTML>">
- <input type="hidden" name="vendor" value="<TMPL_VAR vendor ESCAPE=HTML>">
- <input type="hidden" name="department" value="<TMPL_VAR department ESCAPE=HTML>">
+ <input type="hidden" name="todate" value="[% HTML.escape(todate) %]">
+ <input type="hidden" name="title" value="[% HTML.escape(title) %]">
+ <input type="hidden" name="arap" value="[% HTML.escape(arap) %]">
+ <input type="hidden" name="ct" value="[% HTML.escape(ct) %]">
+ <input type="hidden" name="customer" value="[% HTML.escape(customer) %]">
+ <input type="hidden" name="vendor" value="[% HTML.escape(vendor) %]">
+ <input type="hidden" name="department" value="[% HTML.escape(department) %]">
 
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
 
  Sammelrechnung
  <br>
index 2e98497..5736406 100644 (file)
@@ -1,17 +1,17 @@
- <input type="hidden" name="rowcount" value="<TMPL_VAR row_idx ESCAPE=HTML>">
+[% USE HTML %] <input type="hidden" name="rowcount" value="[% HTML.escape(row_idx) %]">
 
- <TMPL_VAR PRINT_OPTIONS>
+ [% PRINT_OPTIONS %]
 
- <input type="hidden" name="todate" value="<TMPL_VAR todate ESCAPE=HTML>">
- <input type="hidden" name="title" value="<TMPL_VAR title ESCAPE=HTML>">
- <input type="hidden" name="arap" value="<TMPL_VAR arap ESCAPE=HTML>">
- <input type="hidden" name="ct" value="<TMPL_VAR ct ESCAPE=HTML>">
- <input type="hidden" name="customer" value="<TMPL_VAR customer ESCAPE=HTML>">
- <input type="hidden" name="vendor" value="<TMPL_VAR vendor ESCAPE=HTML>">
- <input type="hidden" name="department" value="<TMPL_VAR department ESCAPE=HTML>">
+ <input type="hidden" name="todate" value="[% HTML.escape(todate) %]">
+ <input type="hidden" name="title" value="[% HTML.escape(title) %]">
+ <input type="hidden" name="arap" value="[% HTML.escape(arap) %]">
+ <input type="hidden" name="ct" value="[% HTML.escape(ct) %]">
+ <input type="hidden" name="customer" value="[% HTML.escape(customer) %]">
+ <input type="hidden" name="vendor" value="[% HTML.escape(vendor) %]">
+ <input type="hidden" name="department" value="[% HTML.escape(department) %]">
 
- <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
- <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
+ <input type="hidden" name="login" value="[% HTML.escape(login) %]">
+ <input type="hidden" name="password" value="[% HTML.escape(password) %]">
 
  <translate>Statement</translate>
  <br>