Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b9882bee

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID b9882bee823f393f2071c790c1d73407c7d8ea51
  • Vorgänger 858ce394
  • Nachfolger 1a39394f

Umstellung der Vorlagen in templates/webpages/am von HTML::Template auf Template.

Unterschiede anzeigen:

bin/mozilla/am.pl
339 339
  };
340 340
  
341 341
  # Ausgabe des Templates
342
  print($form->parse_html_template('am/edit_accounts', $parameters_ref));
342
  print($form->parse_html_template2('am/edit_accounts', $parameters_ref));
343 343

  
344 344

  
345 345
  $lxdebug->leave_sub();
......
398 398
sub list_account {
399 399
  $lxdebug->enter_sub();
400 400

  
401
  CA->all_accounts(\%myconfig, \%$form);
402

  
403
  $form->{title} = $locale->text('Chart of Accounts');
404

  
405
  # construct callback
406
  $callback =
407
    "$form->{script}?action=list_account&login=$form->{login}&password=$form->{password}";
408

  
401
  $form->{callback}     = build_std_url('action=list_account');
402
  my $link_edit_account = build_std_url('action=edit_account', 'callback');
409 403

  
410

  
411
  # escape callback
412
  $callback = $form->escape($callback);
404
  CA->all_accounts(\%myconfig, \%$form);
413 405

  
414 406
  foreach $ca (@{ $form->{CA} }) {
415 407

  
......
423 415
      $ca->{debit} = $form->format_amount(\%myconfig, -1 * $ca->{amount}, 2);
424 416
    }
425 417
    $ca->{heading}   = ( $ca->{charttype} eq 'H' ) ? 1:''; 
426
    $ca->{link_edit_account} = 
427
        qq|$form->{script}?action=edit_account&id=$ca->{id}|
428
       .qq|&login=$form->{login}|
429
       .qq|&password=$form->{password}&callback=$callback|;
418
    $ca->{link_edit_account} = $link_edit_account . '&id=' . E($ca->{id});
430 419
  }
431 420
  
432 421
  # Ajax 
433
  my $list_account_details_url = 
434
              "$form->{script}?login=$form->{login}"
435
             ."&password=$form->{password}&action=list_account_details&";
436
  
437
  
438
  my $pjx = new CGI::Ajax('list_account_details' => $list_account_details_url);
422
  my $pjx = new CGI::Ajax('list_account_details' => build_std_url('action=list_account_details'));
439 423

  
440 424
  # Eneable AJAX debuging
441 425
  #$pjx->DEBUG(1);
......
444 428
  push(@ { $form->{AJAX} }, $pjx);
445 429

  
446 430
  $form->{stylesheets} = "list_accounts.css";
431
  $form->{title}       = $locale->text('Chart of Accounts');
447 432

  
448 433
  $form->header;
449 434
  
......
461 446

  
462 447

  
463 448
sub list_account_details {
464
# Ajax Funktion aus list_account_details  
449
# Ajax Funktion aus list_account_details
465 450
  $lxdebug->enter_sub();
466 451

  
467 452
  my $chart_id = $form->{args};
468
  
469
  CA->all_accounts(\%myconfig, \%$form, $chart_id);
470

  
471
  $form->{title} = $locale->text('Chart of Accounts');
472

  
473
  # construct callback
474
  $callback =
475
    "$form->{script}?action=list_account&login=$form->{login}&password=$form->{password}";
476 453

  
477
  $form->header;
478

  
479
  # escape callback
480
  $callback = $form->escape($callback);
454
  CA->all_accounts(\%myconfig, \%$form, $chart_id);
481 455

  
482 456
  foreach $ca (@{ $form->{CA} }) {
483 457

  
......
494 468
    }
495 469

  
496 470
    my @links = split( q{:}, $ca->{link});
497
    
471

  
498 472
    $ca->{link} = q{};
499
    
473

  
500 474
    foreach my $link (@links){
501
      $link = ( $link eq 'AR')             ? $locale->text('Account Link AR')
475
      $link =    ( $link eq 'AR')             ? $locale->text('Account Link AR')
502 476
               : ( $link eq 'AP')             ? $locale->text('Account Link AP')
503 477
               : ( $link eq 'IC')             ? $locale->text('Account Link IC')
504 478
               : ( $link eq 'AR_amount' )     ? $locale->text('Account Link AR_amount')
......
515 489
               : ( $link eq 'IC_taxservice' ) ? $locale->text('Account Link IC_taxservice')
516 490
#               : ( $link eq 'CT_tax' )        ? $locale->text('Account Link CT_tax')
517 491
               : $locale->text('Unknown Link') . ': ' . $link;
518
      
519 492
      $ca->{link} .= ($link ne '') ?  "[$link] ":'';
520 493
    }
521
    
522
    $ca->{startdate}      =~ s/,/<br>/og;
523
    $ca->{tk_ustva}       =~ s/,/<br>/og;
524
    $ca->{taxkey}         =~ s/,/<br>/og;
525
    $ca->{taxaccount}     =~ s/,/<br>/og;
526
    $ca->{taxdescription} =~ s/,/<br>/og;
527
    $ca->{datevautomatik} = ($ca->{datevautomatik}) ? $locale->text('On'):$locale->text('Off');
528 494

  
529 495
    $ca->{category} = ($ca->{category} eq 'A') ? $locale->text('Account Category A')
530 496
                    : ($ca->{category} eq 'E') ? $locale->text('Account Category E')
......
534 500
                    : ($ca->{category} eq 'C') ? $locale->text('Account Category C')
535 501
                    : ($ca->{category} eq 'G') ? $locale->text('Account Category G')
536 502
                    : $locale->text('Unknown Category') . ': ' . $ca->{category};
537

  
538
    $ca->{link_edit_account} = 
539
        qq|$form->{script}?action=edit_account&id=$ca->{id}|
540
       .qq|&login=$form->{login}|
541
       .qq|&password=$form->{password}&callback=$callback|;
542 503
  }
543 504

  
505
  $form->{title} = $locale->text('Chart of Accounts');
506
  $form->header();
544 507

  
508
  print $form->parse_html_template2('am/list_account_details');
545 509

  
546

  
547
  my $parameters_ref = {
548
  
549
  
550
  #   hidden_variables                => $_hidden_variables_ref,
551
  };
552
  
553
  # Ausgabe des Templates
554
  #my $q = CGI->new();
555
  my $result = $form->parse_html_template('am/list_account_details', $parameters_ref);
556
  
557
  print $result;
558
#  print "chart_id:$chart_id, form->chartid:$form->{chart_id}, rest=$rest";
559
      
560 510
  $lxdebug->leave_sub();
561 511

  
562 512
}
......
2609 2559

  
2610 2560
  $form->{"title"} = sprintf($locale->text("Add and edit %s"), $form->{"unit_type"} eq "dimension" ? $locale->text("dimension units") : $locale->text("service units"));
2611 2561
  $form->header();
2612
  print($form->parse_html_template("am/edit_units",
2613
                                   { "UNITS" => \@unit_list,
2614
                                     "NEW_BASE_UNIT_DDBOX" => $ddbox,
2615
                                     "LANGUAGES" => \@languages,
2616
                                     "updownlink" => $updownlink }));
2562
  print($form->parse_html_template2("am/edit_units",
2563
                                    { "UNITS"               => \@unit_list,
2564
                                      "NEW_BASE_UNIT_DDBOX" => $ddbox,
2565
                                      "LANGUAGES"           => \@languages,
2566
                                      "updownlink"          => $updownlink }));
2617 2567

  
2618 2568
  $lxdebug->leave_sub();
2619 2569
}
bin/mozilla/amtemplates.pl
145 145

  
146 146
      push(@values,
147 147
           { "value"   => $file,
148
             "label"   => ref($setup) ? $setup->{"translation"} : $setup,
149
             "default" => $file eq $form->{"formname"} });
148
             "label"   => ref($setup) ? $setup->{"translation"} : $setup });
150 149
    }
151 150

  
152 151
    # "zahlungserinnerung" => $locale->text('Payment Reminder'),
......
155 154
      next if !$ref->{"template"};
156 155

  
157 156
      push(@values,
158
           { "value"   => $ref->{"template"},
159
             "label"   => $locale->text('Payment Reminder') . ": " . $ref->{"dunning_description"},
160
             "default" => $ref->{"template"} eq $form->{"formname"} });
157
           { "value" => $ref->{"template"},
158
             "label" => $locale->text('Payment Reminder') . ": " . $ref->{"dunning_description"} });
161 159
    }
162 160

  
163 161
    @values = sort({ $a->{"label"} cmp $b->{"label"} } @values);
164 162

  
165
    $options{"FORMNAME"} = [ @values ];
163
    $options{FORMNAME} = [ @values ];
166 164

  
167 165
    #
168 166
    # Setup "language" selection
169 167
    #
170 168

  
171
    @values = ( { "value" => "", "label" => "", "default" => 0 } );
169
    @values = ();
172 170

  
173 171
    foreach my $item (@{ $form->{"ALL_LANGUAGES"} }) {
174 172
      next unless ($item->{"template_code"});
175 173

  
176
      my $key = "$item->{id}--$item->{template_code}";
177

  
178 174
      push(@values,
179
           { "value"   => $key,
180
             "label"   => $item->{"description"},
181
             "default" => $key eq $form->{"language"} });
175
           { "value" => "$item->{id}--$item->{template_code}",
176
             "label" => $item->{"description"} });
182 177
    }
183 178

  
184
    $options{"LANGUAGE"} = [ @values ];
185
    $options{"SHOW_LANGUAGE"} = scalar(@values) > 1;
186

  
187
    @values = ( { "value" => "", "label" => "", "default" => 0 } );
179
    $options{LANGUAGE} = [ @values ];
188 180

  
189 181
    #
190 182
    # Setup "printer" selection
191 183
    #
192 184

  
185
    @values = ();
186

  
193 187
    foreach my $item (@{ $form->{"ALL_PRINTERS"} }) {
194 188
      next unless ($item->{"template_code"});
195 189

  
196
      my $key = "$item->{id}--$item->{template_code}";
197

  
198 190
      push(@values,
199
           { "value"   => $key,
200
             "label"   => $item->{"printer_description"},
201
             "default" => $key eq $form->{"printer"} });
191
           { "value" => "$item->{id}--$item->{template_code}",
192
             "label" => $item->{"printer_description"} });
202 193
    }
203 194

  
204
    $options{"PRINTER"} = [ @values ];
205
    $options{"SHOW_PRINTER"} = scalar(@values) > 1;
195
    $options{PRINTER} = [ @values ];
206 196

  
207 197
  } else {
208 198
    push(@hidden, qw(formname language printer));
......
231 221
  $options{"HIDDEN"} = [ map(+{ "name" => $_, "value" => $form->{$_} }, @hidden) ];
232 222

  
233 223
  $form->header;
234
  print($form->parse_html_template("am/edit_templates", \%options));
224
  print($form->parse_html_template2("am/edit_templates", \%options));
235 225

  
236 226
  $lxdebug->leave_sub();
237 227
}
locale/de/am
161 161
  'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgew?hlt.',
162 162
  'None'                        => 'Kein',
163 163
  'Number Format'               => 'Zahlenformat',
164
  'Off'                         => 'Aus',
165
  'On'                          => 'An',
166 164
  'OpenDocument/OASIS'          => 'OpenDocument/OASIS',
167 165
  'PAYMENT POSTED'              => 'Rechung gebucht',
168 166
  'PDF'                         => 'PDF',
templates/webpages/am/edit_accounts_de.html
1
<script type="text/javascript" src="js/FormManager.js" >
1
[% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
2 2
/****************************************************
3 3
* Form Dependency Manager- By Twey- http://www.twey.co.uk
4 4
* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
......
12 12
</script>
13 13

  
14 14
<body>
15
<form method="post" name="EditAccount" action="<TMPL_VAR script>">
15
<form method="post" name="EditAccount" action="am.pl">
16 16

  
17
<input type="hidden" name="id"                 value="<TMPL_VAR id>">
17
<input type="hidden" name="id"                 value="[% HTML.escape(id) %]">
18 18
<input type="hidden" name="type"               value="account">
19
<input type="hidden" name="orphaned"           value="<TMPL_VAR orphaned>">
20
<input type="hidden" name="new_chart_valid"    value="<TMPL_VAR new_chart_valid>">
21
<input type="hidden" name="inventory_accno_id" value="<TMPL_VAR inventory_accno_id>">
22
<input type="hidden" name="income_accno_id"    value="<TMPL_VAR income_accno_id>">
23
<input type="hidden" name="expense_accno_id"   value="<TMPL_VAR expense_accno_id>">
24
<input type="hidden" name="fxgain_accno_id"    value="<TMPL_VAR fxgain_accno_id>">
25
<input type="hidden" name="fxloss_accno_id"    value="<TMPL_VAR fxloss_accno_id>">
19
<input type="hidden" name="orphaned"           value="[% HTML.escape(orphaned) %]">
20
<input type="hidden" name="new_chart_valid"    value="[% HTML.escape(new_chart_valid) %]">
21
<input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
22
<input type="hidden" name="income_accno_id"    value="[% HTML.escape(income_accno_id) %]">
23
<input type="hidden" name="expense_accno_id"   value="[% HTML.escape(expense_accno_id) %]">
24
<input type="hidden" name="fxgain_accno_id"    value="[% HTML.escape(fxgain_accno_id) %]">
25
<input type="hidden" name="fxloss_accno_id"    value="[% HTML.escape(fxloss_accno_id) %]">
26 26

  
27 27
<table border="0" width="100%">
28 28
  <tr>
29
    <th class="listtop"><TMPL_VAR title></th>
29
    <th class="listtop">[% title %]</th>
30 30
  </tr>
31 31
</table>
32 32

  
......
40 40
        <label>
41 41
          Kontonummer
42 42
        </label></td>
43
        <td><input name="accno" size="20" value="<TMPL_VAR accno>"></td>
43
        <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
44 44
    </tr>
45 45
    <tr>
46 46
      <td>
47 47
        <label>
48 48
          Beschreibung
49
        </label>  
49
        </label>
50 50
      </td>
51
      <td><input name="description" size="40" value="<TMPL_VAR 
52
              description ESCAPE=HTML>"></td>
51
      <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
53 52
    </tr>
54 53
    <tr>
55 54
      <td>
......
58 57

  
59 58
        </label>
60 59
      </td>
61
      <td><select name="charttype"><TMPL_VAR 
62
              select_charttype></select></td>
60
      <td><select name="charttype">[% select_charttype %]</select></td>
63 61
    </tr>
64
  </table>    
65
</fieldset>  
62
  </table>
63
</fieldset>
66 64
<fieldset class="DEPENDS ON charttype BEING A">
67 65
  <legend>Kontoart</legend>
68 66
  <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
69
          <TMPL_VAR select_category></select>
67
          [% select_category %]</select>
70 68
</fieldset>
71 69

  
72
<TMPL_IF ChartTypeIsAccount>
70
[% IF ChartTypeIsAccount %]
73 71
<fieldset class="DEPENDS ON charttype BEING A">
74 72
  <legend>Buchungskonto in</legend>
75
    <input name="AR" type="checkbox" class="checkbox" value="AR" <TMPL_VAR AR ESCAPE=HTML>>
73
    <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
76 74
    &nbsp;Verkauf
77
    <input name="AP" type="checkbox" class="checkbox" value="AP" <TMPL_VAR AP ESCAPE=HTML>>
75
    <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
78 76
    &nbsp;Einkauf
79
    <input name="IC" type="checkbox" class="checkbox" value="IC" <TMPL_VAR IC ESCAPE=HTML>>
77
    <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
80 78
    &nbsp;Inventar
81 79
</fieldset>
82 80

  
......
92 90
    <tr>
93 91
      <td>
94 92
        <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
95
          <TMPL_VAR AR_amount ESCAPE=HTML>>&nbsp; 
93
          [% HTML.escape(AR_amount) %]>&nbsp;
96 94
        Erl?skonto <br>
97
        <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid" 
98
          <TMPL_VAR AR_paid ESCAPE=HTML>>&nbsp; 
95
        <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
96
          [% HTML.escape(AR_paid) %]>&nbsp;
99 97
        Zahlungseingang <br>
100
        <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax" 
101
          <TMPL_VAR AR_tax ESCAPE=HTML>>&nbsp; 
98
        <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
99
          [% HTML.escape(AR_tax) %]>&nbsp;
102 100
        Steuer
103 101
      </td>
104 102
      <td>
105
        <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount" 
106
          <TMPL_VAR AP_amount ESCAPE=HTML>>&nbsp; 
103
        <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
104
          [% HTML.escape(AP_amount) %]>&nbsp;
107 105
        Aufwand/Anlagen <br>
108
        <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid" 
109
          <TMPL_VAR AP_paid ESCAPE=HTML>>&nbsp; 
106
        <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
107
          [% HTML.escape(AP_paid) %]>&nbsp;
110 108
        Zahlungsausgang <br>
111
        <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax" 
112
            <TMPL_VAR AP_tax ESCAPE=HTML>>&nbsp; 
109
        <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
110
            [% HTML.escape(AP_tax) %]>&nbsp;
113 111
        Steuer
114 112
      </td>
115 113
      <td>
116
        <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale" 
117
          <TMPL_VAR IC_sale ESCAPE=HTML>>&nbsp; 
114
        <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
115
          [% HTML.escape(IC_sale) %]>&nbsp;
118 116
        Erl?skonto <br>
119
        <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs" 
120
          <TMPL_VAR IC_cogs ESCAPE=HTML>>&nbsp; 
117
        <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
118
          [% HTML.escape(IC_cogs) %]>&nbsp;
121 119
        Aufwandskonto <br>
122
        <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart" 
123
          <TMPL_VAR IC_taxpart ESCAPE=HTML>>&nbsp; 
120
        <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
121
          [% HTML.escape(IC_taxpart) %]>&nbsp;
124 122
        Steuer
125 123
      </td>
126 124
      <td>
127 125
        <input name=IC_income type=checkbox class=checkbox value="IC_income"
128
          <TMPL_VAR IC_income ESCAPE=HTML>>&nbsp; 
126
          [% HTML.escape(IC_income) %]>&nbsp;
129 127
        Erl?skonto <br>
130
        <input name=IC_expense type=checkbox class=checkbox value="IC_expense" 
131
          <TMPL_VAR IC_expense ESCAPE=HTML>>&nbsp; 
128
        <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
129
          [% HTML.escape(IC_expense) %]>&nbsp;
132 130
        Aufwandskonto <br>
133 131
        <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
134
          <TMPL_VAR IC_taxservice ESCAPE=HTML>>&nbsp; 
132
          [% HTML.escape(IC_taxservice) %]>&nbsp;
135 133
        Steuer
136 134
      </td>
137 135
    </tr>
......
144 142
  </legend>
145 143

  
146 144
            <table>
147
<TMPL_IF account_exists >
145
[% IF account_exists %]
148 146
              <tr>
149 147
                <th align="left">Steuerschl?ssel</th>
150 148
                <th align="left">G?ltig ab</th>
151 149
                <th align="left">UStVA</th>
152 150
                <th align="left">L?schen ? </th>
153 151
              </tr>
154
<TMPL_LOOP ACCOUNT_TAXKEYS >
152
[% FOREACH tk = ACCOUNT_TAXKEYS %]
155 153
              <tr>
156
    <TMPL_IF id>
157
                <input type="hidden" name="taxkey_id_<TMPL_VAR runningnumber>" value="<TMPL_VAR id>">
158
                <td><select name="taxkey_tax_<TMPL_VAR runningnumber>"><TMPL_VAR selecttaxkey></select></td>
159
                <td><input name="taxkey_startdate_<TMPL_VAR runningnumber>" value="<TMPL_VAR startdate>"></td>
160
                <td><select name="taxkey_pos_ustva_<TMPL_VAR runningnumber>"><TMPL_VAR select_tax></select></td>
161
                <td><input name="taxkey_del_<TMPL_VAR runningnumber>" type="checkbox"
154
    [% IF tk.id %]
155
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
156
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
157
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
158
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
159
                <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
162 160
                class="checkbox" value="delete"></td>
163
    <TMPL_ELSE>
164
                <input type="hidden" name="taxkey_id_<TMPL_VAR runningnumber>" value="NEW">
165
                <td><select name="taxkey_tax_<TMPL_VAR runningnumber>"><TMPL_VAR selecttaxkey></select></td>
166
                <td><input name="taxkey_startdate_<TMPL_VAR runningnumber>" value="<TMPL_VAR startdate>"></td>
167
                <td><select name="taxkey_pos_ustva_<TMPL_VAR runningnumber>"><TMPL_VAR select_tax></select></td>
161
    [% ELSE %]
162
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
163
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
164
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
165
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
168 166
                <td>&nbsp;</td>
169
    </TMPL_IF>            
167
    [% END %]
170 168
              </tr>
171 169

  
172
</TMPL_LOOP>
173
<TMPL_ELSE>
170
[% END %]
171
[% ELSE %]
174 172
<tr>
175 173
  <td align="center" colspan="4"><p>Einstellungen sind nach
176 174
  dem Speichern des Kontos verf?gbar...</p>
177 175
  </td>
178 176
</tr>
179
</TMPL_IF>
177
[% END %]
180 178
            </table>
181 179
</fieldset>
182 180

  
......
185 183
  <table>
186 184
        <tr>
187 185
          <th align="left">Einnahmen-/?berschussrechnung</th>
188
          <td colspan="3"><select name="pos_eur"><TMPL_VAR select_eur></select></td>
186
          <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
189 187
        </tr>
190 188
        <tr>
191 189
          <th align="left">BWA</th>
192
          <td colspan="3"><select name="pos_bwa"><TMPL_VAR select_bwa></select></td>
190
          <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
193 191
        </tr>
194 192
        <tr>
195 193
          <th align="left">Bilanz</th>
196
          <td colspan="3"><select name="pos_bilanz"><TMPL_VAR select_bilanz></select></td>
194
          <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
197 195
        </tr>
198 196
        <tr>
199 197
          <th align="left">Datevexport</th>
200
          <td colspan="3"><input name="datevautomatik" type="checkbox"
201
          class="checkbox" value="T" <TMPL_IF
202
          datevautomatik>checked="checked" </TMPL_IF>></td>
198
          <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
203 199
        </tr>
204 200
        <tr>
205 201
          <th align="left">Folgekonto</th>
206
          <td><select name="new_chart_id"><TMPL_VAR selectnewaccount></select></td>
202
          <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
207 203
          <th align="left">G?ltig ab</th>
208
          <td><input name="valid_from" value="<TMPL_VAR valid_from>"></td>
209
        </tr>        
204
          <td><input name="valid_from" value="[% valid_from %]"></td>
205
        </tr>
210 206
  </table>
211
</TMPL_IF>
207
[% END %]
212 208
</fieldset>
213 209
<hr size="3" noshade>
214

  
templates/webpages/am/edit_accounts_master.html
1
<script type="text/javascript" src="js/FormManager.js" >
1
[% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
2 2
/****************************************************
3 3
* Form Dependency Manager- By Twey- http://www.twey.co.uk
4 4
* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
......
12 12
</script>
13 13

  
14 14
<body>
15
<form method="post" name="EditAccount" action="<TMPL_VAR script>">
15
<form method="post" name="EditAccount" action="am.pl">
16 16

  
17
<input type="hidden" name="id"                 value="<TMPL_VAR id>">
17
<input type="hidden" name="id"                 value="[% HTML.escape(id) %]">
18 18
<input type="hidden" name="type"               value="account">
19
<input type="hidden" name="orphaned"           value="<TMPL_VAR orphaned>">
20
<input type="hidden" name="new_chart_valid"    value="<TMPL_VAR new_chart_valid>">
21
<input type="hidden" name="inventory_accno_id" value="<TMPL_VAR inventory_accno_id>">
22
<input type="hidden" name="income_accno_id"    value="<TMPL_VAR income_accno_id>">
23
<input type="hidden" name="expense_accno_id"   value="<TMPL_VAR expense_accno_id>">
24
<input type="hidden" name="fxgain_accno_id"    value="<TMPL_VAR fxgain_accno_id>">
25
<input type="hidden" name="fxloss_accno_id"    value="<TMPL_VAR fxloss_accno_id>">
19
<input type="hidden" name="orphaned"           value="[% HTML.escape(orphaned) %]">
20
<input type="hidden" name="new_chart_valid"    value="[% HTML.escape(new_chart_valid) %]">
21
<input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
22
<input type="hidden" name="income_accno_id"    value="[% HTML.escape(income_accno_id) %]">
23
<input type="hidden" name="expense_accno_id"   value="[% HTML.escape(expense_accno_id) %]">
24
<input type="hidden" name="fxgain_accno_id"    value="[% HTML.escape(fxgain_accno_id) %]">
25
<input type="hidden" name="fxloss_accno_id"    value="[% HTML.escape(fxloss_accno_id) %]">
26 26

  
27 27
<table border="0" width="100%">
28 28
  <tr>
29
    <th class="listtop"><TMPL_VAR title></th>
29
    <th class="listtop">[% title %]</th>
30 30
  </tr>
31 31
</table>
32 32

  
......
40 40
        <label>
41 41
          <translate>Account Number</translate>
42 42
        </label></td>
43
        <td><input name="accno" size="20" value="<TMPL_VAR accno>"></td>
43
        <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
44 44
    </tr>
45 45
    <tr>
46 46
      <td>
47 47
        <label>
48 48
          <translate>Description</translate>
49
        </label>  
49
        </label>
50 50
      </td>
51
      <td><input name="description" size="40" value="<TMPL_VAR 
52
              description ESCAPE=HTML>"></td>
51
      <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
53 52
    </tr>
54 53
    <tr>
55 54
      <td>
......
58 57

  
59 58
        </label>
60 59
      </td>
61
      <td><select name="charttype"><TMPL_VAR 
62
              select_charttype></select></td>
60
      <td><select name="charttype">[% select_charttype %]</select></td>
63 61
    </tr>
64
  </table>    
65
</fieldset>  
62
  </table>
63
</fieldset>
66 64
<fieldset class="DEPENDS ON charttype BEING A">
67 65
  <legend><translate>Account Type</translate></legend>
68 66
  <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
69
          <TMPL_VAR select_category></select>
67
          [% select_category %]</select>
70 68
</fieldset>
71 69

  
72
<TMPL_IF ChartTypeIsAccount>
70
[% IF ChartTypeIsAccount %]
73 71
<fieldset class="DEPENDS ON charttype BEING A">
74 72
  <legend><translate>Is this a summary account to record</translate></legend>
75
    <input name="AR" type="checkbox" class="checkbox" value="AR" <TMPL_VAR AR ESCAPE=HTML>>
73
    <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
76 74
    &nbsp;<translate>AR</translate>
77
    <input name="AP" type="checkbox" class="checkbox" value="AP" <TMPL_VAR AP ESCAPE=HTML>>
75
    <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
78 76
    &nbsp;<translate>AP</translate>
79
    <input name="IC" type="checkbox" class="checkbox" value="IC" <TMPL_VAR IC ESCAPE=HTML>>
77
    <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
80 78
    &nbsp;<translate>Inventory</translate>
81 79
</fieldset>
82 80

  
......
92 90
    <tr>
93 91
      <td>
94 92
        <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
95
          <TMPL_VAR AR_amount ESCAPE=HTML>>&nbsp; 
93
          [% HTML.escape(AR_amount) %]>&nbsp;
96 94
        <translate>Revenue</translate> <br>
97
        <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid" 
98
          <TMPL_VAR AR_paid ESCAPE=HTML>>&nbsp; 
95
        <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
96
          [% HTML.escape(AR_paid) %]>&nbsp;
99 97
        <translate>Receipt</translate> <br>
100
        <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax" 
101
          <TMPL_VAR AR_tax ESCAPE=HTML>>&nbsp; 
98
        <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
99
          [% HTML.escape(AR_tax) %]>&nbsp;
102 100
        <translate>Tax</translate>
103 101
      </td>
104 102
      <td>
105
        <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount" 
106
          <TMPL_VAR AP_amount ESCAPE=HTML>>&nbsp; 
103
        <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
104
          [% HTML.escape(AP_amount) %]>&nbsp;
107 105
        <translate>Expense/Asset</translate> <br>
108
        <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid" 
109
          <TMPL_VAR AP_paid ESCAPE=HTML>>&nbsp; 
106
        <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
107
          [% HTML.escape(AP_paid) %]>&nbsp;
110 108
        <translate>Payment</translate> <br>
111
        <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax" 
112
            <TMPL_VAR AP_tax ESCAPE=HTML>>&nbsp; 
109
        <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
110
            [% HTML.escape(AP_tax) %]>&nbsp;
113 111
        <translate>Tax</translate>
114 112
      </td>
115 113
      <td>
116
        <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale" 
117
          <TMPL_VAR IC_sale ESCAPE=HTML>>&nbsp; 
114
        <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
115
          [% HTML.escape(IC_sale) %]>&nbsp;
118 116
        <translate>Revenue</translate> <br>
119
        <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs" 
120
          <TMPL_VAR IC_cogs ESCAPE=HTML>>&nbsp; 
117
        <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
118
          [% HTML.escape(IC_cogs) %]>&nbsp;
121 119
        <translate>Expense</translate> <br>
122
        <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart" 
123
          <TMPL_VAR IC_taxpart ESCAPE=HTML>>&nbsp; 
120
        <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
121
          [% HTML.escape(IC_taxpart) %]>&nbsp;
124 122
        <translate>Tax</translate>
125 123
      </td>
126 124
      <td>
127 125
        <input name=IC_income type=checkbox class=checkbox value="IC_income"
128
          <TMPL_VAR IC_income ESCAPE=HTML>>&nbsp; 
126
          [% HTML.escape(IC_income) %]>&nbsp;
129 127
        <translate>Revenue</translate> <br>
130
        <input name=IC_expense type=checkbox class=checkbox value="IC_expense" 
131
          <TMPL_VAR IC_expense ESCAPE=HTML>>&nbsp; 
128
        <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
129
          [% HTML.escape(IC_expense) %]>&nbsp;
132 130
        <translate>Expense</translate> <br>
133 131
        <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
134
          <TMPL_VAR IC_taxservice ESCAPE=HTML>>&nbsp; 
132
          [% HTML.escape(IC_taxservice) %]>&nbsp;
135 133
        <translate>Tax</translate>
136 134
      </td>
137 135
    </tr>
......
144 142
  </legend>
145 143

  
146 144
            <table>
147
<TMPL_IF account_exists >
145
[% IF account_exists %]
148 146
              <tr>
149 147
                <th align="left"><translate>Taxkey</translate></th>
150 148
                <th align="left"><translate>valid from</translate></th>
151 149
                <th align="left"><translate>pos_ustva</translate></th>
152 150
                <th align="left"><translate>delete</translate> ? </th>
153 151
              </tr>
154
<TMPL_LOOP ACCOUNT_TAXKEYS >
152
[% FOREACH tk = ACCOUNT_TAXKEYS %]
155 153
              <tr>
156
    <TMPL_IF id>
157
                <input type="hidden" name="taxkey_id_<TMPL_VAR runningnumber>" value="<TMPL_VAR id>">
158
                <td><select name="taxkey_tax_<TMPL_VAR runningnumber>"><TMPL_VAR selecttaxkey></select></td>
159
                <td><input name="taxkey_startdate_<TMPL_VAR runningnumber>" value="<TMPL_VAR startdate>"></td>
160
                <td><select name="taxkey_pos_ustva_<TMPL_VAR runningnumber>"><TMPL_VAR select_tax></select></td>
161
                <td><input name="taxkey_del_<TMPL_VAR runningnumber>" type="checkbox"
154
    [% IF tk.id %]
155
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
156
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
157
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
158
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
159
                <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
162 160
                class="checkbox" value="delete"></td>
163
    <TMPL_ELSE>
164
                <input type="hidden" name="taxkey_id_<TMPL_VAR runningnumber>" value="NEW">
165
                <td><select name="taxkey_tax_<TMPL_VAR runningnumber>"><TMPL_VAR selecttaxkey></select></td>
166
                <td><input name="taxkey_startdate_<TMPL_VAR runningnumber>" value="<TMPL_VAR startdate>"></td>
167
                <td><select name="taxkey_pos_ustva_<TMPL_VAR runningnumber>"><TMPL_VAR select_tax></select></td>
161
    [% ELSE %]
162
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
163
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
164
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
165
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
168 166
                <td>&nbsp;</td>
169
    </TMPL_IF>            
167
    [% END %]
170 168
              </tr>
171 169

  
172
</TMPL_LOOP>
173
<TMPL_ELSE>
170
[% END %]
171
[% ELSE %]
174 172
<tr>
175 173
  <td align="center" colspan="4"><p><translate>Save account first to insert taxkeys</translate></p>
176 174
  </td>
177 175
</tr>
178
</TMPL_IF>
176
[% END %]
179 177
            </table>
180 178
</fieldset>
181 179

  
......
184 182
  <table>
185 183
        <tr>
186 184
          <th align="left"><translate>EUER</translate></th>
187
          <td colspan="3"><select name="pos_eur"><TMPL_VAR select_eur></select></td>
185
          <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
188 186
        </tr>
189 187
        <tr>
190 188
          <th align="left"><translate>BWA</translate></th>
191
          <td colspan="3"><select name="pos_bwa"><TMPL_VAR select_bwa></select></td>
189
          <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
192 190
        </tr>
193 191
        <tr>
194 192
          <th align="left"><translate>Bilanz</translate></th>
195
          <td colspan="3"><select name="pos_bilanz"><TMPL_VAR select_bilanz></select></td>
193
          <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
196 194
        </tr>
197 195
        <tr>
198 196
          <th align="left"><translate>Datevautomatik</translate></th>
199
          <td colspan="3"><input name="datevautomatik" type="checkbox"
200
          class="checkbox" value="T" <TMPL_IF
201
          datevautomatik>checked="checked" </TMPL_IF>></td>
197
          <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
202 198
        </tr>
203 199
        <tr>
204 200
          <th align="left"><translate>Folgekonto</translate></th>
205
          <td><select name="new_chart_id"><TMPL_VAR selectnewaccount></select></td>
201
          <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
206 202
          <th align="left"><translate>Valid from</translate></th>
207
          <td><input name="valid_from" value="<TMPL_VAR valid_from>"></td>
208
        </tr>        
203
          <td><input name="valid_from" value="[% valid_from %]"></td>
204
        </tr>
209 205
  </table>
210
</TMPL_IF>
206
[% END %]
211 207
</fieldset>
212 208
<hr size="3" noshade>
213

  
templates/webpages/am/edit_templates_de.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3
 <div class="listheading"><TMPL_VAR title></div>
3
 <div class="listheading">[% title %]</div>
4 4

  
5 5
 <form method="post" name="Form" action="amtemplates.pl">
6 6

  
7
  <TMPL_LOOP HIDDEN><input type="hidden" name="<TMPL_VAR name ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP>
7
  [% FOREACH var = HIDDEN %]<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">[% END %]
8 8

  
9
  <TMPL_IF SHOW_EDIT_OPTIONS>
9
  [% IF SHOW_EDIT_OPTIONS %]
10 10
   <p>
11 11
    Druckvorlage
12 12
    <select name="formname">
13
     <TMPL_LOOP FORMNAME><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
13
     [% FOREACH row = FORMNAME %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == formname %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
14 14
    </select>
15 15

  
16
    <TMPL_IF SHOW_LANGUAGE>
16
    [% IF LANGUAGE.size %]
17 17
     Sprache
18 18
     <select name="language">
19
      <TMPL_LOOP LANGUAGE><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
19
      <option></option>
20
      [% FOREACH row = LANGUAGE %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == language %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
20 21
     </select>
21
    </TMPL_IF>
22
    [% END %]
22 23

  
23
    <TMPL_IF SHOW_PRINTER>
24
    [% IF PRINTER.size %]
24 25
     Drucker
25 26
     <select name="printer">
26
      <TMPL_LOOP PRINTER><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
27
      <option></option>
28
      [% FOREACH row = PRINTER %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == printer %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
27 29
     </select>
28
    </TMPL_IF>
30
    [% END %]
29 31

  
30 32
    <input type="hidden" name="display_nextsub" value="display_template">
31 33

  
......
34 36
   </p>
35 37

  
36 38
   <hr>
37
  </TMPL_IF>
39
  [% END %]
38 40

  
39 41

  
40 42

  
41
  <TMPL_IF SHOW_CONTENT>
43
  [% IF SHOW_CONTENT %]
42 44
   <p>
43 45
    <div class="listtop">
44
     <TMPL_IF CAN_EDIT>Datei bearbeiten<TMPL_ELSE>Datei anzeigen</TMPL_IF> <TMPL_VAR display_filename ESCAPE=HTML>
46
     [% IF CAN_EDIT %]Datei bearbeiten[% ELSE %]Datei anzeigen[% END %] [% HTML.escape(display_filename) %]
45 47
    </div>
46 48
   </p>
47 49

  
48
   <TMPL_IF CAN_EDIT>
49
    <p><textarea name="content" id="content" cols="100" rows="25"><TMPL_VAR content ESCAPE=HTML></textarea></p>
50
   [% IF CAN_EDIT %]
51
    <p><textarea name="content" id="content" cols="100" rows="25">[% HTML.escape(content) %]</textarea></p>
50 52

  
51 53
    <p>
52 54
     <input type="hidden" name="save_nextsub" value="save_template">
53 55
     <input type="submit" name="action" value="Speichern">
56
     <input type="button" onclick="history.back()" value="Zur?ck">
54 57
    </p>
55 58

  
56
    <TMPL_ELSE>
59
    [% ELSE %]
57 60

  
58 61
    <input type="hidden" name="edit_nextsub" value="edit_template">
59 62

  
60 63
    <p><input name="action" type="submit" class="submit" value="Bearbeiten"></p>
61 64

  
62
    <p><pre class="filecontent"><TMPL_VAR content ESCAPE=HTML></pre></p>
65
    <p><pre class="filecontent">[% HTML.escape(content) %]</pre></p>
63 66

  
64
    <TMPL_IF SHOW_SECOND_EDIT_BUTTON>
67
    [% IF SHOW_SECOND_EDIT_BUTTON %]
65 68
     <p><input name="action" type="submit" class="submit" value="Bearbeiten"></p>
66
    </TMPL_IF>
69
    [% END %]
67 70

  
68
   </TMPL_IF> <!-- CAN_EDIT -->
71
   [% END %] <!-- CAN_EDIT -->
69 72

  
70
  </TMPL_IF> <!-- SHOW_CONTENT -->
73
  [% END %] <!-- SHOW_CONTENT -->
71 74

  
72 75
 </form>
73 76

  
templates/webpages/am/edit_templates_master.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3
 <div class="listheading"><TMPL_VAR title></div>
3
 <div class="listheading">[% title %]</div>
4 4

  
5 5
 <form method="post" name="Form" action="amtemplates.pl">
6 6

  
7
  <TMPL_LOOP HIDDEN><input type="hidden" name="<TMPL_VAR name ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP>
7
  [% FOREACH var = HIDDEN %]<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">[% END %]
8 8

  
9
  <TMPL_IF SHOW_EDIT_OPTIONS>
9
  [% IF SHOW_EDIT_OPTIONS %]
10 10
   <p>
11 11
    <translate>Template</translate>
12 12
    <select name="formname">
13
     <TMPL_LOOP FORMNAME><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
13
     [% FOREACH row = FORMNAME %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == formname %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
14 14
    </select>
15 15

  
16
    <TMPL_IF SHOW_LANGUAGE>
16
    [% IF LANGUAGE.size %]
17 17
     <translate>Language</translate>
18 18
     <select name="language">
19
      <TMPL_LOOP LANGUAGE><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
19
      <option></option>
20
      [% FOREACH row = LANGUAGE %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == language %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
20 21
     </select>
21
    </TMPL_IF>
22
    [% END %]
22 23

  
23
    <TMPL_IF SHOW_PRINTER>
24
    [% IF PRINTER.size %]
24 25
     <translate>Printer</translate>
25 26
     <select name="printer">
26
      <TMPL_LOOP PRINTER><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
27
      <option></option>
28
      [% FOREACH row = PRINTER %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == printer %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
27 29
     </select>
28
    </TMPL_IF>
30
    [% END %]
29 31

  
30 32
    <input type="hidden" name="display_nextsub" value="display_template">
31 33

  
......
34 36
   </p>
35 37

  
36 38
   <hr>
37
  </TMPL_IF>
39
  [% END %]
38 40

  
39 41

  
40 42

  
41
  <TMPL_IF SHOW_CONTENT>
43
  [% IF SHOW_CONTENT %]
42 44
   <p>
43 45
    <div class="listtop">
44
     <TMPL_IF CAN_EDIT><translate>Edit file</translate><TMPL_ELSE><translate>Display file</translate></TMPL_IF> <TMPL_VAR display_filename ESCAPE=HTML>
46
     [% IF CAN_EDIT %]<translate>Edit file</translate>[% ELSE %]<translate>Display file</translate>[% END %] [% HTML.escape(display_filename) %]
45 47
    </div>
46 48
   </p>
47 49

  
48
   <TMPL_IF CAN_EDIT>
49
    <p><textarea name="content" id="content" cols="100" rows="25"><TMPL_VAR content ESCAPE=HTML></textarea></p>
50
   [% IF CAN_EDIT %]
51
    <p><textarea name="content" id="content" cols="100" rows="25">[% HTML.escape(content) %]</textarea></p>
50 52

  
51 53
    <p>
52 54
     <input type="hidden" name="save_nextsub" value="save_template">
53 55
     <input type="submit" name="action" value="<translate>Save</translate>">
56
     <input type="button" onclick="history.back()" value="<translate>Back</translate>">
54 57
    </p>
55 58

  
56
    <TMPL_ELSE>
59
    [% ELSE %]
57 60

  
58 61
    <input type="hidden" name="edit_nextsub" value="edit_template">
59 62

  
60 63
    <p><input name="action" type="submit" class="submit" value="<translate>Edit</translate>"></p>
61 64

  
62
    <p><pre class="filecontent"><TMPL_VAR content ESCAPE=HTML></pre></p>
65
    <p><pre class="filecontent">[% HTML.escape(content) %]</pre></p>
63 66

  
64
    <TMPL_IF SHOW_SECOND_EDIT_BUTTON>
67
    [% IF SHOW_SECOND_EDIT_BUTTON %]
65 68
     <p><input name="action" type="submit" class="submit" value="<translate>Edit</translate>"></p>
66
    </TMPL_IF>
69
    [% END %]
67 70

  
68
   </TMPL_IF> <!-- CAN_EDIT -->
71
   [% END %] <!-- CAN_EDIT -->
69 72

  
70
  </TMPL_IF> <!-- SHOW_CONTENT -->
73
  [% END %] <!-- SHOW_CONTENT -->
71 74

  
72 75
 </form>
73 76

  
templates/webpages/am/edit_units_de.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3
 <TMPL_IF NAME=saved_message>
4
  <p><TMPL_VAR NAME=saved_message></p>
3
 [% IF saved_message %]
4
  <p>[% saved_message %]</p>
5 5

  
6 6
  <hr>
7
 </TMPL_IF>
7
 [% END %]
8 8

  
9
 <form method="post" action="<TMPL_VAR NAME=script ESCAPE=HTML>">
9
 <form method="post" action="[% HTML.escape(script) %]">
10 10

  
11
 <input type="hidden" name="login" value="<TMPL_VAR NAME=login ESCAPE=HTML>">
12
 <input type="hidden" name="password" value="<TMPL_VAR NAME=password ESCAPE=HTML>">
11
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
12
 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
13 13

  
14 14
 <input type="hidden" name="type" value="unit">
15
 <input type="hidden" name="unit_type" value="<TMPL_VAR NAME=unit_type ESCAPE=HTML>">
15
 <input type="hidden" name="unit_type" value="[% HTML.escape(unit_type) %]">
16 16

  
17 17
 <table width="100%">
18 18
  <tr>
19
   <th class="listtop" colspan="2"><TMPL_VAR NAME=title></th>
19
   <th class="listtop" colspan="2">[% title %]</th>
20 20
  </tr>
21 21
  <tr height="5"></tr>
22 22
 </table>
......
47 47
   <th align="right">Basiseinheit</th>
48 48
   <td>
49 49
    <select name="new_base_unit">
50
     <TMPL_LOOP NAME=NEW_BASE_UNIT_DDBOX><option <TMPL_VAR NAME=selected>><TMPL_VAR NAME=name></option></TMPL_LOOP>
50
     [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
51 51
    </select>
52 52
   </td>
53 53
  </tr>
......
56 56
   <td><input name="new_factor"></td>
57 57
  </tr>
58 58

  
59
  <TMPL_LOOP LANGUAGES>
59
  [% FOREACH language = LANGUAGES %]
60 60
   <tr>
61
    <th align="right"><TMPL_VAR description></th>
62
    <td><input name="new_localized_<TMPL_VAR id>" size="20" maxlength="20"></td>
61
    <th align="right">[% language.description %]</th>
62
    <td><input name="new_localized_[% language.id %]" size="20" maxlength="20"></td>
63 63
    <th align="right">Plural</th>
64
    <td><input name="new_localized_plural_<TMPL_VAR id>" size="20" maxlength="20"></td>
64
    <td><input name="new_localized_plural_[% language.id %]" size="20" maxlength="20"></td>
65 65
   </tr>
66
  </TMPL_LOOP>
66
  [% END %]
67 67
 </table>
68 68

  
69 69
 <input type="submit" class="submit" name="action" value="Erfassen">
......
98 98
   <th class="listheading">Einheit</th>
99 99
   <th class="listheading">Basiseinheit</th>
100 100
   <th class="listheading">Faktor</th>
101
   <TMPL_LOOP LANGUAGES>
102
    <th class="listheading"><TMPL_VAR description></th>
103
   </TMPL_LOOP>
101
   [% FOREACH language = LANGUAGES %]
102
    <th class="listheading">[% language.description %]</th>
103
   [% END %]
104 104
  </tr>
105 105

  
106
  <TMPL_LOOP NAME=UNITS>
106
  [% FOREACH row = UNITS %]
107 107
   <tr>
108
    <td width="32" align="center" valign="center"><TMPL_IF __first__><img src="image/transparent16x16.gif"><TMPL_ELSE><a href="<TMPL_VAR updownlink>&dir=up&name=<TMPL_VAR name ESCAPE=URL>"><img alt="hoch" src="image/up.png"></a></TMPL_IF><TMPL_IF __last__><img src="image/transparent16x16.gif"><TMPL_ELSE><a href="<TMPL_VAR updownlink>&dir=down&name=<TMPL_VAR name ESCAPE=URL>"><img alt="runter" src="image/down.png"></a></TMPL_IF></td>
109
    <TMPL_IF NAME=in_use>
108
    <td width="32" align="center" valign="center">[% IF loop.first %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=up&name=[% HTML.url(row.name) %]"><img alt="hoch" src="image/up.png"></a>[% END %][% IF loop.last %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=down&name=[% HTML.url(row.name) %]"><img alt="runter" src="image/down.png"></a>[% END %]</td>
109
    [% IF row.in_use %]
110 110
     <td>
111
      <input type="hidden" name="unchangeable_<TMPL_VAR NAME=__counter__>" value="1">
112
      <input type="hidden" name="old_name_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=name>">
111
      <input type="hidden" name="unchangeable_[% loop.count %]" value="1">
112
      <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
113 113
     </td>
114 114

  
115
     <td><TMPL_VAR NAME=name ESCAPE=HTML></td>
116
     <td><TMPL_IF NAME=base_unit><TMPL_VAR NAME=base_unit ESCAPE=HTML><TMPL_ELSE>---</TMPL_IF></td>
117
     <td><TMPL_IF NAME=base_unit><TMPL_VAR NAME=factor ESCAPE=HTML><TMPL_ELSE>---</TMPL_IF></td>
115
     <td>[% HTML.escape(row.name) %]</td>
116
     <td>[% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %]</td>
117
     <td>[% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %]</td>
118 118

  
119
     <TMPL_ELSE>
119
     [% ELSE %]
120 120

  
121
     <td align="center"><input type="checkbox" name="delete_<TMPL_VAR NAME=__counter__>"></td>
121
     <td align="center"><input type="checkbox" name="delete_[% loop.count %]"></td>
122 122
     <td>
123
      <input type="hidden" name="old_name_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=name>">
124
      <input name="name_<TMPL_VAR NAME=__counter__>" size="10" maxlength="20" value="<TMPL_VAR NAME=name>">
123
      <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
124
      <input name="name_[% loop.count %]" size="10" maxlength="20" value="[% HTML.escape(row.name) %]">
125 125
     </td>
126 126
     <td>
127
      <select name="base_unit_<TMPL_VAR NAME=__counter__>">
128
       <TMPL_LOOP NAME=BASE_UNIT_DDBOX><option <TMPL_VAR NAME=selected>><TMPL_VAR NAME=name></option></TMPL_LOOP>
127
      <select name="base_unit_[% loop.count %]">
128
       [% FOREACH option = row.BASE_UNIT_DDBOX %]<option [% option.selected %]>[% HTML.escape(option.name) %]</option>[% END %]
129 129
      </select>
130 130
     </td>
131
     <td><input name="factor_<TMPL_VAR NAME=__counter__>" size="8" value="<TMPL_VAR NAME=factor>"></td>
132
    </TMPL_IF>
131
     <td><input name="factor_[% loop.count %]" size="8" value="[% row.factor %]"></td>
132
    [% END %]
133 133

  
134
    <TMPL_LOOP UNITLANGUAGES>
134
    [% FOREACH language = row.UNITLANGUAGES %]
135 135
     <td>
136 136
      S:
137
      <input name="localized_<TMPL_VAR idx>_<TMPL_VAR language_id>" value="<TMPL_VAR localized>" size="6" maxlength="20">
137
      <input name="localized_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized) %]" size="6" maxlength="20">
138 138
      P:
139
      <input name="localized_plural_<TMPL_VAR idx>_<TMPL_VAR language_id>" value="<TMPL_VAR localized_plural>" size="6" maxlength="20">
139
      <input name="localized_plural_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized_plural) %]" size="6" maxlength="20">
140 140
     </td>
141
    </TMPL_LOOP>
141
    [% END %]
142 142
   </tr>
143 143

  
144
   <TMPL_IF NAME=__last__><input type="hidden" name="rowcount" value="<TMPL_VAR NAME=__counter__>"></TMPL_IF>
145
  </TMPL_LOOP>
144
   [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
145
  [% END %]
146 146
 </table>
147 147

  
148 148
 <input type="submit" class="submit" name="action" value="Speichern">
templates/webpages/am/edit_units_master.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3
 <TMPL_IF NAME=saved_message>
4
  <p><TMPL_VAR NAME=saved_message></p>
3
 [% IF saved_message %]
4
  <p>[% saved_message %]</p>
5 5

  
6 6
  <hr>
7
 </TMPL_IF>
7
 [% END %]
8 8

  
9
 <form method="post" action="<TMPL_VAR NAME=script ESCAPE=HTML>">
9
 <form method="post" action="[% HTML.escape(script) %]">
10 10

  
11
 <input type="hidden" name="login" value="<TMPL_VAR NAME=login ESCAPE=HTML>">
12
 <input type="hidden" name="password" value="<TMPL_VAR NAME=password ESCAPE=HTML>">
11
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
12
 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
13 13

  
14 14
 <input type="hidden" name="type" value="unit">
15
 <input type="hidden" name="unit_type" value="<TMPL_VAR NAME=unit_type ESCAPE=HTML>">
15
 <input type="hidden" name="unit_type" value="[% HTML.escape(unit_type) %]">
16 16

  
17 17
 <table width="100%">
18 18
  <tr>
19
   <th class="listtop" colspan="2"><TMPL_VAR NAME=title></th>
19
   <th class="listtop" colspan="2">[% title %]</th>
20 20
  </tr>
21 21
  <tr height="5"></tr>
22 22
 </table>
......
47 47
   <th align="right"><translate>Base unit</translate></th>
48 48
   <td>
49 49
    <select name="new_base_unit">
50
     <TMPL_LOOP NAME=NEW_BASE_UNIT_DDBOX><option <TMPL_VAR NAME=selected>><TMPL_VAR NAME=name></option></TMPL_LOOP>
50
     [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
51 51
    </select>
52 52
   </td>
53 53
  </tr>
......
56 56
   <td><input name="new_factor"></td>
57 57
  </tr>
58 58

  
59
  <TMPL_LOOP LANGUAGES>
59
  [% FOREACH language = LANGUAGES %]
60 60
   <tr>
61
    <th align="right"><TMPL_VAR description></th>
62
    <td><input name="new_localized_<TMPL_VAR id>" size="20" maxlength="20"></td>
61
    <th align="right">[% language.description %]</th>
62
    <td><input name="new_localized_[% language.id %]" size="20" maxlength="20"></td>
63 63
    <th align="right"><translate>Plural</translate></th>
64
    <td><input name="new_localized_plural_<TMPL_VAR id>" size="20" maxlength="20"></td>
64
    <td><input name="new_localized_plural_[% language.id %]" size="20" maxlength="20"></td>
65 65
   </tr>
66
  </TMPL_LOOP>
66
  [% END %]
67 67
 </table>
68 68

  
69 69
 <input type="submit" class="submit" name="action" value="<translate>Add</translate>">
......
98 98
   <th class="listheading"><translate>Unit</translate></th>
99 99
   <th class="listheading"><translate>Base unit</translate></th>
100 100
   <th class="listheading"><translate>Factor</translate></th>
101
   <TMPL_LOOP LANGUAGES>
102
    <th class="listheading"><TMPL_VAR description></th>
103
   </TMPL_LOOP>
101
   [% FOREACH language = LANGUAGES %]
102
    <th class="listheading">[% language.description %]</th>
103
   [% END %]
104 104
  </tr>
105 105

  
106
  <TMPL_LOOP NAME=UNITS>
106
  [% FOREACH row = UNITS %]
107 107
   <tr>
108
    <td width="32" align="center" valign="center"><TMPL_IF __first__><img src="image/transparent16x16.gif"><TMPL_ELSE><a href="<TMPL_VAR updownlink>&dir=up&name=<TMPL_VAR name ESCAPE=URL>"><img alt="<translate>up</translate>" src="image/up.png"></a></TMPL_IF><TMPL_IF __last__><img src="image/transparent16x16.gif"><TMPL_ELSE><a href="<TMPL_VAR updownlink>&dir=down&name=<TMPL_VAR name ESCAPE=URL>"><img alt="<translate>down</translate>" src="image/down.png"></a></TMPL_IF></td>
109
    <TMPL_IF NAME=in_use>
108
    <td width="32" align="center" valign="center">[% IF loop.first %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=up&name=[% HTML.url(row.name) %]"><img alt="<translate>up</translate>" src="image/up.png"></a>[% END %][% IF loop.last %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=down&name=[% HTML.url(row.name) %]"><img alt="<translate>down</translate>" src="image/down.png"></a>[% END %]</td>
109
    [% IF row.in_use %]
110 110
     <td>
111
      <input type="hidden" name="unchangeable_<TMPL_VAR NAME=__counter__>" value="1">
112
      <input type="hidden" name="old_name_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=name>">
111
      <input type="hidden" name="unchangeable_[% loop.count %]" value="1">
112
      <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
113 113
     </td>
114 114

  
115
     <td><TMPL_VAR NAME=name ESCAPE=HTML></td>
116
     <td><TMPL_IF NAME=base_unit><TMPL_VAR NAME=base_unit ESCAPE=HTML><TMPL_ELSE>---</TMPL_IF></td>
117
     <td><TMPL_IF NAME=base_unit><TMPL_VAR NAME=factor ESCAPE=HTML><TMPL_ELSE>---</TMPL_IF></td>
115
     <td>[% HTML.escape(row.name) %]</td>
116
     <td>[% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %]</td>
117
     <td>[% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %]</td>
118 118

  
119
     <TMPL_ELSE>
119
     [% ELSE %]
120 120

  
121
     <td align="center"><input type="checkbox" name="delete_<TMPL_VAR NAME=__counter__>"></td>
121
     <td align="center"><input type="checkbox" name="delete_[% loop.count %]"></td>
122 122
     <td>
123
      <input type="hidden" name="old_name_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=name>">
124
      <input name="name_<TMPL_VAR NAME=__counter__>" size="10" maxlength="20" value="<TMPL_VAR NAME=name>">
123
      <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
124
      <input name="name_[% loop.count %]" size="10" maxlength="20" value="[% HTML.escape(row.name) %]">
125 125
     </td>
126 126
     <td>
127
      <select name="base_unit_<TMPL_VAR NAME=__counter__>">
128
       <TMPL_LOOP NAME=BASE_UNIT_DDBOX><option <TMPL_VAR NAME=selected>><TMPL_VAR NAME=name></option></TMPL_LOOP>
127
      <select name="base_unit_[% loop.count %]">
128
       [% FOREACH option = row.BASE_UNIT_DDBOX %]<option [% option.selected %]>[% HTML.escape(option.name) %]</option>[% END %]
129 129
      </select>
130 130
     </td>
131
     <td><input name="factor_<TMPL_VAR NAME=__counter__>" size="8" value="<TMPL_VAR NAME=factor>"></td>
132
    </TMPL_IF>
131
     <td><input name="factor_[% loop.count %]" size="8" value="[% row.factor %]"></td>
132
    [% END %]
133 133

  
134
    <TMPL_LOOP UNITLANGUAGES>
134
    [% FOREACH language = row.UNITLANGUAGES %]
135 135
     <td>
136 136
      <translate>singular first char</translate>:
137
      <input name="localized_<TMPL_VAR idx>_<TMPL_VAR language_id>" value="<TMPL_VAR localized>" size="6" maxlength="20">
137
      <input name="localized_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized) %]" size="6" maxlength="20">
138 138
      <translate>plural first char</translate>:
139
      <input name="localized_plural_<TMPL_VAR idx>_<TMPL_VAR language_id>" value="<TMPL_VAR localized_plural>" size="6" maxlength="20">
139
      <input name="localized_plural_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized_plural) %]" size="6" maxlength="20">
140 140
     </td>
141
    </TMPL_LOOP>
141
    [% END %]
142 142
   </tr>
143 143

  
144
   <TMPL_IF NAME=__last__><input type="hidden" name="rowcount" value="<TMPL_VAR NAME=__counter__>"></TMPL_IF>
145
  </TMPL_LOOP>
144
   [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
145
  [% END %]
146 146
 </table>
147 147

  
148 148
 <input type="submit" class="submit" name="action" value="<translate>Save</translate>">
templates/webpages/am/list_account_details_de.html
1
 <TMPL_LOOP CA> 
2
        <table width="100%">
3

  
4
          <colgroup>
5
            <col width="10%">
6
            <col width="10%">
7
            <col width="10%">
8
            <col width="50%">
9
            <col width="10%">
10
            <col width="10%">
11
          </colgroup>
12

  
13
           <TMPL_IF __odd__>
14
           <tr class="coa_listrow1">
15
           <TMPL_ELSE>
16
           <tr class="coa_listrow0">
17
           </TMPL_IF>
18

  
19
              <td rowspan="8" class="coa_detail_emph"><TMPL_VAR id ESCAPE=HTML DEFAULT="-"></td>
20
              <td colspan="5" class="coa_detail_emph"><TMPL_VAR category ESCAPE=HTML>&nbsp;</td>
21

  
22
            </tr>                                
23
           <TMPL_IF __odd__>
24
           <tr class="coa_listrow1">
25
           <TMPL_ELSE>
26
           <tr class="coa_listrow0">
27
           </TMPL_IF>
28
              <td colspan="5" class="coa_detail_emph">
29
                <TMPL_IF link>
30
                <TMPL_VAR name="link" ESCAPE="HTML" DEFAULT="-">
31
                <TMPL_ELSE>
32
                -
33
                </TMPL_IF>
34
                </td>
35

  
36

  
37
           </tr>                                
38

  
39
           <TMPL_IF __odd__>
40
           <tr class="coa_listrow1">
41
           <TMPL_ELSE>
42
           <tr class="coa_listrow0">
43
           </TMPL_IF>
44
              <td colspan="5" class="coa_details_header">Steuerautomatik</td>
45
           </tr>
46

  
47
           <TMPL_IF __odd__>
48
           <tr class="coa_listrow1">
49
           <TMPL_ELSE>
50
           <tr class="coa_listrow0">
51
           </TMPL_IF>
52
              <td class="coa_details_header2">Steuerschl?ssel</td>
53
              <td class="coa_details_header2">Automatikkonto</td>
54
              <td class="coa_details_header2">Steuer</td>
55
              <td class="coa_details_header2">USTVA Kennz.</td>
56
              <td class="coa_details_header2">G?ltig ab</td>
57
            </tr>
58

  
59
           <TMPL_IF __odd__>
60
           <tr class="coa_listrow1">
61
           <TMPL_ELSE>
62
           <tr class="coa_listrow0">
63
           </TMPL_IF>
64
              
65
              <td class="coa_detail_emph">
66
                <TMPL_IF taxkey>
67
                <TMPL_VAR taxkey         DEFAULT="-" >
68
                <TMPL_ELSE>
69
                -
70
                </TMPL_IF>
71
              </td>
72
              <td class="coa_detail_emph">
73
                <TMPL_IF taxaccount> 
74
                <TMPL_VAR taxaccount     DEFAULT="-" >
75
                <TMPL_ELSE>
76
                -
77
                </TMPL_IF>
78
              </td>
79
              <td class="coa_detail_emph">
80
                <TMPL_IF taxdescription> 
81
                <TMPL_VAR taxdescription DEFAULT="-" >
82
                <TMPL_ELSE>
83
                -
84
                </TMPL_IF>
85
              </td>
86
              <td class="coa_detail_emph">
87
                <TMPL_IF tk_ustva> 
88
                <TMPL_VAR tk_ustva       DEFAULT="-" >
89
                <TMPL_ELSE>
90
                -
91
                </TMPL_IF>
92
              </td>
93
              <td class="coa_detail_emph">
94
                <TMPL_IF startdate> 
95
                <TMPL_VAR startdate      DEFAULT="-" >
96
                <TMPL_ELSE>
97
                -
98
                </TMPL_IF>
99
              </td>
100
           </tr>
101

  
102
           <TMPL_IF __odd__>
103
           <tr class="coa_listrow1">
104
           <TMPL_ELSE>
105
           <tr class="coa_listrow0">
106
           </TMPL_IF>
107
              <td colspan="5" class="coa_details_header">Berichte</td>
108
           </tr>
109

  
110
           <TMPL_IF __odd__>
111
           <tr class="coa_listrow1">
112
           <TMPL_ELSE>
113
           <tr class="coa_listrow0">
114
           </TMPL_IF>
115
              <td class="coa_details_header2">BWA</td>
116
              <td class="coa_details_header2">Bilanz</td>
117
              <td class="coa_details_header2">E/?R</td>
118
              <td colspan="2" class="coa_details_header2">Datevexport</td>
119
           </tr>
120
            
121
           <TMPL_IF __odd__>
122
           <tr class="coa_listrow1">
123
           <TMPL_ELSE>
124
           <tr class="coa_listrow0">
125
           </TMPL_IF>
126
              <td class="coa_detail_emph"><TMPL_VAR pos_bwa    ESCAPE=HTML DEFAULT="-"></td>
127
              <td class="coa_detail_emph"><TMPL_VAR pos_bilanz ESCAPE=HTML DEFAULT="-"></td>
128
              <td class="coa_detail_emph"><TMPL_VAR pos_eur    ESCAPE=HTML DEFAULT="-"></td>
129
              <td colspan="2" class="coa_detail_emph"><TMPL_VAR datevautomatik  ESCAPE=HTML DEFAULT="-"></td>
130
           </tr>
131
        </table>
132

  
133
</TMPL_LOOP CA>
1
[% USE HTML %] [% FOREACH row = CA %]
2
<table width="100%">
3

  
4
 <colgroup>
5
  <col width="10%">
6
  <col width="10%">
7
  <col width="10%">
8
  <col width="50%">
9
  <col width="10%">
10
  <col width="10%">
11
 </colgroup>
12

  
13
 <tr class="coa_listrow[% loop.count % 2 %]">
14
  <td rowspan="8" class="coa_detail_emph">[% IF row.id %][% HTML.escape(row.id) %][% ELSE %]-[% END %]</td>
15
  <td colspan="5" class="coa_detail_emph">[% HTML.escape(row.category) %]&nbsp;</td>
16
 </tr>
17

  
18
 <tr class="coa_listrow[% loop.count % 2 %]">
19
  <td colspan="5" class="coa_detail_emph">
20
   [% IF row.link %][% HTML.escape(row.link) %][% ELSE %]-[% END %]
21
  </td>
22
 </tr>
23

  
24
 <tr class="coa_listrow[% loop.count % 2 %]">
25
  <td colspan="5" class="coa_details_header">Steuerautomatik</td>
26
 </tr>
27

  
28
 <tr class="coa_listrow[% loop.count % 2 %]">
29
  <td class="coa_details_header2">Steuerschl?ssel</td>
30
  <td class="coa_details_header2">Automatikkonto</td>
31
  <td class="coa_details_header2">Steuer</td>
32
  <td class="coa_details_header2">USTVA Kennz.</td>
33
  <td class="coa_details_header2">G?ltig ab</td>
34
 </tr>
35

  
36
 <tr class="coa_listrow[% loop.count % 2 %]">
37
  <td class="coa_detail_emph">[% IF row.taxkey         %][% HTML.escape(row.taxkey).replace(',', '<br>')         %][% ELSE %]-[% END %]</td>
38
  <td class="coa_detail_emph">[% IF row.taxaccount     %][% HTML.escape(row.taxaccount).replace(',', '<br>')     %][% ELSE %]-[% END %]</td>
39
  <td class="coa_detail_emph">[% IF row.taxdescription %][% HTML.escape(row.taxdescription).replace(',', '<br>') %][% ELSE %]-[% END %]</td>
40
  <td class="coa_detail_emph">[% IF row.tk_ustva       %][% HTML.escape(row.tk_ustva).replace(',', '<br>')       %][% ELSE %]-[% END %]</td>
41
  <td class="coa_detail_emph">[% IF row.startdate      %][% HTML.escape(row.startdate).replace(',', '<br>')      %][% ELSE %]-[% END %]</td>
42
 </tr>
43

  
44
 <tr class="coa_listrow[% loop.count % 2 %]">
45
  <td colspan="5" class="coa_details_header">Berichte</td>
46
 </tr>
47

  
48
 <tr class="coa_listrow[% loop.count % 2 %]">
49
  <td class="coa_details_header2">BWA</td>
50
  <td class="coa_details_header2">Bilanz</td>
51
  <td class="coa_details_header2">E/?R</td>
52
  <td colspan="2" class="coa_details_header2">Datevexport</td>
53
 </tr>
54

  
55
 <tr class="coa_listrow[% loop.count % 2 %]">
56
  <td class="coa_detail_emph">[% IF row.pos_bwa    %][% HTML.escape(row.pos_bwa)    %][% ELSE %]-[% END %]</td>
57
  <td class="coa_detail_emph">[% IF row.pos_bilanz %][% HTML.escape(row.pos_bilanz) %][% ELSE %]-[% END %]</td>
58
  <td class="coa_detail_emph">[% IF row.pos_eur    %][% HTML.escape(row.pos_eur)    %][% ELSE %]-[% END %]</td>
59
  <td colspan="2" class="coa_detail_emph">[% IF row.datevautomatik %]An[% ELSE %]Aus[% END %]</td>
60
 </tr>
61
</table>
62

  
63
[% END %]
templates/webpages/am/list_account_details_master.html
1
 <TMPL_LOOP CA> 
2
        <table width="100%">
3

  
4
          <colgroup>
5
            <col width="10%">
6
            <col width="10%">
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff