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"><translate>Billing Address</translate></a></li>
 
  15 <li><a href="#" rel="shipto"><translate>Shipping Address</translate></a></li>
 
  16 <li><a href="#" rel="contacts">Ansprechpartner</a></li>
 
  17 <li><a href="#" rel="deliveries"><translate>Lieferungen</translate></a></li>
 
  18 <li><a href="#" rel="vcnotes"><translate>Notes</translate></a></li>
 
  19 [%- IF CUSTOM_VARIABLES.size %]
 
  20 <li><a href="#" rel="custom_variables"><translate>Custom Variables</translate></a></li>
 
  24 <div class="tabcontentstyle">
 
  26 <div id="billing" class="tabcontent">
 
  32           <th align=right nowrap><translate>Customer Number</translate></th>
 
  33           <td><input name="customernumber" size=35 value="[% customernumber %]"></td>
 
  35           <th align=right nowrap><translate>Vendor Number</translate></th>
 
  36           <td><input name="vendornumber" size=35 value="[% vendornumber %]"></td>
 
  40           <th align=right nowrap><translate>Greeting</translate></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><translate>Company Name</translate></th>
 
  54           <td><input name=name size=35 maxlength=75 value="[% name %]"></td>
 
  57           <th align=right nowrap><translate>Abteilung</translate></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><translate>Street</translate></th>
 
  63           <td><input name=street size=35 maxlength=75 value="[% street %]"></td>
 
  66           <th align=right nowrap><translate>Zipcode</translate>/<translate>City</translate></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><translate>Country</translate></th>
 
  72           <td><input name=country size=35 maxlength=75 value="[% country %]"></td>
 
  75           <th align=right nowrap><translate>Contact</translate></th>
 
  76           <td><input name=contact size=28 maxlength=75 value="[% contact %]"></td>
 
  79           <th align=right nowrap><translate>Phone</translate></th>
 
  80           <td><input name=phone size=30 maxlength=30 value="[% phone %]"></td>
 
  83           <th align=right nowrap><translate>Fax</translate></th>
 
  84           <td><input name=fax size=30 maxlength=30 value="[% fax %]"></td>
 
  87           <th align=right nowrap><translate>E-mail</translate></th>
 
  88           <td><input name=email size=45 value="[% email %]"></td>
 
  91           <th align=right nowrap><translate>Homepage</translate></th>
 
  92           <td><input name=homepage size=45 value="[% homepage %]"></td>
 
  97           <th align=right><translate>Credit Limit</translate></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><translate>Payment Terms</translate></th>
 
 102             [%- INCLUDE generic/multibox.html 
 
 104                   DATA       = payment_terms,
 
 107                   label_key  = 'description',
 
 110           <th align=right><translate>Discount</translate></th>
 
 111           <td><input name=discount size=4 value="[% LxERP.format_amount(discount) %]">
 
 115           <th align=right><translate>Tax Number / SSN</translate></th>
 
 116           <td><input name=taxnumber size=20 value="[% taxnumber %]"></td>
 
 117           <th align=right><translate>USt-IdNr.</translate></th>
 
 118           <td><input name="ustid" maxlength="14" size="20" value="[% ustid %]"></td>
 
 119 [%- IF is_sustomer %]
 
 120           <th align=right><translate>KNr. beim Kunden</translate></th>
 
 121           <td><input name=c_vendor_id size=10 value="[% c_vendor_id %]"></td>
 
 123           <th align=right><translate>Kundennummer</translate></th>
 
 124           <td><input name=v_customer_id size=10 value="[% v_customer_id %]"></td>
 
 128           <th align=right><translate>Account Number</translate></th>
 
 129           <td><input name="account_number" size="10" maxlength="15" value="[% account_number %]"></td>
 
 130           <th align=right><translate>Bank Code Number</translate></th>
 
 131           <td><input name="bank_code" size="10" maxlength="10" value="[% bank_code %]"></td>
 
 132           <th align=right><translate>Bank</translate></th>
 
 133           <td><input name=bank size=30 value="[% bank %]"></td>
 
 136           <th align=right><translate>Type of Business</translate></th>
 
 138             [%- INCLUDE generic/multibox.html 
 
 143                   label_key  = 'description',
 
 146           <th align=right><translate>Language</translate></th>
 
 148             [%- INCLUDE generic/multibox.html 
 
 149                   name       = 'language_id',
 
 153                   label_key  = 'description',
 
 157 [%- IF is_customer %]
 
 158           <th align=right><translate>Preisklasse</translate></th>
 
 160 [%- IF is_customer %]
 
 161             [%- INCLUDE generic/multibox.html 
 
 163                   DATA       = all_pricegroup,
 
 166                   label_key  = 'pricegroup',
 
 173           <td align=right><translate>Obsolete</translate></td>
 
 174           <td><input name=obsolete class=checkbox type=checkbox value=1 [% IF obsolete %]checked[% END %]></td>
 
 177           <th align=right><translate>Steuersatz</translate></th>
 
 179             [%- INCLUDE generic/multibox.html 
 
 184                   label_key  = 'description',
 
 187 [%- IF is_customer %]
 
 188           <th align="right"><translate>Salesman</translate></th>
 
 190             [%- INCLUDE generic/multibox.html 
 
 191                   name       = 'salesman_id',
 
 195                   label_sub  = 'salesman_label',
 
 203     <th align=left nowrap><translate>Notes</translate></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><translate>Shipping Address</translate></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><translate>Company Name</translate></th>
 
 234           <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="[% shiptoname %]"></td>
 
 237           <th align=right nowrap><translate>Abteilung</translate></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><translate>Street</translate></th>
 
 243           <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="[% shiptostreet %]"></td>
 
 246           <th align=right nowrap><translate>Zipcode</translate>/<translate>City</translate></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><translate>Country</translate></th>
 
 252           <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="[% shiptocountry %]"></td>
 
 255           <th align=right nowrap><translate>Contact</translate></th>
 
 256           <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="[% shiptocontact %]"></td>
 
 259           <th align=right nowrap><translate>Phone</translate></th>
 
 260           <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="[% shiptophone %]"></td>
 
 263           <th align=right nowrap><translate>Fax</translate></th>
 
 264           <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="[% shiptofax %]"></td>
 
 267           <th align=right nowrap><translate>E-mail</translate></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><translate>Ansprechpartner</translate></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><translate>Greeting</translate></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><translate>Title</translate></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><translate>Department</translate></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><translate>Given Name</translate></th>
 
 339                   <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% cp_givenname %]"></td>
 
 342                   <th align=left nowrap><translate>Name</translate></th>
 
 343                   <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% cp_name %]"></td>
 
 346                   <th align=left nowrap><translate>Phone1</translate></th>
 
 347                   <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% cp_phone1 %]"></td>
 
 350                   <th align=left nowrap><translate>Phone2</translate></th>
 
 351                   <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% cp_phone2 %]"></td>
 
 354                   <th align=left nowrap><translate>Fax</translate></th>
 
 355                   <td><input id=cp_fax name=cp_fax size=40 value="[% cp_fax %]"></td>
 
 358                   <th align=left nowrap><translate>Mobile1</translate></th>
 
 359                   <td><input id=cp_mobile1 name=cp_mobile1 size=40 value="[% cp_mobile1 %]"></td>
 
 362                   <th align=left nowrap><translate>Mobile2</translate></th>
 
 363                   <td><input id=cp_mobile2 name=cp_mobile2 size=40 value="[% cp_mobile2 %]"></td>
 
 366                   <th align=left nowrap><translate>Sat. Phone</translate></th>
 
 367                   <td><input id=cp_satphone name=cp_satphone size=40 value="[% cp_satphone %]"></td>
 
 370                   <th align=left nowrap><translate>Sat. Fax</translate></th>
 
 371                   <td><input id=cp_satfax name=cp_satfax size=40 value="[% cp_satfax %]"></td>
 
 374                   <th align=left nowrap><translate>Project</translate></th>
 
 375                   <td><input id=cp_project name=cp_project size=40 value="[% cp_project %]"></td>
 
 378                   <th align=left nowrap><translate>E-mail</translate></th>
 
 379                   <td><input id=cp_email name=cp_email size=40 value="[% cp_email %]"></td>
 
 382                   <th align=left nowrap><translate>Private Phone</translate></th>
 
 383                   <td><input id=cp_privatphone name=cp_privatphone size=40 value="[% cp_privatphone %]"></td>
 
 386                   <th align=left nowrap><translate>Private E-mail</translate></th>
 
 387                   <td><input id=cp_privatemail name=cp_privatemail size=40 value="[% cp_privatemail %]"></td>
 
 390                   <th align=left nowrap><translate>Birthday</translate></th>
 
 391                   <td><input id=cp_birthday name=cp_birthday size=40 value="[% cp_birthday %]"></td>
 
 399             <th align=right nowrap><translate>Bcc</translate></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><translate>Shipping Address</translate></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><translate>From</translate></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><translate>To (time)</translate></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"><translate>Delete</translate></th>
 
 448     <th class="listheading"><translate>Subject</translate></th>
 
 449     <th class="listheading"><translate>Created on</translate></th>
 
 450     <th class="listheading"><translate>Created by</translate></th>
 
 451     <th class="listheading"><translate>Follow-Up Date</translate></th>
 
 452     <th class="listheading"><translate>Follow-Up for</translate></th>
 
 453     <th class="listheading"><translate>Follow-Up done</translate></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 %]<translate>Yes</translate>[% ELSE %]<translate>No</translate>[% END %][% END %]</td>
 
 468    <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
 
 473  <div class="listtop">[% IF NOTE_id %]<translate>Edit note</translate>[% ELSE %]<translate>Add note</translate>[% 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"><translate>Subject</translate></td>
 
 482     <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
 
 486     <td valign="right" align="top"><translate>Body</translate></td>
 
 487     <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
 
 491     <td valign="right"><translate>Follow-Up On</translate></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      <translate>for</translate>
 
 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"><translate>Follow-Up done</translate></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" });