45fb81fb9c4fdb0e7e9004c514d91c5ad9dd402b
[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" onKeyUp="highlight(event)" onClick="highlight(event)">
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         <td><input name="v_customer_id" size="10" value="[% HTML.escape(v_customer_id) %]"></td>
137       [%- END %]
138      </tr>
139
140      <tr>
141       <th align="right">Kontonummer</th>
142       <td><input name="account_number" size="10" maxlength="100" value="[% HTML.escape(account_number) %]"></td>
143       <th align="right">Bankleitzahl</th>
144       <td><input name="bank_code" size="10" maxlength="100" value="[% HTML.escape(bank_code) %]"></td>
145       <th align="right">Bank</th>
146       <td><input name="bank" size="20" value="[% HTML.escape(bank) %]"></td>
147      </tr>
148
149      <tr>
150       <th align="right">IBAN</th>
151       <td><input name="iban" size="10" maxlength="100" value="[% HTML.escape(iban) %]"></td>
152       <th align="right">BIC</th>
153       <td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
154      </tr>
155
156      <tr>
157       <th align="right">Kunden-/Lieferantentyp</th>
158       <td>
159        [%- INCLUDE generic/multibox.html
160              name       = 'business',
161              DATA       = all_business,
162              show_empty = 1,
163              id_key     = 'id',
164              label_key  = 'description',
165        -%]
166       </td>
167       <th align="right">Sprache</th>
168       <td>
169        [%- INCLUDE generic/multibox.html
170              name       = 'language_id',
171              DATA       = languages,
172              show_empty = 1,
173              id_key     = 'id',
174              label_key  = 'description',
175        -%]
176       </td>
177
178       [%- IF is_customer %]
179       <th align="right">Preisgruppe</th>
180       <td>
181        [%- INCLUDE generic/multibox.html
182              name       = 'klass',
183              DATA       = all_pricegroup,
184              show_empty = 1,
185              id_key     = 'id',
186              label_key  = 'pricegroup',
187        -%]
188       </td>
189       [%- END  %]
190      </tr>
191
192      <tr>
193       <td align="right">Ungültig</td>
194       <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
195       <td align="right">Lastschrift</td>
196       <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
197      </tr>
198
199      <tr>
200       <th align="right">Steuersatz</th>
201       <td>
202        [%- INCLUDE generic/multibox.html
203              name       = 'taxzone_id',
204              DATA       = ALL_TAXZONES,
205              show_empty = 1,
206              id_key     = 'id',
207              label_key  = 'description',
208        -%]
209       </td>
210       [%- IF is_customer %]
211       <th align="right">Verkäufer/in</th>
212       <td>
213        [%- INCLUDE generic/multibox.html
214              name       = 'salesman_id',
215              DATA       = ALL_SALESMEN,
216              show_empty = 1,
217              id_key     = 'id',
218              label_sub  = 'salesman_label',
219        -%]
220       </td>
221       [%- END %]
222      </tr>
223     </table>
224
225     <table>
226      <tr>
227       <th align="left" nowrap>Bemerkungen</th>
228      </tr>
229
230      <tr>
231       <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
232      </tr>
233     </table>
234
235     <br style="clear: left" />
236    </div>
237
238    <div id="shipto" class="tabcontent">
239
240     <table width="100%">
241      <tr>
242       <th align="right">Lieferadresse</th>
243       <td>
244        [%- INCLUDE generic/multibox.html
245              name       = 'shipto_id',
246              id         = 'shipto_id',
247              DATA       = SHIPTO,
248              onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto])",
249              id_key     = 'shipto_id',
250              label_sub  = 'shipto_label',
251              label_key  = 'shipto_label',
252        -%]
253       </td>
254      </tr>
255
256      <tr>
257       <th align="right" nowrap>Firmenname</th>
258       <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
259      </tr>
260
261      <tr>
262       <th align="right" nowrap>Abteilung</th>
263       <td>
264        <input id="shiptodepartment_1" name="shiptodepartment_1" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_1) %]">
265        <input id="shiptodepartment_2" name="shiptodepartment_2" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_2) %]">
266       </td>
267      </tr>
268
269      <tr>
270       <th align="right" nowrap>Straße</th>
271       <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
272      </tr>
273
274      <tr>
275       <th align="right" nowrap>PLZ/Stadt</th>
276       <td>
277        <input id="shiptozipcode" name="shiptozipcode" size="5" maxlength="75" value="[% HTML.escape(shiptozipcode) %]">
278        <input id="shiptocity" name="shiptocity" size="30" maxlength="75" value="[% HTML.escape(shiptocity) %]">
279       </td>
280      </tr>
281
282      <tr>
283       <th align="right" nowrap>Land</th>
284       <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
285      </tr>
286
287      <tr>
288       <th align="right" nowrap>Kontakt</th>
289       <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
290      </tr>
291
292      <tr>
293       <th align="right" nowrap>Telefon</th>
294       <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
295      </tr>
296
297      <tr>
298       <th align="right" nowrap>Fax</th>
299       <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
300      </tr>
301
302      <tr>
303       <th align="right" nowrap>eMail</th>
304       <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
305      </tr>
306
307      <tr>
308       <td>&nbsp;</td>
309      </tr>
310      <tr>
311       <td>&nbsp;</td>
312      </tr>
313     </table>
314
315     <input type="submit" id="delete_shipto" name="action" value="Lieferadresse löschen" disabled>
316     <br style="clear: left" />
317    </div>
318
319    <div id="contacts" class="tabcontent">
320     <table>
321      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
322      <tr>
323       <th align="right">Ansprechpartner</th>
324       <td>
325        [%- INCLUDE generic/multibox.html
326              name       = 'cp_id',
327              id         = 'cp_id',
328              DATA       = CONTACTS,
329              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])",
330              id_key     = 'cp_id',
331              label_sub  = 'contacts_label',
332        -%]
333       </td>
334      </tr>
335
336      <tr>
337       <th align="left" nowrap>Anrede</th>
338       <td>
339        <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">&nbsp;
340         [%- INCLUDE generic/multibox.html
341               name       = 'selected_cp_greeting',
342               DATA       = MB_GREETINGS,
343               show_empty = 1,
344               id_key     = 'id',
345               label_key  = 'description',
346         -%]
347       </td>
348      </tr>
349
350      <tr>
351       <th align="left" nowrap>Titel</th>
352       <td>
353        <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
354        [%- INCLUDE generic/multibox.html
355              name       = 'selected_cp_title',
356              DATA       = MB_TITLES,
357              show_empty = 1,
358              id_key     = 'id',
359              label_key  = 'description',
360        -%]
361       </td>
362      </tr>
363
364      <tr>
365       <th align="left" nowrap>Abteilung</th>
366       <td>
367        <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
368        [%- INCLUDE generic/multibox.html
369              name       = 'selected_cp_abteilung',
370              DATA       = MB_DEPARTMENT,
371              show_empty = 1,
372              id_key     = 'id',
373              label_key  = 'description',
374        -%]
375       </td>
376      </tr>
377
378      <tr>
379       <th align="left" nowrap>Vorname</th>
380       <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
381      </tr>
382
383      <tr>
384       <th align="left" nowrap>Name</th>
385       <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
386      </tr>
387
388      <tr>
389       <th align="left" nowrap>Telefon 1 </th>
390       <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
391      </tr>
392
393      <tr>
394       <th align="left" nowrap>Telefon 2</th>
395       <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
396      </tr>
397
398      <tr>
399       <th align="left" nowrap>Fax</th>
400       <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
401      </tr>
402
403      <tr>
404       <th align="left" nowrap>Mobile 1</th>
405       <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
406      </tr>
407
408      <tr>
409       <th align="left" nowrap>Mobile 2</th>
410       <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
411      </tr>
412
413      <tr>
414       <th align="left" nowrap>Sat. Tel.</th>
415       <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
416      </tr>
417
418      <tr>
419       <th align="left" nowrap>Sat. Fax</th>
420       <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
421      </tr>
422
423      <tr>
424       <th align="left" nowrap>Projekt</th>
425       <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
426      </tr>
427
428      <tr>
429       <th align="left" nowrap>eMail</th>
430       <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
431      </tr>
432
433      <tr>
434       <th align="left" nowrap>Privates Tel.</th>
435       <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
436      </tr>
437
438      <tr>
439       <th align="left" nowrap>Private eMail</th>
440       <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
441      </tr>
442
443      <tr>
444       <th align="left" nowrap>Geburtstag</th>
445       <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
446      </tr>
447
448      <tr>
449       <td colspan="2"><hr></td>
450      </tr>
451
452      <tr>
453       <th align="left" nowrap>Bcc</th>
454       <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
455      </tr>
456     </table>
457
458     <input type="submit" id="delete_contact" name="action" value="Ansprechpartner löschen" disabled>
459     <br style="clear: left" />
460    </div>
461
462    <div id="deliveries" class="tabcontent">
463     <table>
464      <tr>
465       <th align="right">Lieferadresse</th>
466       <td>
467        [%- INCLUDE generic/multibox.html
468              name       = 'delivery_id',
469              id         = 'delivery_id',
470              DATA       = SHIPTO,
471              onChange   = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
472              id_key     = 'shipto_id',
473              label_sub  = 'shipto_label',
474        -%]
475       </td>
476      </tr>
477
478      <tr>
479       <th align="right" nowrap>Von</th>
480       <td>
481        <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
482        <input type="button" name="fromB" id="trigger_from" value="?">
483       </td>
484       <th align="right" nowrap>Bis</th>
485       <td>
486        <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
487        <input type="button" name="toB" id="trigger_to" value="?">
488       </td>
489      </tr>
490
491      <tr>
492       <td colspan="4">
493        <div id="delivery">
494        </div>
495       </td>
496      </tr>
497     </table>
498
499     <br style="clear: left" />
500    </div>
501
502    <div id="vcnotes" class="tabcontent">
503
504     [%- IF NOTES && NOTES.size %]
505     <p>
506      <table>
507       <tr>
508        <th class="listheading">Löschen</th>
509        <th class="listheading">Betreff</th>
510        <th class="listheading">Erstellt am</th>
511        <th class="listheading">Erstellt von</th>
512        <th class="listheading">Wiedervorlagedatum</th>
513        <th class="listheading">Wiedervorlage f&uuml;r</th>
514        <th class="listheading">Wiedervorlage erledigt</th>
515       </tr>
516
517       [%- FOREACH row = NOTES %]
518       <tr class="listrow[% loop.count % 2 %]">
519        <input type="hidden" name="NOTE_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
520        <td>[% UNLESS NOTE_id && (NOTE_id == row.id) %]<input type="checkbox" name="NOTE_delete_[% loop.count %]" value="1">[% END %]</td>
521        <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>
522        <td>[% HTML.escape(row.created_on) %]</td>
523        <td>[% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %]</td>
524        <td>[% HTML.escape(row.follow_up_date) %]</td>
525        <td>[% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %]</td>
526        <td>[% IF row.follow_up_date %][% IF row.follow_up_done %]Ja[% ELSE %]Nein[% END %][% END %]</td>
527       </tr>
528       [%- END %]
529
530       <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
531
532      </table>
533     </p>
534     [%- END %]
535
536     <div class="listtop">[% IF NOTE_id %]Notiz bearbeiten[% ELSE %]Notiz erfassen[% END %]</div>
537
538     <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
539     <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
540
541     <p>
542      <table>
543       <tr>
544        <td valign="right">Betreff</td>
545        <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
546       </tr>
547
548       <tr>
549        <td valign="right" align="top">Text</td>
550        <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
551       </tr>
552
553       <tr>
554        <td valign="right">Wiedervorlage am</td>
555        <td>
556         <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
557         <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
558         f&uuml;r
559         <select name="FU_created_for_user">
560          [%- FOREACH row = ALL_EMPLOYEES %]
561          <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
562           [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
563          </option>
564          [%- END %]
565         </select>
566        </td>
567       </tr>
568
569       <tr>
570        <td>&nbsp;</td>
571        <td>
572         <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
573         <label for="FU_done">Wiedervorlage erledigt</label>
574        </td>
575       </tr>
576      </table>
577     </p>
578
579     <br style="clear: left" />
580    </div>
581
582    [%- IF CUSTOM_VARIABLES.size %]
583    <div id="custom_variables" class="tabcontent">
584
585     <p>
586      <table>
587       [%- FOREACH var = CUSTOM_VARIABLES %]
588       <tr>
589        <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
590        <td valign="top">[% var.HTML_CODE %]</td>
591       </tr>
592       [%- END %]
593      </table>
594     </p>
595
596     <br style="clear: left" />
597    </div>
598    [%- END %]
599
600   </div>