+ <div class="listtop">[% title %]</div>
+
+ <form method="post" name="ct" action="ct.pl" onKeyUp="highlight(event)" onClick="highlight(event)">
+
+ <ul id="maintab" class="shadetabs">
+ <li class="selected"><a href="#" rel="billing"><translate>Billing Address</translate></a></li>
+ <li><a href="#" rel="shipto"><translate>Shipping Address</translate></a></li>
+ <li><a href="#" rel="contacts">Ansprechpartner</a></li>
+ <li><a href="#" rel="deliveries"><translate>Lieferungen</translate></a></li>
+ <li><a href="#" rel="vcnotes"><translate>Notes</translate></a></li>
+ [%- IF CUSTOM_VARIABLES.size %]
+ <li><a href="#" rel="custom_variables"><translate>Custom Variables</translate></a></li>
+ [%- END %]
+ </ul>
+
+ <div class="tabcontentstyle">
+
+ <div id="billing" class="tabcontent">
+
+ <table width="100%">
+ <tr height="5"></tr>
+ <tr>
+ [%- IF is_customer %]
+ <th align="right" nowrap><translate>Customer Number</translate></th>
+ <td><input name="customernumber" size="35" value="[% HTML.escape(customernumber) %]"></td>
+ [%- ELSE %]
+ <th align="right" nowrap><translate>Vendor Number</translate></th>
+ <td><input name="vendornumber" size="35" value="[% HTML.escape(vendornumber) %]"></td>
+ [%- END %]
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Greeting</translate></th>
+ <td>
+ <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_company_greeting',
+ DATA = MB_COMPANY_GREETINGS,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Company Name</translate></th>
+ <td><input name="name" size="35" maxlength="75" value="[% name %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Department</translate></th>
+ <td>
+ <input name="department_1" size="16" maxlength="75" value="[% HTML.escape(department_1) %]">
+ <input name="department_2" size="16" maxlength="75" value="[% HTML.escape(department_2) %]">
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Street</translate></th>
+ <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
+ <td>
+ <input name="zipcode" size="5" maxlength="10" value="[% HTML.escape(zipcode) %]">
+ <input name="city" size="30" maxlength="75" value="[% HTML.escape(city) %]">
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Country</translate></th>
+ <td><input name="country" size="35" maxlength="75" value="[% HTML.escape(country) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Contact</translate></th>
+ <td><input name="contact" size="28" maxlength="75" value="[% HTML.escape(contact) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Phone</translate></th>
+ <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Fax</translate></th>
+ <td><input name="fax" size="30" maxlength="30" value="[% HTML.escape(fax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>E-mail</translate></th>
+ <td><input name="email" size="45" value="[% HTML.escape(email) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Homepage</translate></th>
+ <td><input name="homepage" size="45" value="[% HTML.escape(homepage) %]"></td>
+ </tr>
+ </table>
+
+ <table>
+ <tr>
+ <th align="right"><translate>Credit Limit</translate></th>
+ <td><input name="creditlimit" size="9" value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
+ <input type="hidden" name="terms" value="[% HTML.escape(terms) %]">
+ <th align="right"><translate>Payment Terms</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'payment_id',
+ DATA = payment_terms,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+
+ <th align="right"><translate>Discount</translate></th>
+ <td><input name="discount" size="4" value="[% LxERP.format_amount(discount) %]"> %</td>
+ </tr>
+
+ <tr>
+ <th align="right"><translate>Tax Number / SSN</translate></th>
+ <td><input name="taxnumber" size="20" value="[% HTML.escape(taxnumber) %]"></td>
+ <th align="right"><translate>USt-IdNr.</translate></th>
+ <td><input name="ustid" maxlength="14" size="20" value="[% HTML.escape(ustid) %]"></td>
+ [%- IF is_sustomer %]
+ <th align="right"><translate>KNr. beim Kunden</translate></th>
+ <td><input name="c_vendor_id" size="10" value="[% HTML.escape(c_vendor_id) %]"></td>
+ [%- ELSE %]
+ <th align="right"><translate>Kundennummer</translate></th>
+ <td><input name="v_customer_id" size="10" value="[% HTML.escape(v_customer_id) %]"></td>
+ [%- END %]
+ </tr>
+
+ <tr>
+ <th align="right"><translate>Account Number</translate></th>
+ <td><input name="account_number" size="10" maxlength="15" value="[% HTML.escape(account_number) %]"></td>
+ <th align="right"><translate>Bank Code Number</translate></th>
+ <td><input name="bank_code" size="10" maxlength="10" value="[% HTML.escape(bank_code) %]"></td>
+ <th align="right"><translate>Bank</translate></th>
+ <td><input name="bank" size="30" value="[% HTML.escape(bank) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right"><translate>Type of Business</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'business',
+ DATA = all_business,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ <th align="right"><translate>Language</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'language_id',
+ DATA = languages,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+
+ [%- IF is_customer %]
+ <th align="right"><translate>Preisklasse</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'klass',
+ DATA = all_pricegroup,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'pricegroup',
+ -%]
+ </td>
+ [%- END %]
+ </tr>
+
+ <tr>
+ <td align="right"><translate>Obsolete</translate></td>
+ <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
+ </tr>
+
+ <tr>
+ <th align="right"><translate>Steuersatz</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'taxzone_id',
+ DATA = ALL_TAXZONES,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ [%- IF is_customer %]
+ <th align="right"><translate>Salesman</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'salesman_id',
+ DATA = ALL_SALESMEN,
+ show_empty = 1,
+ id_key = 'id',
+ label_sub = 'salesman_label',
+ -%]
+ </td>
+ [%- END %]
+ </tr>
+ </table>
+
+ <table>
+ <tr>
+ <th align="left" nowrap><translate>Notes</translate></th>
+ </tr>
+
+ <tr>
+ <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
+ </tr>
+ </table>
+
+ <br style="clear: left" />
+ </div>
+
+ <div id="shipto" class="tabcontent">
+
+ <table width="100%">
+ <tr>
+ <th align="right"><translate>Shipping Address</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'shipto_id',
+ id = 'shipto_id',
+ DATA = SHIPTO,
+ onChange = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail'])",
+ id_key = 'shipto_id',
+ label_sub = 'shipto_label',
+ label_key = 'shipto_label',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Company Name</translate></th>
+ <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Abteilung</translate></th>
+ <td>
+ <input id="shiptodepartment_1" name="shiptodepartment_1" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_1) %]">
+ <input id="shiptodepartment_2" name="shiptodepartment_2" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_2) %]">
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Street</translate></th>
+ <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
+ <td>
+ <input id="shiptozipcode" name="shiptozipcode" size="5" maxlength="75" value="[% HTML.escape(shiptozipcode) %]">
+ <input id="shiptocity" name="shiptocity" size="30" maxlength="75" value="[% HTML.escape(shiptocity) %]">
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Country</translate></th>
+ <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Contact</translate></th>
+ <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Phone</translate></th>
+ <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>Fax</translate></th>
+ <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="right" nowrap><translate>E-mail</translate></th>
+ <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
+ </tr>
+
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ </table>
+
+ <br style="clear: left" />
+ </div>
+
+ <div id="contacts" class="tabcontent">
+ <table>
+ <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
+ <tr>
+ <th align="right"><translate>Ansprechpartner</translate></th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'cp_id',
+ id = 'cp_id',
+ DATA = CONTACTS,
+ 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'])",
+ id_key = 'cp_id',
+ label_key = 'cp_name',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Greeting</translate></th>
+ <td>
+ <input id="cp_greeting" name="cp_greeting" size="40" maxlength="75" value="[% HTML.escape(cp_greeting) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_greeting',
+ DATA = MB_GREETINGS,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Title</translate></th>
+ <td>
+ <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_title',
+ DATA = MB_TITLES,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Department</translate></th>
+ <td>
+ <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">
+ [%- INCLUDE generic/multibox.html
+ name = 'selected_cp_abteilung',
+ DATA = MB_DEPARTMENT,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Given Name</translate></th>
+ <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Name</translate></th>
+ <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Phone1</translate></th>
+ <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Phone2</translate></th>
+ <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Fax</translate></th>
+ <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Mobile1</translate></th>
+ <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Mobile2</translate></th>
+ <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Sat. Phone</translate></th>
+ <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Sat. Fax</translate></th>
+ <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Project</translate></th>
+ <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>E-mail</translate></th>
+ <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Private Phone</translate></th>
+ <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Private E-mail</translate></th>
+ <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Birthday</translate></th>
+ <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
+ </tr>
+
+ <tr>
+ <td colspan="2"><hr></td>
+ </tr>
+
+ <tr>
+ <th align="left" nowrap><translate>Bcc</translate></th>
+ <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
+ </tr>