Umstellung der Vorlagen aus templates/webpages/drafts von HTML::Template auf Template.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 31 Oct 2007 15:32:19 +0000 (15:32 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 31 Oct 2007 15:32:19 +0000 (15:32 +0000)
bin/mozilla/drafts.pl
templates/webpages/dbupgrade/std_buchungsgruppen_unknown_coa_de.html
templates/webpages/drafts/load_de.html
templates/webpages/drafts/load_master.html
templates/webpages/drafts/save_new_de.html
templates/webpages/drafts/save_new_master.html

index dbe61ff..515a642 100644 (file)
@@ -24,7 +24,7 @@ sub save_draft {
     $form->{remove_draft} = 1;
 
     $form->header();
-    print($form->parse_html_template("drafts/save_new"));
+    print($form->parse_html_template2("drafts/save_new"));
 
     return $lxdebug->leave_sub();
   }
@@ -70,10 +70,10 @@ sub load_draft_maybe {
   my $saved_form = save_form();
 
   $form->header();
-  print($form->parse_html_template("drafts/load",
-                                   { "DRAFTS" => \@drafts,
-                                     "SAVED_FORM" => $saved_form,
-                                     "draft_nextsub" => $draft_nextsub }));
+  print($form->parse_html_template2("drafts/load",
+                                    { "DRAFTS" => \@drafts,
+                                      "SAVED_FORM" => $saved_form,
+                                      "draft_nextsub" => $draft_nextsub }));
 
   $lxdebug->leave_sub();
 
index 564d0d4..425fd90 100644 (file)
@@ -1,4 +1,4 @@
-[% USE HTML %]<div class="listtop">Unknown chart of accounts</div>
+[% USE HTML %]<div class="listtop">Unbekannter Kontenrahmen</div>
 
 <form name="Form" method="post" action="login.pl">
 
@@ -12,8 +12,8 @@
  [% END %]
 
  <p>
-  Note:
-  This installation uses an unknown chart of accounts (&quot;[% HTML.escape(coa) %]&quot;). This database upgrade cannot create standard buchungsgruppen automatically.
+  Hinweis:
+  Diese Installation benutzt einen unbekannten Kontenrahmen (&quot;[% HTML.escape(coa) %]&quot;). Dieses Datenbankupgrade kann die Standardbuchungsgruppen nicht automatisch anlegen.
  </p>
 
  <hr>
index e3c77e7..b58ab1c 100644 (file)
@@ -1,11 +1,11 @@
-<body>
+[% USE HTML %]<body>
 
- <form action="<TMPL_VAR script ESCAPE=HTML>" method="post">
+ <form action="[% HTML.escape(script) %]" method="post">
 
-  <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) %]">
 
-  <input type="hidden" name="SAVED_FORM" value="<TMPL_VAR SAVED_FORM ESCAPE=HTML>">
+  <input type="hidden" name="SAVED_FORM" value="[% HTML.escape(SAVED_FORM) %]">
 
   <table width="100%">
    <tr>
        <th class="listheading">Bearbeiter</th>
       </tr>
 
-      <TMPL_LOOP DRAFTS>
-       <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
-        <td><input type="checkbox" name="checked_<TMPL_VAR id>" value="1"></td>
-        <td><TMPL_VAR itime ESCAPE=HTML></td>
-        <td><a href="<TMPL_VAR script ESCAPE=URL>?login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>&action=load_draft&id=<TMPL_VAR id ESCAPE=URL>"><TMPL_VAR description ESCAPE=HTML></a></td>
-        <td><TMPL_VAR employee_name ESCAPE=HTML></td>
+      [% FOREACH row = DRAFTS %]
+       <tr class="listrow[% loop.count % 2 %]">
+        <td><input type="checkbox" name="checked_[% row.id %]" value="1"></td>
+        <td>[% HTML.escape(row.itime) %]</td>
+        <td><a href="[% HTML.url(script) %]?login=[% HTML.url(login) %]&password=[% HTML.url(password) %]&action=load_draft&id=[% HTML.url(row.id) %]">[% HTML.escape(row.description) %]</a></td>
+        <td>[% HTML.escape(row.employee_name) %]</td>
        </tr>
-      </TMPL_LOOP>
+      [% END %]
      </table>
     </td>
    </tr>
index 7ff8c3f..46d7972 100644 (file)
@@ -1,11 +1,11 @@
-<body>
+[% USE HTML %]<body>
 
- <form action="<TMPL_VAR script ESCAPE=HTML>" method="post">
+ <form action="[% HTML.escape(script) %]" method="post">
 
-  <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) %]">
 
-  <input type="hidden" name="SAVED_FORM" value="<TMPL_VAR SAVED_FORM ESCAPE=HTML>">
+  <input type="hidden" name="SAVED_FORM" value="[% HTML.escape(SAVED_FORM) %]">
 
   <table width="100%">
    <tr>
        <th class="listheading"><translate>Employee</translate></th>
       </tr>
 
-      <TMPL_LOOP DRAFTS>
-       <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
-        <td><input type="checkbox" name="checked_<TMPL_VAR id>" value="1"></td>
-        <td><TMPL_VAR itime ESCAPE=HTML></td>
-        <td><a href="<TMPL_VAR script ESCAPE=URL>?login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>&action=load_draft&id=<TMPL_VAR id ESCAPE=URL>"><TMPL_VAR description ESCAPE=HTML></a></td>
-        <td><TMPL_VAR employee_name ESCAPE=HTML></td>
+      [% FOREACH row = DRAFTS %]
+       <tr class="listrow[% loop.count % 2 %]">
+        <td><input type="checkbox" name="checked_[% row.id %]" value="1"></td>
+        <td>[% HTML.escape(row.itime) %]</td>
+        <td><a href="[% HTML.url(script) %]?login=[% HTML.url(login) %]&password=[% HTML.url(password) %]&action=load_draft&id=[% HTML.url(row.id) %]">[% HTML.escape(row.description) %]</a></td>
+        <td>[% HTML.escape(row.employee_name) %]</td>
        </tr>
-      </TMPL_LOOP>
+      [% END %]
      </table>
     </td>
    </tr>
index 804b00d..815adc1 100644 (file)
@@ -1,11 +1,11 @@
-<body>
+[% USE HTML %]<body>
 
- <form action="<TMPL_VAR script ESCAPE=HTML>" method="post">
+ <form action="[% HTML.escape(script) %]" method="post">
 
-  <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) %]">
 
-  <input type="hidden" name="SAVED_FORM" value="<TMPL_VAR SAVED_FORM ESCAPE=HTML>">
+  <input type="hidden" name="SAVED_FORM" value="[% HTML.escape(SAVED_FORM) %]">
 
   <table width="100%">
    <tr>
index 41e5273..50f5fc2 100644 (file)
@@ -1,11 +1,11 @@
-<body>
+[% USE HTML %]<body>
 
- <form action="<TMPL_VAR script ESCAPE=HTML>" method="post">
+ <form action="[% HTML.escape(script) %]" method="post">
 
-  <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) %]">
 
-  <input type="hidden" name="SAVED_FORM" value="<TMPL_VAR SAVED_FORM ESCAPE=HTML>">
+  <input type="hidden" name="SAVED_FORM" value="[% HTML.escape(SAVED_FORM) %]">
 
   <table width="100%">
    <tr>