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