Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a1486b4e

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID a1486b4ea62f731a7ce86b2b3f51983703dff2ad
  • Vorgänger 1a39394f
  • Nachfolger 2213c385

Umstellung der Vorlagen aus templates/webpages/dbupgrade von HTML::Template auf Template.

Unterschiede anzeigen:

SL/User.pm
193 193
      $form->{"stylesheet"} = "lx-office-erp.css";
194 194
      $form->{"title"} = $main::locale->text("Dataset upgrade");
195 195
      $form->header();
196
      print($form->parse_html_template("dbupgrade/header"));
196
      print($form->parse_html_template2("dbupgrade/header"));
197 197

  
198 198
      $form->{dbupdate} = "db$myconfig{dbname}";
199 199
      $form->{ $form->{dbupdate} } = 1;
200 200

  
201 201
      if ($form->{"show_dbupdate_warning"}) {
202
        print($form->parse_html_template("dbupgrade/warning"));
202
        print($form->parse_html_template2("dbupgrade/warning"));
203 203
        exit(0);
204 204
      }
205 205

  
......
226 226
        $self->{"menustyle"} eq "neu" ? "menunew.pl" :
227 227
        "menu.pl";
228 228

  
229
      print($form->parse_html_template("dbupgrade/footer",
230
                                       { "menufile" => $menufile }));
229
      print($form->parse_html_template2("dbupgrade/footer",
230
                                        { "menufile" => $menufile }));
231 231

  
232 232
      $rc = -2;
233 233

  
......
492 492
  }
493 493

  
494 494
  if (!defined($result)) {
495
    print($form->parse_html_template("dbupgrade/error",
496
                                     { "file" => $filename,
497
                                       "error" => $@ }));
495
    print($form->parse_html_template2("dbupgrade/error",
496
                                      { "file" => $filename,
497
                                        "error" => $@ }));
498 498
    exit(0);
499 499
  } elsif (1 != $result) {
500 500
    unlink("users/nologin") if (2 == $result);
......
927 927

  
928 928
      # apply upgrade
929 929
      $main::lxdebug->message(DEBUG2, "Applying Update $control->{file}");
930
      print($form->parse_html_template("dbupgrade/upgrade_message2",
931
                                       $control));
930
      print($form->parse_html_template2("dbupgrade/upgrade_message2",
931
                                        $control));
932 932

  
933 933
      if ($file_type eq "sql") {
934 934
        $self->process_query($form, $dbh, "sql/" . $form->{"dbdriver"} .
locale/de/all
142 142
  'Ansprechpartner'             => 'Ansprechpartner',
143 143
  'Application Error. No Format given' => 'Fehler in der Anwendung. Das Ausgabeformat fehlt.',
144 144
  'Application Error. Wrong Format' => 'Fehler in der Anwendung. Falsches Format: ',
145
  'Applying <TMPL_VAR file ESCAPE=HTML>:' => 'F&uuml;hre <TMPL_VAR file ESCAPE=HTML> aus:',
145
  'Applying [% HTML.escape(file) %]:' => 'F&uuml;hre [% HTML.escape(file) %] aus:',
146 146
  'Apr'                         => 'Apr',
147 147
  'April'                       => 'April',
148 148
  'Are you sure you want to delete Invoice Number' => 'Soll die Rechnung mit folgender Nummer wirklich gel?scht werden:',
......
593 593
  'Inventory Account'           => 'Warenbestand',
594 594
  'Inventory quantity must be zero before you can set this assembly obsolete!' => 'Bevor dieses Erzeugnis als ung?ltig markiert werden kann, mu? das Inventar auf Null sein!',
595 595
  'Inventory quantity must be zero before you can set this part obsolete!' => 'Bevor diese Ware als ung?ltig markiert werden kann, mu? das Inventar Null sein!',
596
  'Invetory'                    => 'Inventar',
597 596
  'Invno.'                      => 'Rg. Nr.',
598 597
  'Invnumber'                   => 'Rechnungsnummer',
599 598
  'Invoice'                     => 'Rechnung',
......
687 686
  'Long Dates'                  => 'Lange Monatsnamen',
688 687
  'Long Description'            => 'Langtext',
689 688
  'Lx-Office 2.4.0 introduces two new concepts: tax zones and Buchungsgruppen.' => 'Lx-Office 2.4.0 f&uuml;hrt zwei neue Konzepte ein: Steuerzonen und Buchungsgruppen.',
690
  'Lx-Office is about to update the database <b><TMPL_VAR dbname ESCAPE=HTML></b>. You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Lx-Office wird gleich die Datenbank <b><TMPL_VAR dbname ESCAPE=HTML></b> aktualisieren. Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umst&auml;nden nicht umkehrbar ist.',
689
  'Lx-Office is about to update the database <b>[% HTML.escape(dbname) %]</b>. You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Lx-Office wird gleich die Datenbank <b>[% HTML.escape(dbname) %]</b> aktualisieren. Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umst&auml;nden nicht umkehrbar ist.',
691 690
  'Lx-Office website'           => 'Lx-Office-Webseite',
692 691
  'MAILED'                      => 'Gesendet',
693 692
  'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' => 'Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte w&auml;hlen Sie ein anderes Men&uuml; in der Benutzerkonfiguration im Administrationsmen&uuml; aus.',
......
734 733
  'National Expenses'           => 'Aufwand Inland',
735 734
  'National Revenues'           => 'Erl&ouml;se Inland',
736 735
  'Netto Terms'                 => 'Zahlungsziel netto',
737
  'New Buchungsgruppe <TMPL_VAR __counter__>' => 'Neue Buchungsgruppe <TMPL_VAR __counter__>',
736
  'New Buchungsgruppe [% loop.count %]' => 'Neue Buchungsgruppe [% loop.count %]',
738 737
  'New Templates'               => 'neue Vorlagen',
739 738
  'New assembly'                => 'Neues Erzeugnis',
740 739
  'New contact'                 => 'Neuer Ansprechpartner',
......
772 771
  'Not Discountable'            => 'Nicht rabattierf?hig',
773 772
  'Not delivered'               => 'Nicht geliefert',
774 773
  'Not obsolete'                => 'G?ltig',
774
  'Note'                        => 'Hinweis',
775 775
  'Notes'                       => 'Bemerkungen',
776 776
  'Nothing selected!'           => 'Es wurde nichts ausgew?hlt!',
777 777
  'Nothing to delete!'          => 'Es konnte nichts gel?scht werden!',
......
1122 1122
  'The base unit relations must not contain loops (e.g. by saying that unit A\'s base unit is B, B\'s base unit is C and C\'s base unit is A) in row %d.' => 'Die Beziehungen der Einheiten d&uuml;rfen keine Schleifen beinhalten (z.B. wenn gesagt wird, dass Einheit As Basiseinheit B, Bs Basiseinheit C und Cs Basiseinheit A ist) in Zeile %d.',
1123 1123
  'The columns &quot;Dunning Duedate&quot;, &quot;Total Fees&quot; and &quot;Interest&quot; show data for the previous dunning created for this invoice.' => 'Die Spalten &quot;Zahlbar bis&quot;, &quot;Kumulierte Geb&uuml;hren&quot; und &quot;Zinsen&quot; zeigen Daten der letzten f&uuml;r diese Rechnung erzeugten Mahnung.',
1124 1124
  'The database [% HTML.escape(db) %] has been successfully deleted.' => 'Die Datenbank [% HTML.escape(db) %] wurde erfolgreich gel&ouml;scht.',
1125
  'The database update/creation did not succeed. The file <TMPL_VAR file ESCAPE=HTML> contained the following error:' => 'Die Datenbankaktualisierung/erstellung schlug fehl. Die Datei <TMPL_VAR file ESCAPE=HTML> enthielt den folgenden Fehler:',
1125
  'The database update/creation did not succeed. The file [% HTML.escape(file) %] contained the following error:' => 'Die Datenbankaktualisierung/erstellung schlug fehl. Die Datei [% HTML.escape(file) %] enthielt den folgenden Fehler:',
1126 1126
  'The database upgrade for the introduction of Buchungsgruppen is now complete.' => 'Das Datenbankupgrade f&uuml;r die Einf&uuml;hrung von Buchungsgruppen ist jetzt beendet.',
1127 1127
  'The database upgrade for the introduction of units is now complete.' => 'Das Datenbankupgrade zwecks Einf&uuml;hrung von Einheiten ist nun beendet.',
1128 1128
  'The dataset [% HTML.escape(db) %] has been successfully created.' => 'Die Datenbank [% HTML.escape(db) %] wurde erfolgreich angelegt.',
......
1169 1169
  'Therefore there\'s no need to create the same article more than once if it is sold or bought in/from another tax zone.' => 'Deswegen muss man den gleichen Artikel nicht mehr mehrmals anlegen, wenn er in verschiedenen Steuerzonen gehandelt werden soll.',
1170 1170
  'These units can be based on other units so that Lx-Office can convert prices when the user switches from one unit to another.' => 'Diese Einheiten k&ouml;nnen auf anderen Einheiten basieren, sodass Lx-Office Preise umrechnen kann, wenn der Benutzer von einer Einheit zu einer anderen Wechselt.',
1171 1171
  'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.',
1172
  'This installation uses an unknown chart of accounts (&quot;[% HTML.escape(coa) %]&quot;). This database upgrade cannot create standard buchungsgruppen automatically.' => 'Diese Installation benutzt einen unbekannten Kontenrahmen (&quot;[% HTML.escape(coa) %]&quot;). Dieses Datenbankupgrade kann die Standardbuchungsgruppen nicht automatisch anlegen.',
1172 1173
  'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' => 'In diesem Schritt werden bestehende Datenbanken gesucht. Es werden noch keine &Auml;nderungen vorgenommen!',
1173 1174
  'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => 'Dieses Upgradescript versucht, bei allen bestehenden Artikeln neu erstellte Buchungsgruppen zuzuordnen.',
1174 1175
  'This upgrade script tries to map all existing units in the database to the newly created units.' => 'Dieses Update-Script versucht, alle bestehenden Einheiten automatisch in die neuen Einheiten umzuwandeln.',
......
1218 1219
  'Units'                       => 'Einheiten',
1219 1220
  'Unknown Category'            => 'Unbekannte Kategorie',
1220 1221
  'Unknown Link'                => 'Unbekannte Verkn?pfung',
1222
  'Unknown chart of accounts'   => 'Unbekannter Kontenrahmen',
1221 1223
  'Unknown dependency \'%s\'.'  => 'Unbekannte Abh&auml;ngigkeit \'%s\'.',
1222 1224
  'Unlock System'               => 'System entsperren',
1223 1225
  'Until'                       => 'Bis',
sql/Pg-upgrade/Pg-upgrade-2.2.0.25-2.2.0.26.pl
13 13
sub myshowerror {
14 14
  my ($msg) = @_;
15 15

  
16
  print($main::form->parse_html_template("dbupgrade/units_error",
17
                                         { "message" => $msg }));
16
  print($main::form->parse_html_template2("dbupgrade/units_error",
17
                                          { "message" => $msg }));
18 18
  return 2;
19 19
}
20 20

  
......
219 219
    map({ push(@unknown_parts, { "name" => $_, "NEW_UNITS" => $ddbox }); }
220 220
        sort({ lc($a) cmp lc($b) } keys(%unknown_dimension_units)));
221 221

  
222
    print($form->parse_html_template("dbupgrade/units_parts",
223
                                     { "NEW_BASE_UNIT_DDBOX" => $ddbox,
224
                                       "UNKNOWN_PART_UNITS" => \@unknown_parts,
225
                                     }));
222
    print($form->parse_html_template2("dbupgrade/units_parts",
223
                                      { "NEW_BASE_UNIT_DDBOX" => $ddbox,
224
                                        "UNKNOWN_PART_UNITS" => \@unknown_parts,
225
                                      }));
226 226

  
227 227
    return 2;
228 228

  
229 229
  } else {
230
    print($form->parse_html_template("dbupgrade/units_parts_done"));
230
    print($form->parse_html_template2("dbupgrade/units_parts_done"));
231 231
  }
232 232

  
233 233
  if (scalar(keys(%unknown_service_units)) != 0) {
......
238 238
    map({ push(@unknown_services, { "name" => $_, "NEW_UNITS" => $ddbox }); }
239 239
        sort({ lc($a) cmp lc($b) } keys(%unknown_service_units)));
240 240

  
241
    print($form->parse_html_template("dbupgrade/units_services",
242
                                     { "NEW_BASE_UNIT_DDBOX" => $ddbox,
243
                                       "UNKNOWN_PART_UNITS" => \@unknown_services,
244
                                     }));
241
    print($form->parse_html_template2("dbupgrade/units_services",
242
                                      { "NEW_BASE_UNIT_DDBOX" => $ddbox,
243
                                        "UNKNOWN_PART_UNITS" => \@unknown_services,
244
                                      }));
245 245

  
246 246
    return 2;
247 247

  
248 248
  } else {
249
    print($form->parse_html_template("dbupgrade/units_services_done"));
249
    print($form->parse_html_template2("dbupgrade/units_services_done"));
250 250
  }
251 251

  
252 252
  return 0;
......
271 271
    my $service_units = retrieve_units(\%dbup_myconfig, $form, "service");
272 272
    my $service_ddbox = unit_select_data($service_units);
273 273

  
274
    print($form->parse_html_template("dbupgrade/units_set_default",
275
                                     { "DIMENSION_DDBOX" => $dimension_ddbox,
276
                                       "SERVICE_DDBOX" => $service_ddbox }));
274
    print($form->parse_html_template2("dbupgrade/units_set_default",
275
                                      { "DIMENSION_DDBOX" => $dimension_ddbox,
276
                                        "SERVICE_DDBOX" => $service_ddbox }));
277 277
    return 2;
278 278

  
279 279
  } else {
280
    print($form->parse_html_template("dbupgrade/units_set_default_done"));
280
    print($form->parse_html_template2("dbupgrade/units_set_default_done"));
281 281
    return 1;
282 282
  }
283 283
}
......
330 330

  
331 331
  my $res;
332 332

  
333
  print($form->parse_html_template("dbupgrade/units_header"));
333
  print($form->parse_html_template2("dbupgrade/units_header"));
334 334

  
335 335
  if ($form->{"action2"} eq "add_unit") {
336 336
    $res = update_units_add_unit();
sql/Pg-upgrade/Pg-upgrade-2.2.0.27-2.2.0.28.pl
11 11
sub myshowerror {
12 12
  my ($msg) = @_;
13 13

  
14
  print($main::form->parse_html_template("dbupgrade/units_error",
15
                                         { "message" => $msg }));
14
  print($main::form->parse_html_template2("dbupgrade/units_error",
15
                                          { "message" => $msg }));
16 16
  return 2;
17 17
}
18 18

  
......
76 76

  
77 77
  my @coas = map(+{ "name" => $_ }, @valid_coas);
78 78

  
79
  print($form->parse_html_template("dbupgrade/coa_guess",
80
                                   { "COAS" => \@coas }));
79
  print($form->parse_html_template2("dbupgrade/coa_guess",
80
                                    { "COAS" => \@coas }));
81 81

  
82 82
  return 2;
83 83
}
sql/Pg-upgrade/Pg-upgrade-2.2.0.28-2.2.0.29.pl
11 11
sub myshowerror {
12 12
  my ($msg) = @_;
13 13

  
14
  print($main::form->parse_html_template("dbupgrade/units_error",
15
                                         { "message" => $msg }));
14
  print($main::form->parse_html_template2("dbupgrade/units_error",
15
                                          { "message" => $msg }));
16 16
  return 2;
17 17
}
18 18

  
......
209 209
    return create_standard_buchungsgruppen_skr04();
210 210
  }
211 211

  
212
  print($form->parse_html_template("dbupgrade/" .
213
                                   "std_buchungsgruppen_unknown_coa",
214
                                   { "coa" => $coa }));
212
  print($form->parse_html_template2("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
215 213

  
216 214
  return 1;
217 215
}
sql/Pg-upgrade/Pg-upgrade-2.2.0.31-2.2.0.32.pl
11 11
sub myshowerror {
12 12
  my ($msg) = @_;
13 13

  
14
  print($main::form->parse_html_template("dbupgrade/units_error",
15
                                         { "message" => $msg }));
14
  print($main::form->parse_html_template2("dbupgrade/units_error",
15
                                          { "message" => $msg }));
16 16
  return 2;
17 17
}
18 18

  
......
117 117
    return update_steuersaetze_skr04();
118 118
  }
119 119

  
120
  print($form->parse_html_template("dbupgrade/" .
121
                                   "std_buchungsgruppen_unknown_coa",
122
                                   { "coa" => $coa }));
120
  print($form->parse_html_template2("dbupgrade/std_buchungsgruppen_unknown_coa", { "coa" => $coa }));
123 121

  
124 122
  return 1;
125 123
}
126 124

  
127 125

  
128 126

  
129
return update_steuersaetze();
127
return update_steuersaetze();
sql/Pg-upgrade/Pg-upgrade-2.2.0.33-2.2.0.34.pl
302 302
    $entry->{"eur"} = $main::eur;
303 303
  }
304 304

  
305
  # $form->parse_html_template("dbupgrade/buchungsgruppen_parts")
306
  # $form->parse_html_template("dbupgrade/buchungsgruppen_services")
307
  # $form->parse_html_template("dbupgrade/buchungsgruppen_assemblies")
308

  
309
  print($form->parse_html_template("dbupgrade/buchungsgruppen_${type}",
310
                                   { "LIST" => $list,
311
                                     "BUCHUNGSGRUPPEN" => $buchungsgruppen,
312
                                   }));
305
  # $form->parse_html_template2("dbupgrade/buchungsgruppen_parts")
306
  # $form->parse_html_template2("dbupgrade/buchungsgruppen_services")
307
  # $form->parse_html_template2("dbupgrade/buchungsgruppen_assemblies")
308

  
309
  print($form->parse_html_template2("dbupgrade/buchungsgruppen_${type}",
310
                                    { "LIST" => $list,
311
                                      "BUCHUNGSGRUPPEN" => $buchungsgruppen,
312
                                    }));
313 313
}
314 314

  
315 315
sub create_buchungsgruppen {
......
459 459

  
460 460
  my ($acc_inventory, $acc_income, $acc_expense) = retrieve_accounts();
461 461

  
462
  print($form->parse_html_template("dbupgrade/buchungsgruppen_header"));
462
  print($form->parse_html_template2("dbupgrade/buchungsgruppen_header"));
463 463

  
464 464
  if (scalar(@{$parts})) {
465 465
    display_create_bgs_dialog("parts", $parts,
......
467 467
                              $buchungsgruppen);
468 468
    return 2;
469 469
  } else {
470
    print($form->parse_html_template("dbupgrade/buchungsgruppen_parts_done"));
470
    print($form->parse_html_template2("dbupgrade/buchungsgruppen_parts_done"));
471 471
  }
472 472

  
473 473
  if (scalar(@{$services})) {
......
476 476
                              $buchungsgruppen);
477 477
    return 2;
478 478
  } else {
479
    print($form->parse_html_template("dbupgrade/buchungsgruppen_services_done"));
479
    print($form->parse_html_template2("dbupgrade/buchungsgruppen_services_done"));
480 480
  }
481 481

  
482 482
  if (scalar(@{$assemblies})) {
......
485 485
                              $buchungsgruppen);
486 486
    return 2;
487 487
  } else {
488
    print($form->parse_html_template("dbupgrade/buchungsgruppen_assemblies_done"));
488
    print($form->parse_html_template2("dbupgrade/buchungsgruppen_assemblies_done"));
489 489
  }
490 490

  
491
  print($form->parse_html_template("dbupgrade/buchungsgruppen_footer"));
491
  print($form->parse_html_template2("dbupgrade/buchungsgruppen_footer"));
492 492

  
493 493
  return 1;
494 494
}
sql/Pg-upgrade/Pg-upgrade-2.2.0.37-2.2.0.38.pl
48 48

  
49 49
  if (@warnings) {
50 50
    @warnings = map(+{ "message" => $_ }, @warnings);
51
    print($form->parse_html_template("dbupgrade/update_templates_warnings",
52
                                     { "WARNINGS" => \@warnings }));
51
    print($form->parse_html_template2("dbupgrade/update_templates_warnings",
52
                                      { "WARNINGS" => \@warnings }));
53 53
  }
54 54

  
55 55
  return 1;
templates/webpages/dbupgrade/buchungsgruppen_assemblies_de.html
1
<div class="listtop">Schritt 3 von 3: Erzeugnisse</div>
1
[% USE HTML %]<div class="listtop">Schritt 3 von 3: Erzeugnisse</div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="create_buchungsgruppen_assemblies">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading">Existierende Buchungsgruppen</div>
16 16

  
......
18 18
  Die folgenden Buchungsgruppen wurden bereits angelegt:
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     Inventar: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     Inventar: [% row.inventory_accno %];
25 25

  
26 26
     Erl&ouml;skonto/Aufwandskonto
27
     Inand: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     Inand: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     Erl&ouml;skonto/Aufwandskonto
30
     EU mit UstId-Nummer: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     EU mit UstId-Nummer: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     Erl&ouml;skonto/Aufwandskonto
33
     EU ohne UstId-Nummer: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     EU ohne UstId-Nummer: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     Erl&ouml;skonto/Aufwandskonto
36
     Ausland: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     Ausland: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading">Neue Buchungsgruppe <TMPL_VAR __counter__></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading">Neue Buchungsgruppe [% loop.count %]</div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td>Beschreibung:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td>Inventar:</td>
56 56
     <td>
57
      <select name="inventory_accno_id_<TMPL_VAR __counter__>">
58
       <TMPL_LOOP ACC_INVENTORY><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
57
      <select name="inventory_accno_id_[% loop.count %]">
58
       [% FOREACH acc_row = ACC_INVENTORY %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
59 59
      </select>
60 60
     </td>
61 61
    </tr>
62
   </TMPL_IF>
62
   [% END %]
63 63

  
64 64
   <tr>
65 65
    <td>Erl&ouml;skonto Inand:</td>
66 66
    <td>
67
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
68
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
67
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
68
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
69 69
    </td>
70 70
   </tr>
71 71

  
72 72
   <tr>
73 73
    <td>Aufwandskonto EU mit UstId-Nummer:</td>
74 74
    <td>
75
     <select name="expense_accno_id_0_<TMPL_VAR __counter__>">
76
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
75
     <select name="expense_accno_id_0_[% loop.count %]">
76
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
77 77
     </select>
78 78
    </td>
79 79
   </tr>
......
81 81
   <tr>
82 82
    <td>Erl&ouml;skonto EU mit UstId-Nummer:</td>
83 83
    <td>
84
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
85
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
84
     <select name="income_accno_id_1_[% loop.count %]">
85
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
86 86
     </select>
87 87
    </td>
88 88
   </tr>
......
90 90
   <tr>
91 91
    <td>Aufwandskonto EU mit UstId-Nummer:</td>
92 92
    <td>
93
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
94
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
93
     <select name="expense_accno_id_1_[% loop.count %]">
94
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
95 95
     </select>
96 96
    </td>
97 97
   </tr>
......
99 99
   <tr>
100 100
    <td>Erl&ouml;skonto EU ohne UstId-Nummer:</td>
101 101
    <td>
102
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
103
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
102
     <select name="income_accno_id_2_[% loop.count %]">
103
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
104 104
     </select>
105 105
    </td>
106 106
   </tr>
......
108 108
   <tr>
109 109
    <td>Aufwandskonto EU ohne UstId-Nummer:</td>
110 110
    <td>
111
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
112
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
111
     <select name="expense_accno_id_2_[% loop.count %]">
112
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
113 113
     </select>
114 114
    </td>
115 115
   </tr>
......
117 117
   <tr>
118 118
    <td>Erl&ouml;skonto Ausland:</td>
119 119
    <td>
120
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
121
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
120
     <select name="income_accno_id_3_[% loop.count %]">
121
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
122 122
     </select>
123 123
    </td>
124 124
   </tr>
......
126 126
   <tr>
127 127
    <td>Aufwandskonto Ausland:</td>
128 128
    <td>
129
     <select name="expense_accno_id_3_<TMPL_VAR __counter__>">
130
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
129
     <select name="expense_accno_id_3_[% loop.count %]">
130
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
131 131
     </select>
132 132
    </td>
133 133
   </tr>
134 134
  </table>
135 135

  
136
  <TMPL_IF __last__>
137
   <input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>">
138
  </TMPL_IF>
136
  [% IF loop.last %]
137
   <input type="hidden" name="rowcount" value="[% loop.count %]">
138
  [% END %]
139 139

  
140 140
  <hr>
141
 </TMPL_LOOP>
141
 [% END %]
142 142

  
143 143
 <input type="submit" name="dummy" value="Buchungsgruppe erfassen">
144 144

  
templates/webpages/dbupgrade/buchungsgruppen_assemblies_master.html
1
<div class="listtop"><translate>Step 3 of 3: Assemblies</translate></div>
1
[% USE HTML %]<div class="listtop"><translate>Step 3 of 3: Assemblies</translate></div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="create_buchungsgruppen_assemblies">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading"><translate>Existing Buchungsgruppen</translate></div>
16 16

  
......
18 18
  <translate>The following Buchungsgruppen have already been created:</translate>
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     <translate>Invetory</translate>: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     <translate>Inventory</translate>: [% row.inventory_accno %];
25 25

  
26 26
     <translate>Income accno</translate>/<translate>Expense accno</translate>
27
     <translate>National</translate>: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     <translate>National</translate>: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     <translate>Income accno</translate>/<translate>Expense accno</translate>
30
     <translate>EU with VAT ID</translate>: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     <translate>EU with VAT ID</translate>: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     <translate>Income accno</translate>/<translate>Expense accno</translate>
33
     <translate>EU without VAT ID</translate>: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     <translate>EU without VAT ID</translate>: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     <translate>Income accno</translate>/<translate>Expense accno</translate>
36
     <translate>International</translate>: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     <translate>International</translate>: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading"><translate>New Buchungsgruppe <TMPL_VAR __counter__></translate></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading"><translate>New Buchungsgruppe [% loop.count %]</translate></div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td><translate>Description</translate>:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td><translate>Inventory</translate>:</td>
56 56
     <td>
57
      <select name="inventory_accno_id_<TMPL_VAR __counter__>">
58
       <TMPL_LOOP ACC_INVENTORY><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
57
      <select name="inventory_accno_id_[% loop.count %]">
58
       [% FOREACH acc_row = ACC_INVENTORY %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
59 59
      </select>
60 60
     </td>
61 61
    </tr>
62
   </TMPL_IF>
62
   [% END %]
63 63

  
64 64
   <tr>
65 65
    <td><translate>Income accno</translate> <translate>National</translate>:</td>
66 66
    <td>
67
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
68
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
67
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
68
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
69 69
    </td>
70 70
   </tr>
71 71

  
72 72
   <tr>
73 73
    <td><translate>Expense accno</translate> <translate>EU with VAT ID</translate>:</td>
74 74
    <td>
75
     <select name="expense_accno_id_0_<TMPL_VAR __counter__>">
76
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
75
     <select name="expense_accno_id_0_[% loop.count %]">
76
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
77 77
     </select>
78 78
    </td>
79 79
   </tr>
......
81 81
   <tr>
82 82
    <td><translate>Income accno</translate> <translate>EU with VAT ID</translate>:</td>
83 83
    <td>
84
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
85
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
84
     <select name="income_accno_id_1_[% loop.count %]">
85
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
86 86
     </select>
87 87
    </td>
88 88
   </tr>
......
90 90
   <tr>
91 91
    <td><translate>Expense accno</translate> <translate>EU with VAT ID</translate>:</td>
92 92
    <td>
93
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
94
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
93
     <select name="expense_accno_id_1_[% loop.count %]">
94
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
95 95
     </select>
96 96
    </td>
97 97
   </tr>
......
99 99
   <tr>
100 100
    <td><translate>Income accno</translate> <translate>EU without VAT ID</translate>:</td>
101 101
    <td>
102
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
103
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
102
     <select name="income_accno_id_2_[% loop.count %]">
103
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
104 104
     </select>
105 105
    </td>
106 106
   </tr>
......
108 108
   <tr>
109 109
    <td><translate>Expense accno</translate> <translate>EU without VAT ID</translate>:</td>
110 110
    <td>
111
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
112
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
111
     <select name="expense_accno_id_2_[% loop.count %]">
112
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
113 113
     </select>
114 114
    </td>
115 115
   </tr>
......
117 117
   <tr>
118 118
    <td><translate>Income accno</translate> <translate>International</translate>:</td>
119 119
    <td>
120
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
121
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
120
     <select name="income_accno_id_3_[% loop.count %]">
121
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
122 122
     </select>
123 123
    </td>
124 124
   </tr>
......
126 126
   <tr>
127 127
    <td><translate>Expense accno</translate> <translate>International</translate>:</td>
128 128
    <td>
129
     <select name="expense_accno_id_3_<TMPL_VAR __counter__>">
130
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
129
     <select name="expense_accno_id_3_[% loop.count %]">
130
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
131 131
     </select>
132 132
    </td>
133 133
   </tr>
134 134
  </table>
135 135

  
136
  <TMPL_IF __last__>
137
   <input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>">
138
  </TMPL_IF>
136
  [% IF loop.last %]
137
   <input type="hidden" name="rowcount" value="[% loop.count %]">
138
  [% END %]
139 139

  
140 140
  <hr>
141
 </TMPL_LOOP>
141
 [% END %]
142 142

  
143 143
 <input type="submit" name="dummy" value="<translate>Create Buchungsgruppen</translate>">
144 144

  
templates/webpages/dbupgrade/buchungsgruppen_parts_de.html
1
<div class="listtop">Schritt 1 von 3: Waren</div>
1
[% USE HTML %]<div class="listtop">Schritt 1 von 3: Waren</div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading">Existierende Buchungsgruppen</div>
16 16

  
......
18 18
  Die folgenden Buchungsgruppen wurden bereits angelegt:
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     Inventar: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     Inventar: [% row.inventory_accno %];
25 25

  
26 26
     Erl&ouml;skonto/Aufwandskonto
27
     Inand: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     Inand: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     Erl&ouml;skonto/Aufwandskonto
30
     EU mit UstId-Nummer: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     EU mit UstId-Nummer: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     Erl&ouml;skonto/Aufwandskonto
33
     EU ohne UstId-Nummer: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     EU ohne UstId-Nummer: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     Erl&ouml;skonto/Aufwandskonto
36
     Ausland: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     Ausland: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading">Neue Buchungsgruppe <TMPL_VAR __counter__></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading">Neue Buchungsgruppe [% loop.count %]</div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td>Beschreibung:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td>Inventar:</td>
56 56
     <td>
57
      <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR inventory_accno_id ESCAPE=HTML>">
58
      <TMPL_VAR inventory_accno ESCAPE=HTML>--<TMPL_VAR inventory_description ESCAPE=HTML>
57
      <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% HTML.escape(row.inventory_accno_id) %]">
58
      [% HTML.escape(row.inventory_accno) %]--[% HTML.escape(row.inventory_description) %]
59 59
     </td>
60 60
    </tr>
61
   </TMPL_IF>
61
   [% END %]
62 62

  
63 63
   <tr>
64 64
    <td>Erl&ouml;skonto Inand:</td>
65 65
    <td>
66
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
67
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
66
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
67
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
68 68
    </td>
69 69
   </tr>
70 70

  
71 71
   <tr>
72 72
    <td>Aufwandskonto Inand:</td>
73 73
    <td>
74
     <input type="hidden" name="expense_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR expense_accno_id ESCAPE=HTML>">
75
     <TMPL_VAR expense_accno ESCAPE=HTML>--<TMPL_VAR expense_description ESCAPE=HTML>
74
     <input type="hidden" name="expense_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.expense_accno_id) %]">
75
     [% HTML.escape(row.expense_accno) %]--[% HTML.escape(row.expense_description) %]
76 76
    </td>
77 77
   </tr>
78 78

  
79 79
   <tr>
80 80
    <td>Erl&ouml;skonto EU mit UstId-Nummer:</td>
81 81
    <td>
82
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
83
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
82
     <select name="income_accno_id_1_[% loop.count %]">
83
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
84 84
     </select>
85 85
    </td>
86 86
   </tr>
......
88 88
   <tr>
89 89
    <td>Aufwandskonto EU mit UstId-Nummer:</td>
90 90
    <td>
91
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
92
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
91
     <select name="expense_accno_id_1_[% loop.count %]">
92
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
93 93
     </select>
94 94
    </td>
95 95
   </tr>
......
97 97
   <tr>
98 98
    <td>Erl&ouml;skonto EU ohne UstId-Nummer:</td>
99 99
    <td>
100
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
101
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
100
     <select name="income_accno_id_2_[% loop.count %]">
101
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
102 102
     </select>
103 103
    </td>
104 104
   </tr>
......
106 106
   <tr>
107 107
    <td>Aufwandskonto EU ohne UstId-Nummer:</td>
108 108
    <td>
109
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
110
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
109
     <select name="expense_accno_id_2_[% loop.count %]">
110
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
111 111
     </select>
112 112
    </td>
113 113
   </tr>
......
115 115
   <tr>
116 116
    <td>Erl&ouml;skonto Ausland:</td>
117 117
    <td>
118
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
119
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
118
     <select name="income_accno_id_3_[% loop.count %]">
119
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
120 120
     </select>
121 121
    </td>
122 122
   </tr>
......
124 124
   <tr>
125 125
    <td>Aufwandskonto Ausland:</td>
126 126
    <td>
127
     <select name="expense_accno_id_3_<TMPL_VAR __counter__>">
128
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
127
     <select name="expense_accno_id_3_[% loop.count %]">
128
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
129 129
     </select>
130 130
    </td>
131 131
   </tr>
132 132
  </table>
133 133

  
134
  <TMPL_IF __last__>
135
   <input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>">
136
  </TMPL_IF>
134
  [% IF loop.last %]
135
   <input type="hidden" name="rowcount" value="[% loop.count %]">
136
  [% END %]
137 137

  
138 138
  <hr>
139
 </TMPL_LOOP>
139
 [% END %]
140 140

  
141 141
 <input type="submit" onclick="document.Form.action2.value = 'create_buchungsgruppen'; document.Form.submit();" name="dummy" value="Buchungsgruppe erfassen">
142 142

  
templates/webpages/dbupgrade/buchungsgruppen_parts_master.html
1
<div class="listtop"><translate>Step 1 of 3: Parts</translate></div>
1
[% USE HTML %]<div class="listtop"><translate>Step 1 of 3: Parts</translate></div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading"><translate>Existing Buchungsgruppen</translate></div>
16 16

  
......
18 18
  <translate>The following Buchungsgruppen have already been created:</translate>
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     <translate>Invetory</translate>: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     <translate>Inventory</translate>: [% row.inventory_accno %];
25 25

  
26 26
     <translate>Income accno</translate>/<translate>Expense accno</translate>
27
     <translate>National</translate>: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     <translate>National</translate>: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     <translate>Income accno</translate>/<translate>Expense accno</translate>
30
     <translate>EU with VAT ID</translate>: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     <translate>EU with VAT ID</translate>: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     <translate>Income accno</translate>/<translate>Expense accno</translate>
33
     <translate>EU without VAT ID</translate>: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     <translate>EU without VAT ID</translate>: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     <translate>Income accno</translate>/<translate>Expense accno</translate>
36
     <translate>International</translate>: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     <translate>International</translate>: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading"><translate>New Buchungsgruppe <TMPL_VAR __counter__></translate></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading"><translate>New Buchungsgruppe [% loop.count %]</translate></div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td><translate>Description</translate>:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td><translate>Inventory</translate>:</td>
56 56
     <td>
57
      <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR inventory_accno_id ESCAPE=HTML>">
58
      <TMPL_VAR inventory_accno ESCAPE=HTML>--<TMPL_VAR inventory_description ESCAPE=HTML>
57
      <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% HTML.escape(row.inventory_accno_id) %]">
58
      [% HTML.escape(row.inventory_accno) %]--[% HTML.escape(row.inventory_description) %]
59 59
     </td>
60 60
    </tr>
61
   </TMPL_IF>
61
   [% END %]
62 62

  
63 63
   <tr>
64 64
    <td><translate>Income accno</translate> <translate>National</translate>:</td>
65 65
    <td>
66
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
67
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
66
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
67
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
68 68
    </td>
69 69
   </tr>
70 70

  
71 71
   <tr>
72 72
    <td><translate>Expense accno</translate> <translate>National</translate>:</td>
73 73
    <td>
74
     <input type="hidden" name="expense_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR expense_accno_id ESCAPE=HTML>">
75
     <TMPL_VAR expense_accno ESCAPE=HTML>--<TMPL_VAR expense_description ESCAPE=HTML>
74
     <input type="hidden" name="expense_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.expense_accno_id) %]">
75
     [% HTML.escape(row.expense_accno) %]--[% HTML.escape(row.expense_description) %]
76 76
    </td>
77 77
   </tr>
78 78

  
79 79
   <tr>
80 80
    <td><translate>Income accno</translate> <translate>EU with VAT ID</translate>:</td>
81 81
    <td>
82
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
83
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
82
     <select name="income_accno_id_1_[% loop.count %]">
83
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
84 84
     </select>
85 85
    </td>
86 86
   </tr>
......
88 88
   <tr>
89 89
    <td><translate>Expense accno</translate> <translate>EU with VAT ID</translate>:</td>
90 90
    <td>
91
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
92
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
91
     <select name="expense_accno_id_1_[% loop.count %]">
92
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
93 93
     </select>
94 94
    </td>
95 95
   </tr>
......
97 97
   <tr>
98 98
    <td><translate>Income accno</translate> <translate>EU without VAT ID</translate>:</td>
99 99
    <td>
100
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
101
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
100
     <select name="income_accno_id_2_[% loop.count %]">
101
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
102 102
     </select>
103 103
    </td>
104 104
   </tr>
......
106 106
   <tr>
107 107
    <td><translate>Expense accno</translate> <translate>EU without VAT ID</translate>:</td>
108 108
    <td>
109
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
110
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
109
     <select name="expense_accno_id_2_[% loop.count %]">
110
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
111 111
     </select>
112 112
    </td>
113 113
   </tr>
......
115 115
   <tr>
116 116
    <td><translate>Income accno</translate> <translate>International</translate>:</td>
117 117
    <td>
118
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
119
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
118
     <select name="income_accno_id_3_[% loop.count %]">
119
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
120 120
     </select>
121 121
    </td>
122 122
   </tr>
......
124 124
   <tr>
125 125
    <td><translate>Expense accno</translate> <translate>International</translate>:</td>
126 126
    <td>
127
     <select name="expense_accno_id_3_<TMPL_VAR __counter__>">
128
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
127
     <select name="expense_accno_id_3_[% loop.count %]">
128
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
129 129
     </select>
130 130
    </td>
131 131
   </tr>
132 132
  </table>
133 133

  
134
  <TMPL_IF __last__>
135
   <input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>">
136
  </TMPL_IF>
134
  [% IF loop.last %]
135
   <input type="hidden" name="rowcount" value="[% loop.count %]">
136
  [% END %]
137 137

  
138 138
  <hr>
139
 </TMPL_LOOP>
139
 [% END %]
140 140

  
141 141
 <input type="submit" onclick="document.Form.action2.value = 'create_buchungsgruppen'; document.Form.submit();" name="dummy" value="<translate>Create Buchungsgruppen</translate>">
142 142

  
templates/webpages/dbupgrade/buchungsgruppen_services_de.html
1
<div class="listtop">Schritt 2 von 3: Dienstleistungen</div>
1
[% USE HTML %]<div class="listtop">Schritt 2 von 3: Dienstleistungen</div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading">Existierende Buchungsgruppen</div>
16 16

  
......
18 18
  Die folgenden Buchungsgruppen wurden bereits angelegt:
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     Inventar: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     Inventar: [% row.inventory_accno %];
25 25

  
26 26
     Erl&ouml;skonto/Aufwandskonto
27
     Inand: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     Inand: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     Erl&ouml;skonto/Aufwandskonto
30
     EU mit UstId-Nummer: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     EU mit UstId-Nummer: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     Erl&ouml;skonto/Aufwandskonto
33
     EU ohne UstId-Nummer: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     EU ohne UstId-Nummer: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     Erl&ouml;skonto/Aufwandskonto
36
     Ausland: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     Ausland: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading">Neue Buchungsgruppe <TMPL_VAR __counter__></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading">Neue Buchungsgruppe [% loop.count %]</div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td>Beschreibung:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td>Inventar:</td>
56 56
     <td>
57
      <select name="inventory_accno_id_<TMPL_VAR __counter__>">
58
       <TMPL_LOOP ACC_INVENTORY><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
57
      <select name="inventory_accno_id_[% loop.count %]">
58
       [% FOREACH acc_row = ACC_INVENTORY %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
59 59
      </select>
60 60
     </td>
61 61
    </tr>
62
   </TMPL_IF>
62
   [% END %]
63 63

  
64 64
   <tr>
65 65
    <td>Erl&ouml;skonto Inand:</td>
66 66
    <td>
67
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
68
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
67
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
68
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
69 69
    </td>
70 70
   </tr>
71 71

  
72 72
   <tr>
73 73
    <td>Aufwandskonto Inand:</td>
74 74
    <td>
75
     <input type="hidden" name="expense_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR expense_accno_id ESCAPE=HTML>">
76
     <TMPL_VAR expense_accno ESCAPE=HTML>--<TMPL_VAR expense_description ESCAPE=HTML>
75
     <input type="hidden" name="expense_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.expense_accno_id) %]">
76
     [% HTML.escape(row.expense_accno) %]--[% HTML.escape(row.expense_description) %]
77 77
    </td>
78 78
   </tr>
79 79

  
80 80
   <tr>
81 81
    <td>Erl&ouml;skonto EU mit UstId-Nummer:</td>
82 82
    <td>
83
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
84
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
83
     <select name="income_accno_id_1_[% loop.count %]">
84
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
85 85
     </select>
86 86
    </td>
87 87
   </tr>
......
89 89
   <tr>
90 90
    <td>Aufwandskonto EU mit UstId-Nummer:</td>
91 91
    <td>
92
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
93
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
92
     <select name="expense_accno_id_1_[% loop.count %]">
93
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
94 94
     </select>
95 95
    </td>
96 96
   </tr>
......
98 98
   <tr>
99 99
    <td>Erl&ouml;skonto EU ohne UstId-Nummer:</td>
100 100
    <td>
101
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
102
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
101
     <select name="income_accno_id_2_[% loop.count %]">
102
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
103 103
     </select>
104 104
    </td>
105 105
   </tr>
......
107 107
   <tr>
108 108
    <td>Aufwandskonto EU ohne UstId-Nummer:</td>
109 109
    <td>
110
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
111
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
110
     <select name="expense_accno_id_2_[% loop.count %]">
111
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
112 112
     </select>
113 113
    </td>
114 114
   </tr>
......
116 116
   <tr>
117 117
    <td>Erl&ouml;skonto Ausland:</td>
118 118
    <td>
119
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
120
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
119
     <select name="income_accno_id_3_[% loop.count %]">
120
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
121 121
     </select>
122 122
    </td>
123 123
   </tr>
......
125 125
   <tr>
126 126
    <td>Aufwandskonto Ausland:</td>
127 127
    <td>
128
     <select name="expense_accno_id_3_<TMPL_VAR __counter__>">
129
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
128
     <select name="expense_accno_id_3_[% loop.count %]">
129
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
130 130
     </select>
131 131
    </td>
132 132
   </tr>
133 133
  </table>
134 134

  
135
  <TMPL_IF __last__>
136
   <input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>">
137
  </TMPL_IF>
135
  [% IF loop.last %]
136
   <input type="hidden" name="rowcount" value="[% loop.count %]">
137
  [% END %]
138 138

  
139 139
  <hr>
140
 </TMPL_LOOP>
140
 [% END %]
141 141

  
142 142
 <input type="submit" onclick="document.Form.action2.value = 'create_buchungsgruppen'; document.Form.submit();" name="dummy" value="Buchungsgruppe erfassen">
143 143

  
templates/webpages/dbupgrade/buchungsgruppen_services_master.html
1
<div class="listtop"><translate>Step 2 of 3: Services</translate></div>
1
[% USE HTML %]<div class="listtop"><translate>Step 2 of 3: Services</translate></div>
2 2

  
3 3
<form name="Form" method="post" action="login.pl">
4 4

  
5
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
6
 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
5
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6
 <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7 7
 <input type="hidden" name="type" value="parts">
8 8
 <input type="hidden" name="action" value="login">
9 9
 <input type="hidden" name="action2" value="">
10 10

  
11
 <TMPL_IF saved_message>
12
  <p><TMPL_VAR saved_message></p>
13
 </TMPL_IF>
11
 [% IF saved_message %]
12
  <p>[% saved_message %]</p>
13
 [% END %]
14 14

  
15 15
 <div class="subsubheading"><translate>Existing Buchungsgruppen</translate></div>
16 16

  
......
18 18
  <translate>The following Buchungsgruppen have already been created:</translate>
19 19
  <br>
20 20
  <ul>
21
   <TMPL_LOOP BUCHUNGSGRUPPEN>
21
   [% FOREACH row = BUCHUNGSGRUPPEN %]
22 22
    <li>
23
     <TMPL_VAR description ESCAPE=HTML>:
24
     <translate>Invetory</translate>: <TMPL_VAR inventory_accno>;
23
     [% HTML.escape(row.description) %]:
24
     <translate>Inventory</translate>: [% row.inventory_accno %];
25 25

  
26 26
     <translate>Income accno</translate>/<translate>Expense accno</translate>
27
     <translate>National</translate>: <TMPL_VAR income_accno_0>/<TMPL_VAR expense_accno_0>;
27
     <translate>National</translate>: [% row.income_accno_0 %]/[% row.expense_accno_0 %];
28 28

  
29 29
     <translate>Income accno</translate>/<translate>Expense accno</translate>
30
     <translate>EU with VAT ID</translate>: <TMPL_VAR income_accno_1>/<TMPL_VAR expense_accno_1>;
30
     <translate>EU with VAT ID</translate>: [% row.income_accno_1 %]/[% row.expense_accno_1 %];
31 31

  
32 32
     <translate>Income accno</translate>/<translate>Expense accno</translate>
33
     <translate>EU without VAT ID</translate>: <TMPL_VAR income_accno_2>/<TMPL_VAR expense_accno_2>;
33
     <translate>EU without VAT ID</translate>: [% row.income_accno_2 %]/[% row.expense_accno_2 %];
34 34

  
35 35
     <translate>Income accno</translate>/<translate>Expense accno</translate>
36
     <translate>International</translate>: <TMPL_VAR income_accno_3>/<TMPL_VAR expense_accno_3>
36
     <translate>International</translate>: [% row.income_accno_3 %]/[% row.expense_accno_3 %]
37 37
    </li>
38
   </TMPL_LOOP>
38
   [% END %]
39 39
  </ul>
40 40
 </p>
41 41

  
42
 <TMPL_LOOP LIST>
43
  <div class="subsubheading"><translate>New Buchungsgruppe <TMPL_VAR __counter__></translate></div>
42
 [% FOREACH row = LIST %]
43
  <div class="subsubheading"><translate>New Buchungsgruppe [% loop.count %]</translate></div>
44 44

  
45 45
  <table>
46 46
   <tr>
47 47
    <td><translate>Description</translate>:</td>
48
    <td><input name="description_<TMPL_VAR __counter__>"></td>
48
    <td><input name="description_[% loop.count %]"></td>
49 49
   </tr>
50 50

  
51
   <TMPL_IF eur>
52
    <input type="hidden" name="inventory_accno_id_<TMPL_VAR __counter__>" value="<TMPL_VAR std_inventory_accno_id>">
53
    <TMPL_ELSE>
51
   [% IF row.eur %]
52
    <input type="hidden" name="inventory_accno_id_[% loop.count %]" value="[% std_inventory_accno_id %]">
53
    [% ELSE %]
54 54
    <tr>
55 55
     <td><translate>Inventory</translate>:</td>
56 56
     <td>
57
      <select name="inventory_accno_id_<TMPL_VAR __counter__>">
58
       <TMPL_LOOP ACC_INVENTORY><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
57
      <select name="inventory_accno_id_[% loop.count %]">
58
       [% FOREACH acc_row = ACC_INVENTORY %]<option value="[% acc_row.id %]" [% acc_row.selected %]>[% HTML.escape(acc_row.accno) %]--[% HTML.escape(acc_row.description) %]</option>[% END %]
59 59
      </select>
60 60
     </td>
61 61
    </tr>
62
   </TMPL_IF>
62
   [% END %]
63 63

  
64 64
   <tr>
65 65
    <td><translate>Income accno</translate> <translate>National</translate>:</td>
66 66
    <td>
67
     <input type="hidden" name="income_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR income_accno_id ESCAPE=HTML>">
68
     <TMPL_VAR income_accno ESCAPE=HTML>--<TMPL_VAR income_description ESCAPE=HTML>
67
     <input type="hidden" name="income_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.income_accno_id) %]">
68
     [% HTML.escape(row.income_accno) %]--[% HTML.escape(row.income_description) %]
69 69
    </td>
70 70
   </tr>
71 71

  
72 72
   <tr>
73 73
    <td><translate>Expense accno</translate> <translate>National</translate>:</td>
74 74
    <td>
75
     <input type="hidden" name="expense_accno_id_0_<TMPL_VAR __counter__>" value="<TMPL_VAR expense_accno_id ESCAPE=HTML>">
76
     <TMPL_VAR expense_accno ESCAPE=HTML>--<TMPL_VAR expense_description ESCAPE=HTML>
75
     <input type="hidden" name="expense_accno_id_0_[% loop.count %]" value="[% HTML.escape(row.expense_accno_id) %]">
76
     [% HTML.escape(row.expense_accno) %]--[% HTML.escape(row.expense_description) %]
77 77
    </td>
78 78
   </tr>
79 79

  
80 80
   <tr>
81 81
    <td><translate>Income accno</translate> <translate>EU with VAT ID</translate>:</td>
82 82
    <td>
83
     <select name="income_accno_id_1_<TMPL_VAR __counter__>">
84
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
83
     <select name="income_accno_id_1_[% loop.count %]">
84
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
85 85
     </select>
86 86
    </td>
87 87
   </tr>
......
89 89
   <tr>
90 90
    <td><translate>Expense accno</translate> <translate>EU with VAT ID</translate>:</td>
91 91
    <td>
92
     <select name="expense_accno_id_1_<TMPL_VAR __counter__>">
93
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
92
     <select name="expense_accno_id_1_[% loop.count %]">
93
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
94 94
     </select>
95 95
    </td>
96 96
   </tr>
......
98 98
   <tr>
99 99
    <td><translate>Income accno</translate> <translate>EU without VAT ID</translate>:</td>
100 100
    <td>
101
     <select name="income_accno_id_2_<TMPL_VAR __counter__>">
102
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
101
     <select name="income_accno_id_2_[% loop.count %]">
102
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
103 103
     </select>
104 104
    </td>
105 105
   </tr>
......
107 107
   <tr>
108 108
    <td><translate>Expense accno</translate> <translate>EU without VAT ID</translate>:</td>
109 109
    <td>
110
     <select name="expense_accno_id_2_<TMPL_VAR __counter__>">
111
      <TMPL_LOOP ACC_EXPENSE><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
110
     <select name="expense_accno_id_2_[% loop.count %]">
111
      [% FOREACH acc_row = ACC_EXPENSE %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
112 112
     </select>
113 113
    </td>
114 114
   </tr>
......
116 116
   <tr>
117 117
    <td><translate>Income accno</translate> <translate>International</translate>:</td>
118 118
    <td>
119
     <select name="income_accno_id_3_<TMPL_VAR __counter__>">
120
      <TMPL_LOOP ACC_INCOME><option value="<TMPL_VAR id>" <TMPL_VAR selected>><TMPL_VAR accno ESCAPE=HTML>--<TMPL_VAR description ESCAPE=HTML></option></TMPL_LOOP>
119
     <select name="income_accno_id_3_[% loop.count %]">
120
      [% FOREACH acc_row = ACC_INCOME %]<option value="[% id %]" [% selected %]>[% HTML.escape(accno) %]--[% HTML.escape(description) %]</option>[% END %]
121 121
     </select>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff