1 [% USE HTML %]<body onLoad="fokus()">
4 <th class=listtop>[% title %]</th>
9 <form method=post name="ct" action=[% script %] onKeyUp="highlight(event)" onClick="highlight(event)">
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>
23 <div class="tabcontentstyle">
25 <div id="billing" class="tabcontent">
31 <th align=right nowrap>Kundennummer</th>
32 <td><input name="customernumber" size=35 value="[% customernumber %]"></td>
34 <th align=right nowrap>Lieferantennummer</th>
35 <td><input name="vendornumber" size=35 value="[% vendornumber %]"></td>
39 <th align=right nowrap>Anrede</th>
41 <input id=greeting name=greeting size=30 value="[% greeting %]">
42 [%- INCLUDE generic/multibox.html
43 name = 'selected_company_greeting',
44 DATA = MB_COMPANY_GREETINGS,
47 label_key = 'description',
52 <th align=right nowrap>Firmenname</th>
53 <td><input name=name size=35 maxlength=75 value="[% name %]"></td>
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>
61 <th align=right nowrap>Straße</th>
62 <td><input name=street size=35 maxlength=75 value="[% street %]"></td>
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>
70 <th align=right nowrap>Land</th>
71 <td><input name=country size=35 maxlength=75 value="[% country %]"></td>
74 <th align=right nowrap>Kontakt</th>
75 <td><input name=contact size=28 maxlength=75 value="[% contact %]"></td>
78 <th align=right nowrap>Telefon</th>
79 <td><input name=phone size=30 maxlength=30 value="[% phone %]"></td>
82 <th align=right nowrap>Fax</th>
83 <td><input name=fax size=30 maxlength=30 value="[% fax %]"></td>
86 <th align=right nowrap>eMail</th>
87 <td><input name=email size=45 value="[% email %]"></td>
90 <th align=right nowrap>Homepage</th>
91 <td><input name=homepage size=45 value="[% homepage %]"></td>
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>
101 [%- INCLUDE generic/multibox.html
103 DATA = payment_terms,
106 label_key = 'description',
109 <th align=right>Rabatt</th>
110 <td><input name=discount size=4 value="[% LxERP.format_amount(discount) %]">
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>
122 <th align=right>Kundennummer</th>
123 <td><input name=v_customer_id size=10 value="[% v_customer_id %]"></td>
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>
135 <th align=right>Kunden-/Lieferantentyp</th>
137 [%- INCLUDE generic/multibox.html
142 label_key = 'description',
145 <th align=right>Sprache</th>
147 [%- INCLUDE generic/multibox.html
148 name = 'language_id',
152 label_key = 'description',
156 [%- IF is_customer %]
157 <th align=right>Preisgruppe</th>
159 [%- IF is_customer %]
160 [%- INCLUDE generic/multibox.html
162 DATA = all_pricegroup,
165 label_key = 'pricegroup',
172 <td align=right>Ungültig</td>
173 <td><input name=obsolete class=checkbox type=checkbox value=1 [% IF obsolete %]checked[% END %]></td>
176 <th align=right>Steuersatz</th>
178 [%- INCLUDE generic/multibox.html
183 label_key = 'description',
186 [%- IF is_customer %]
187 <th align="right">Verkäufer/in</th>
189 [%- INCLUDE generic/multibox.html
190 name = 'salesman_id',
194 label_sub = 'salesman_label',
202 <th align=left nowrap>Bemerkungen</th>
205 <td><textarea name=notes rows=3 cols=60 wrap=soft>[% notes %]</textarea></td>
212 <br style="clear: left" /></div>
214 <div id="shipto" class="tabcontent">
218 <th align=right>Lieferadresse</th>
220 [%- INCLUDE generic/multibox.html
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',
232 <th align=right nowrap>Firmenname</th>
233 <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="[% shiptoname %]"></td>
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>
241 <th align=right nowrap>Straße</th>
242 <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="[% shiptostreet %]"></td>
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>
250 <th align=right nowrap>Land</th>
251 <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="[% shiptocountry %]"></td>
254 <th align=right nowrap>Kontakt</th>
255 <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="[% shiptocontact %]"></td>
258 <th align=right nowrap>Telefon</th>
259 <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="[% shiptophone %]"></td>
262 <th align=right nowrap>Fax</th>
263 <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="[% shiptofax %]"></td>
266 <th align=right nowrap>eMail</th>
267 <td><input id=shiptoemail name=shiptoemail size=45 value="[% shiptoemail %]"></td>
277 <br style="clear: left" /></div>
279 <div id="contacts" class="tabcontent">
283 <input type=hidden name=cp_id value=[% cp_id %]>
286 <th align=right>Ansprechpartner</th>
288 [%- INCLUDE generic/multibox.html
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'])",
294 label_key = 'cp_name',
299 <th align=left nowrap>Anrede</th>
301 <input id=cp_greeting name=cp_greeting size=40 maxlength=75 value="[% cp_greeting %]">
302 [%- INCLUDE generic/multibox.html
303 name = 'selected_cp_greeting',
307 label_key = 'description',
312 <th align=left nowrap>Titel</th>
314 <input id=cp_title name=cp_title size=40 maxlength=75 value="[% cp_title %]">
315 [%- INCLUDE generic/multibox.html
316 name = 'selected_cp_title',
320 label_key = 'description',
325 <th align=left nowrap>Abteilung</th>
326 <td><input id=cp_abteilung name=cp_abteilung size=40 value="[% cp_abteilung %]">
327 [%- INCLUDE generic/multibox.html
328 name = 'selected_cp_abteilung',
329 DATA = MB_DEPARTMENT,
332 label_key = 'description',
337 <th align=left nowrap>Vorname</th>
338 <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% cp_givenname %]"></td>
341 <th align=left nowrap>Name</th>
342 <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% cp_name %]"></td>
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>
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>
353 <th align=left nowrap>Fax</th>
354 <td><input id=cp_fax name=cp_fax size=40 value="[% cp_fax %]"></td>
357 <th align=left nowrap>Mobile 1</th>
358 <td><input id=cp_mobile1 name=cp_mobile1 size=40 value="[% cp_mobile1 %]"></td>
361 <th align=left nowrap>Mobile 2</th>
362 <td><input id=cp_mobile2 name=cp_mobile2 size=40 value="[% cp_mobile2 %]"></td>
365 <th align=left nowrap>Sat. Tel.</th>
366 <td><input id=cp_satphone name=cp_satphone size=40 value="[% cp_satphone %]"></td>
369 <th align=left nowrap>Sat. Fax</th>
370 <td><input id=cp_satfax name=cp_satfax size=40 value="[% cp_satfax %]"></td>
373 <th align=left nowrap>Projekt</th>
374 <td><input id=cp_project name=cp_project size=40 value="[% cp_project %]"></td>
377 <th align=left nowrap>eMail</th>
378 <td><input id=cp_email name=cp_email size=40 value="[% cp_email %]"></td>
381 <th align=left nowrap>Privates Tel.</th>
382 <td><input id=cp_privatphone name=cp_privatphone size=40 value="[% cp_privatphone %]"></td>
385 <th align=left nowrap>Private eMail</th>
386 <td><input id=cp_privatemail name=cp_privatemail size=40 value="[% cp_privatemail %]"></td>
389 <th align=left nowrap>Geburtstag</th>
390 <td><input id=cp_birthday name=cp_birthday size=40 value="[% cp_birthday %]"></td>
398 <th align=right nowrap>Bcc</th>
399 <td><input name=bcc size=35 value="[% bcc %]"></td>
407 <br style="clear: left" /></div>
408 <div id="deliveries" class="tabcontent">
411 <th align=right>Lieferadresse</th>
413 [%- INCLUDE generic/multibox.html
414 name = 'delivery_id',
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',
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>
438 <br style="clear: left" /></div>
440 [%- IF CUSTOM_VARIABLES.size %]
441 <div id="custom_variables" class="tabcontent">
445 [%- FOREACH var = CUSTOM_VARIABLES %]
447 <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
448 <td valign="top">[% var.HTML_CODE %]</td>
454 <br style="clear: left" />
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" });