]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 dbe61ffda332546b246c781cfb8dbb41714c4ae1..515a64205f6e1c3697416dbbe655eb5269e58447 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 564d0d4d4f34be0e79ae153eb9c4049c3f9d6f20..425fd905bc280244d43d8e2661c5925c99865a9f 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 e3c77e775ba18f6390245e6ece8612d3d93f3066..b58ab1c534857b1e16ee5b7289f021af593bfbf3 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 7ff8c3f2ff7951243c9e2a90602f75649e8bac30..46d797270cba43cbc8a052925044a75231bd7e5f 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 804b00dd95745053e76125e506cba69143600b19..815adc1bf41a74a0cc037d99ad2507a1b1496cb0 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 41e5273647dacf12a04613d7be2024c852a57621..50f5fc242324cee2231267a564e493ac21406854 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>