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 <li><a href="#" rel="vcnotes">Bemerkungen</a></li>
19 [%- IF CUSTOM_VARIABLES.size %]
20 <li><a href="#" rel="custom_variables">Benutzerdefinierte Variablen</a></li>
24 <div class="tabcontentstyle">
26 <div id="billing" class="tabcontent">
32 <th align=right nowrap>Kundennummer</th>
33 <td><input name="customernumber" size=35 value="[% customernumber %]"></td>
35 <th align=right nowrap>Lieferantennummer</th>
36 <td><input name="vendornumber" size=35 value="[% vendornumber %]"></td>
40 <th align=right nowrap>Anrede</th>
42 <input id=greeting name=greeting size=30 value="[% greeting %]">
43 [%- INCLUDE generic/multibox.html
44 name = 'selected_company_greeting',
45 DATA = MB_COMPANY_GREETINGS,
48 label_key = 'description',
53 <th align=right nowrap>Firmenname</th>
54 <td><input name=name size=35 maxlength=75 value="[% name %]"></td>
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>
62 <th align=right nowrap>Straße</th>
63 <td><input name=street size=35 maxlength=75 value="[% street %]"></td>
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>
71 <th align=right nowrap>Land</th>
72 <td><input name=country size=35 maxlength=75 value="[% country %]"></td>
75 <th align=right nowrap>Kontakt</th>
76 <td><input name=contact size=28 maxlength=75 value="[% contact %]"></td>
79 <th align=right nowrap>Telefon</th>
80 <td><input name=phone size=30 maxlength=30 value="[% phone %]"></td>
83 <th align=right nowrap>Fax</th>
84 <td><input name=fax size=30 maxlength=30 value="[% fax %]"></td>
87 <th align=right nowrap>eMail</th>
88 <td><input name=email size=45 value="[% email %]"></td>
91 <th align=right nowrap>Homepage</th>
92 <td><input name=homepage size=45 value="[% homepage %]"></td>
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>
102 [%- INCLUDE generic/multibox.html
104 DATA = payment_terms,
107 label_key = 'description',
110 <th align=right>Rabatt</th>
111 <td><input name=discount size=4 value="[% LxERP.format_amount(discount) %]">
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>
123 <th align=right>Kundennummer</th>
124 <td><input name=v_customer_id size=10 value="[% v_customer_id %]"></td>
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>
136 <th align=right>Kunden-/Lieferantentyp</th>
138 [%- INCLUDE generic/multibox.html
143 label_key = 'description',
146 <th align=right>Sprache</th>
148 [%- INCLUDE generic/multibox.html
149 name = 'language_id',
153 label_key = 'description',
157 [%- IF is_customer %]
158 <th align=right>Preisgruppe</th>
160 [%- IF is_customer %]
161 [%- INCLUDE generic/multibox.html
163 DATA = all_pricegroup,
166 label_key = 'pricegroup',
173 <td align=right>Ungültig</td>
174 <td><input name=obsolete class=checkbox type=checkbox value=1 [% IF obsolete %]checked[% END %]></td>
177 <th align=right>Steuersatz</th>
179 [%- INCLUDE generic/multibox.html
184 label_key = 'description',
187 [%- IF is_customer %]
188 <th align="right">Verkäufer/in</th>
190 [%- INCLUDE generic/multibox.html
191 name = 'salesman_id',
195 label_sub = 'salesman_label',
203 <th align=left nowrap>Bemerkungen</th>
206 <td><textarea name=notes rows=3 cols=60 wrap=soft>[% notes %]</textarea></td>
213 <br style="clear: left" /></div>
215 <div id="shipto" class="tabcontent">
219 <th align=right>Lieferadresse</th>
221 [%- INCLUDE generic/multibox.html
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',
233 <th align=right nowrap>Firmenname</th>
234 <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="[% shiptoname %]"></td>
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>
242 <th align=right nowrap>Straße</th>
243 <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="[% shiptostreet %]"></td>
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>
251 <th align=right nowrap>Land</th>
252 <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="[% shiptocountry %]"></td>
255 <th align=right nowrap>Kontakt</th>
256 <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="[% shiptocontact %]"></td>
259 <th align=right nowrap>Telefon</th>
260 <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="[% shiptophone %]"></td>
263 <th align=right nowrap>Fax</th>
264 <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="[% shiptofax %]"></td>
267 <th align=right nowrap>eMail</th>
268 <td><input id=shiptoemail name=shiptoemail size=45 value="[% shiptoemail %]"></td>
278 <br style="clear: left" /></div>
280 <div id="contacts" class="tabcontent">
284 <input type=hidden name=cp_id value=[% cp_id %]>
287 <th align=right>Ansprechpartner</th>
289 [%- INCLUDE generic/multibox.html
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'])",
295 label_key = 'cp_name',
300 <th align=left nowrap>Anrede</th>
302 <input id=cp_greeting name=cp_greeting size=40 maxlength=75 value="[% cp_greeting %]">
303 [%- INCLUDE generic/multibox.html
304 name = 'selected_cp_greeting',
308 label_key = 'description',
313 <th align=left nowrap>Titel</th>
315 <input id=cp_title name=cp_title size=40 maxlength=75 value="[% cp_title %]">
316 [%- INCLUDE generic/multibox.html
317 name = 'selected_cp_title',
321 label_key = 'description',
326 <th align=left nowrap>Abteilung</th>
327 <td><input id=cp_abteilung name=cp_abteilung size=40 value="[% cp_abteilung %]">
328 [%- INCLUDE generic/multibox.html
329 name = 'selected_cp_abteilung',
330 DATA = MB_DEPARTMENT,
333 label_key = 'description',
338 <th align=left nowrap>Vorname</th>
339 <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% cp_givenname %]"></td>
342 <th align=left nowrap>Name</th>
343 <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% cp_name %]"></td>
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>
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>
354 <th align=left nowrap>Fax</th>
355 <td><input id=cp_fax name=cp_fax size=40 value="[% cp_fax %]"></td>
358 <th align=left nowrap>Mobile 1</th>
359 <td><input id=cp_mobile1 name=cp_mobile1 size=40 value="[% cp_mobile1 %]"></td>
362 <th align=left nowrap>Mobile 2</th>
363 <td><input id=cp_mobile2 name=cp_mobile2 size=40 value="[% cp_mobile2 %]"></td>
366 <th align=left nowrap>Sat. Tel.</th>
367 <td><input id=cp_satphone name=cp_satphone size=40 value="[% cp_satphone %]"></td>
370 <th align=left nowrap>Sat. Fax</th>
371 <td><input id=cp_satfax name=cp_satfax size=40 value="[% cp_satfax %]"></td>
374 <th align=left nowrap>Projekt</th>
375 <td><input id=cp_project name=cp_project size=40 value="[% cp_project %]"></td>
378 <th align=left nowrap>eMail</th>
379 <td><input id=cp_email name=cp_email size=40 value="[% cp_email %]"></td>
382 <th align=left nowrap>Privates Tel.</th>
383 <td><input id=cp_privatphone name=cp_privatphone size=40 value="[% cp_privatphone %]"></td>
386 <th align=left nowrap>Private eMail</th>
387 <td><input id=cp_privatemail name=cp_privatemail size=40 value="[% cp_privatemail %]"></td>
390 <th align=left nowrap>Geburtstag</th>
391 <td><input id=cp_birthday name=cp_birthday size=40 value="[% cp_birthday %]"></td>
399 <th align=right nowrap>Bcc</th>
400 <td><input name=bcc size=35 value="[% bcc %]"></td>
408 <br style="clear: left" /></div>
409 <div id="deliveries" class="tabcontent">
412 <th align=right>Lieferadresse</th>
414 [%- INCLUDE generic/multibox.html
415 name = 'delivery_id',
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',
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>
439 <br style="clear: left" /></div>
441 <div id="vcnotes" class="tabcontent">
443 [%- IF NOTES && NOTES.size %]
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ür</th>
453 <th class="listheading">Wiedervorlage erledigt</th>
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>
468 <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
473 <div class="listtop">[% IF NOTE_id %]Notiz bearbeiten[% ELSE %]Notiz erfassen[% END %]</div>
475 <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
476 <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
481 <td valign="right">Betreff</td>
482 <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
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>
491 <td valign="right">Wiedervorlage am</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="?">
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 %]
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>
516 <br style="clear: left" />
519 <script type="text/javascript">
521 Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
525 [%- IF CUSTOM_VARIABLES.size %]
526 <div id="custom_variables" class="tabcontent">
530 [%- FOREACH var = CUSTOM_VARIABLES %]
532 <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
533 <td valign="top">[% var.HTML_CODE %]</td>
539 <br style="clear: left" />
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" });