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