Vergessener Lauf von locales.pl
[kivitendo-erp.git] / templates / webpages / ct / form_header_de.html
1 [% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
2
3  <div class="listtop">[% title %]</div>
4
5  <form method="post" name="ct" action="ct.pl">
6
7   <ul id="maintab" class="shadetabs">
8    <li class="selected"><a href="#" rel="billing">Rechnungsadresse</a></li>
9    <li><a href="#" rel="shipto">Lieferadresse</a></li>
10    <li><a href="#" rel="contacts">Ansprechpartner</a></li>
11    <li><a href="#" rel="deliveries">Lieferungen</a></li>
12    <li><a href="#" rel="vcnotes">Bemerkungen</a></li>
13    [%- IF CUSTOM_VARIABLES.size %]
14    <li><a href="#" rel="custom_variables">Benutzerdefinierte Variablen</a></li>
15    [%- END %]
16   </ul>
17
18   <div class="tabcontentstyle">
19
20    <div id="billing" class="tabcontent">
21
22     <table width="100%">
23      <tr height="5"></tr>
24      <tr>
25       [%- IF is_customer %]
26       <th align="right" nowrap>Kundennummer</th>
27       <td><input name="customernumber" size="35" value="[% HTML.escape(customernumber) %]"></td>
28       [%- ELSE %]
29       <th align="right" nowrap>Lieferantennummer</th>
30       <td><input name="vendornumber" size="35" value="[% HTML.escape(vendornumber) %]"></td>
31       [%- END %]
32      </tr>
33
34      <tr>
35       <th align="right" nowrap>Anrede</th>
36       <td>
37        <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">&nbsp;
38        [%- INCLUDE generic/multibox.html
39              name       = 'selected_company_greeting',
40              DATA       = MB_COMPANY_GREETINGS,
41              show_empty = 1,
42              id_key     = 'id',
43              label_key  = 'description',
44        -%]
45       </td>
46      </tr>
47
48      <tr>
49       <th align="right" nowrap>Firmenname</th>
50       <td><input name="name" size="35" maxlength="75" value="[% HTML.escape(name) %]"></td>
51      </tr>
52
53      <tr>
54       <th align="right" nowrap>Abteilung</th>
55       <td>
56        <input name="department_1" size="16" maxlength="75" value="[% HTML.escape(department_1) %]">
57        <input name="department_2" size="16" maxlength="75" value="[% HTML.escape(department_2) %]">
58       </td>
59      </tr>
60
61      <tr>
62       <th align="right" nowrap>Straße</th>
63       <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
64      </tr>
65
66      <tr>
67       <th align="right" nowrap>PLZ/Stadt</th>
68       <td>
69        <input name="zipcode" size="5" maxlength="10" value="[% HTML.escape(zipcode) %]">
70        <input name="city" size="30" maxlength="75" value="[% HTML.escape(city) %]">
71       </td>
72      </tr>
73
74      <tr>
75       <th align="right" nowrap>Land</th>
76       <td><input name="country" size="35" maxlength="75" value="[% HTML.escape(country) %]"></td>
77      </tr>
78
79      <tr>
80       <th align="right" nowrap>Kontakt</th>
81       <td><input name="contact" size="28" maxlength="75" value="[% HTML.escape(contact) %]"></td>
82      </tr>
83
84      <tr>
85       <th align="right" nowrap>Telefon</th>
86       <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
87      </tr>
88
89      <tr>
90       <th align="right" nowrap>Fax</th>
91       <td><input name="fax" size="30" maxlength="30" value="[% HTML.escape(fax) %]"></td>
92      </tr>
93
94      <tr>
95       <th align="right" nowrap>eMail</th>
96       <td><input name="email" size="45" value="[% HTML.escape(email) %]"></td>
97      </tr>
98
99      <tr>
100       <th align="right" nowrap>Homepage</th>
101       <td><input name="homepage" size="45" value="[% HTML.escape(homepage) %]"></td>
102      </tr>
103     </table>
104
105     <table>
106      <tr>
107       <th align="right">Kreditlimit</th>
108       <td><input name="creditlimit" size="9" value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
109       <input type="hidden" name="terms" value="[% HTML.escape(terms) %]">
110       <th align="right">Zahlungskonditionen</th>
111       <td>
112        [%- INCLUDE generic/multibox.html
113              name       = 'payment_id',
114              DATA       = payment_terms,
115              show_empty = 1,
116              id_key     = 'id',
117              label_key  = 'description',
118        -%]
119       </td>
120
121       <th align="right">Rabatt</th>
122       <td><input name="discount" size="4" value="[% LxERP.format_amount(discount) %]"> %</td>
123      </tr>
124
125      <tr>
126       <th align="right">Steuernummer</th>
127       <td><input name="taxnumber" size="20" value="[% HTML.escape(taxnumber) %]"></td>
128       <!-- Anm.: R&B 15.11.2008         VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein -->
129         <th align="right">USt-IdNr.</th>
130       <td><input name="ustid" maxlength="14" size="20" value="[% HTML.escape(ustid) %]"></td>
131       [%- IF is_customer %]
132       <th align="right">unsere Lieferanten-Nr. beim Kunden</th>
133       <td><input name="c_vendor_id" size="10" value="[% HTML.escape(c_vendor_id) %]"></td>
134       [%- ELSE %]
135       <th align="right">Kundennummer</th>
136       [%- END %]
137      </tr>
138
139      <tr>
140       <th align="right">Kontonummer</th>
141       <td><input name="account_number" size="10" maxlength="15" value="[% HTML.escape(account_number) %]"></td>
142       <th align="right">Bankleitzahl</th>
143       <td><input name="bank_code" size="10" maxlength="10" value="[% HTML.escape(bank_code) %]"></td>
144       <th align="right">Bank</th>
145       <td><input name="bank" size="30" value="[% HTML.escape(bank) %]"></td>
146      </tr>
147
148      <tr>
149       <th align="right">Kunden-/Lieferantentyp</th>
150       <td>
151        [%- INCLUDE generic/multibox.html
152              name       = 'business',
153              DATA       = all_business,
154              show_empty = 1,
155              id_key     = 'id',
156              label_key  = 'description',
157        -%]
158       </td>
159       <th align="right">Sprache</th>
160       <td>
161        [%- INCLUDE generic/multibox.html
162              name       = 'language_id',
163              DATA       = languages,
164              show_empty = 1,
165              id_key     = 'id',
166              label_key  = 'description',
167        -%]
168       </td>
169
170       [%- IF is_customer %]
171       <th align="right">Preisgruppe</th>
172       <td>
173        [%- INCLUDE generic/multibox.html
174              name       = 'klass',
175              DATA       = all_pricegroup,
176              show_empty = 1,
177              id_key     = 'id',
178              label_key  = 'pricegroup',
179        -%]
180       </td>
181       [%- END  %]
182      </tr>
183
184      <tr>
185       <td align="right">Ungültig</td>
186       <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
187       <td align="right">Lastschrift</td>
188       <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
189      </tr>
190
191      <tr>
192       <th align="right">Steuersatz</th>
193       <td>
194        [%- INCLUDE generic/multibox.html
195              name       = 'taxzone_id',
196              DATA       = ALL_TAXZONES,
197              show_empty = 1,
198              id_key     = 'id',
199              label_key  = 'description',
200        -%]
201       </td>
202       [%- IF is_customer %]
203       <th align="right">Verkäufer/in</th>
204       <td>
205        [%- INCLUDE generic/multibox.html
206              name       = 'salesman_id',
207              DATA       = ALL_SALESMEN,
208              show_empty = 1,
209              id_key     = 'id',
210              label_sub  = 'salesman_label',
211        -%]
212       </td>
213       [%- END %]
214      </tr>
215     </table>
216
217     <table>
218      <tr>
219       <th align="left" nowrap>Bemerkungen</th>
220      </tr>
221
222      <tr>
223       <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
224      </tr>
225     </table>
226
227     <br style="clear: left" />
228    </div>
229
230    <div id="shipto" class="tabcontent">
231
232     <table width="100%">
233      <tr>
234       <th align="right">Lieferadresse</th>
235       <td>
236        [%- INCLUDE generic/multibox.html
237              name       = 'shipto_id',
238              id         = 'shipto_id',
239              DATA       = SHIPTO,
240              onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto])",
241              id_key     = 'shipto_id',
242              label_sub  = 'shipto_label',
243              label_key  = 'shipto_label',
244        -%]
245       </td>
246      </tr>
247
248      <tr>
249       <th align="right" nowrap>Firmenname</th>
250       <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
251      </tr>
252
253      <tr>
254       <th align="right" nowrap>Abteilung</th>
255       <td>
256        <input id="shiptodepartment_1" name="shiptodepartment_1" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_1) %]">
257        <input id="shiptodepartment_2" name="shiptodepartment_2" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_2) %]">
258       </td>
259      </tr>
260
261      <tr>
262       <th align="right" nowrap>Straße</th>
263       <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
264      </tr>
265
266      <tr>
267       <th align="right" nowrap>PLZ/Stadt</th>
268       <td>
269        <input id="shiptozipcode" name="shiptozipcode" size="5" maxlength="75" value="[% HTML.escape(shiptozipcode) %]">
270        <input id="shiptocity" name="shiptocity" size="30" maxlength="75" value="[% HTML.escape(shiptocity) %]">
271       </td>
272      </tr>
273
274      <tr>
275       <th align="right" nowrap>Land</th>
276       <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
277      </tr>
278
279      <tr>
280       <th align="right" nowrap>Kontakt</th>
281       <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
282      </tr>
283
284      <tr>
285       <th align="right" nowrap>Telefon</th>
286       <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
287      </tr>
288
289      <tr>
290       <th align="right" nowrap>Fax</th>
291       <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
292      </tr>
293
294      <tr>
295       <th align="right" nowrap>eMail</th>
296       <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
297      </tr>
298
299      <tr>
300       <td>&nbsp;</td>
301      </tr>
302      <tr>
303       <td>&nbsp;</td>
304      </tr>
305     </table>
306
307     <input type="submit" id="delete_shipto" name="action" value="Lieferadresse löschen" disabled>
308     <br style="clear: left" />
309    </div>
310
311    <div id="contacts" class="tabcontent">
312     <table>
313      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
314      <tr>
315       <th align="right">Ansprechpartner</th>
316       <td>
317        [%- INCLUDE generic/multibox.html
318              name       = 'cp_id',
319              id         = 'cp_id',
320              DATA       = CONTACTS,
321              onChange   = "get_contact(['cp_id__'+this.value],['cp_name','cp_greeting','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2','cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact])",
322              id_key     = 'cp_id',
323              label_sub  = 'contacts_label',
324        -%]
325       </td>
326      </tr>
327
328      <tr>
329       <th align="left" nowrap>Anrede</th>
330       <td>
331        <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">&nbsp;
332         [%- INCLUDE generic/multibox.html
333               name       = 'selected_cp_greeting',
334               DATA       = MB_GREETINGS,
335               show_empty = 1,
336               id_key     = 'id',
337               label_key  = 'description',
338         -%]
339       </td>
340      </tr>
341
342      <tr>
343       <th align="left" nowrap>Titel</th>
344       <td>
345        <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
346        [%- INCLUDE generic/multibox.html
347              name       = 'selected_cp_title',
348              DATA       = MB_TITLES,
349              show_empty = 1,
350              id_key     = 'id',
351              label_key  = 'description',
352        -%]
353       </td>
354      </tr>
355
356      <tr>
357       <th align="left" nowrap>Abteilung</th>
358       <td>
359        <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
360        [%- INCLUDE generic/multibox.html
361              name       = 'selected_cp_abteilung',
362              DATA       = MB_DEPARTMENT,
363              show_empty = 1,
364              id_key     = 'id',
365              label_key  = 'description',
366        -%]
367       </td>
368      </tr>
369
370      <tr>
371       <th align="left" nowrap>Vorname</th>
372       <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
373      </tr>
374
375      <tr>
376       <th align="left" nowrap>Name</th>
377       <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
378      </tr>
379
380      <tr>
381       <th align="left" nowrap>Telefon 1 </th>
382       <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
383      </tr>
384
385      <tr>
386       <th align="left" nowrap>Telefon 2</th>
387       <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
388      </tr>
389
390      <tr>
391       <th align="left" nowrap>Fax</th>
392       <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
393      </tr>
394
395      <tr>
396       <th align="left" nowrap>Mobile 1</th>
397       <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
398      </tr>
399
400      <tr>
401       <th align="left" nowrap>Mobile 2</th>
402       <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
403      </tr>
404
405      <tr>
406       <th align="left" nowrap>Sat. Tel.</th>
407       <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
408      </tr>
409
410      <tr>
411       <th align="left" nowrap>Sat. Fax</th>
412       <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
413      </tr>
414
415      <tr>
416       <th align="left" nowrap>Projekt</th>
417       <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
418      </tr>
419
420      <tr>
421       <th align="left" nowrap>eMail</th>
422       <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
423      </tr>
424
425      <tr>
426       <th align="left" nowrap>Privates Tel.</th>
427       <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
428      </tr>
429
430      <tr>
431       <th align="left" nowrap>Private eMail</th>
432       <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
433      </tr>
434
435      <tr>
436       <th align="left" nowrap>Geburtstag</th>
437       <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
438      </tr>
439
440      <tr>
441       <td colspan="2"><hr></td>
442      </tr>
443
444      <tr>
445       <th align="left" nowrap>Bcc</th>
446       <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
447      </tr>
448     </table>
449
450     <input type="submit" id="delete_contact" name="action" value="Ansprechpartner löschen" disabled>
451     <br style="clear: left" />
452    </div>
453
454    <div id="deliveries" class="tabcontent">
455     <table>
456      <tr>
457       <th align="right">Lieferadresse</th>
458       <td>
459        [%- INCLUDE generic/multibox.html
460              name       = 'delivery_id',
461              id         = 'delivery_id',
462              DATA       = SHIPTO,
463              onChange   = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
464              id_key     = 'shipto_id',
465              label_sub  = 'shipto_label',
466        -%]
467       </td>
468      </tr>
469
470      <tr>
471       <th align="left" nowrap>Von</th>
472       <td>
473        <input id="from" name="from" size="10" maxlength="10" value="[% HTML.escape(from) %]">
474        <input type="button" name="fromB" id="trigger_from" value="?">
475       </td>
476       <th align="left" nowrap>Bis</th>
477       <td>
478        <input id="to" name="to" size="10" maxlength="10" value="[% HTML.escape(to) %]">
479        <input type="button" name="toB" id="trigger_to" value="?">
480       </td>
481      </tr>
482
483      <tr>
484       <td colspan="4">
485        <div id="delivery">
486        </div>
487       </td>
488      </tr>
489     </table>
490
491     <br style="clear: left" />
492    </div>
493
494    <div id="vcnotes" class="tabcontent">
495
496     [%- IF NOTES && NOTES.size %]
497     <p>
498      <table>
499       <tr>
500        <th class="listheading">Löschen</th>
501        <th class="listheading">Betreff</th>
502        <th class="listheading">Erstellt am</th>
503        <th class="listheading">Erstellt von</th>
504        <th class="listheading">Wiedervorlagedatum</th>
505        <th class="listheading">Wiedervorlage f&uuml;r</th>
506        <th class="listheading">Wiedervorlage erledigt</th>
507       </tr>
508
509       [%- FOREACH row = NOTES %]
510       <tr class="listrow[% loop.count % 2 %]">
511        <input type="hidden" name="NOTE_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
512        <td>[% UNLESS NOTE_id && (NOTE_id == row.id) %]<input type="checkbox" name="NOTE_delete_[% loop.count %]" value="1">[% END %]</td>
513        <td><a href="ct.pl?action=edit&db=[% HTML.url(db) %]&id=[% HTML.url(id) %]&edit_note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
514        <td>[% HTML.escape(row.created_on) %]</td>
515        <td>[% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %]</td>
516        <td>[% HTML.escape(row.follow_up_date) %]</td>
517        <td>[% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %]</td>
518        <td>[% IF row.follow_up_date %][% IF row.follow_up_done %]Ja[% ELSE %]Nein[% END %][% END %]</td>
519       </tr>
520       [%- END %]
521
522       <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
523
524      </table>
525     </p>
526     [%- END %]
527
528     <div class="listtop">[% IF NOTE_id %]Notiz bearbeiten[% ELSE %]Notiz erfassen[% END %]</div>
529
530     <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
531     <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
532
533     <p>
534      <table>
535       <tr>
536        <td valign="right">Betreff</td>
537        <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
538       </tr>
539
540       <tr>
541        <td valign="right" align="top">Text</td>
542        <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
543       </tr>
544
545       <tr>
546        <td valign="right">Wiedervorlage am</td>
547        <td>
548         <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
549         <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
550         f&uuml;r
551         <select name="FU_created_for_user">
552          [%- FOREACH row = ALL_EMPLOYEES %]
553          <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
554           [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
555          </option>
556          [%- END %]
557         </select>
558        </td>
559       </tr>
560
561       <tr>
562        <td>&nbsp;</td>
563        <td>
564         <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
565         <label for="FU_done">Wiedervorlage erledigt</label>
566        </td>
567       </tr>
568      </table>
569     </p>
570
571     <br style="clear: left" />
572    </div>
573
574    [%- IF CUSTOM_VARIABLES.size %]
575    <div id="custom_variables" class="tabcontent">
576
577     <p>
578      <table>
579       [%- FOREACH var = CUSTOM_VARIABLES %]
580       <tr>
581        <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
582        <td valign="top">[% var.HTML_CODE %]</td>
583       </tr>
584       [%- END %]
585      </table>
586     </p>
587
588     <br style="clear: left" />
589    </div>
590    [%- END %]
591
592   </div>