$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();
}
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();
-[% 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">
[% END %]
<p>
- Note:
- This installation uses an unknown chart of accounts ("[% HTML.escape(coa) %]"). This database upgrade cannot create standard buchungsgruppen automatically.
+ Hinweis:
+ Diese Installation benutzt einen unbekannten Kontenrahmen ("[% HTML.escape(coa) %]"). Dieses Datenbankupgrade kann die Standardbuchungsgruppen nicht automatisch anlegen.
</p>
<hr>
-<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>
-<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>
-<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>
-<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>