$jsscript = qq|
<script type="text/javascript" src="js/jquery.js"></script>
- <script type='text/javascript' src='js/jquery.autocomplete.js'></script>
<script type="text/javascript" src="js/common.js"></script>
<style type="text/css">\@import url(js/jscalendar/calendar-win2k-1.css);</style>
<script type="text/javascript" src="js/jscalendar/calendar.js"></script>
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } },
-]
-%]
</td>
</tr>
<tr>
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="vendor"]', params => { vc => 'vendor' } },
-]
-%]
</td>
</tr>
<tr>
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="customer"]', params => { vc => 'customer' } },
-]
-%]
</td>
</tr>
<tr>
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="customer"]', params => { vc => 'customer' } },
-]
-%]
</td>
</tr>
<tr>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
</td>
</tr>
[%- END %]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- IF ALL_SHIPTO.size %]
<tr>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
<input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
[%- FOREACH row = ALL_VC %]
</td>
</tr>
[%- END %]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- IF ALL_SHIPTO.size %]
<tr>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
<td colspan="3">
[%- UNLESS SHOW_VC_DROP_DOWN %]
<input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
[%- ELSE %]
<select name="[% vc %]" class="fixed_width">
<option></option>
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% vc | html %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% vc | html %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
<input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="<translate>Details (one letter abbreviation)</translate>" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
</table>
</td>
</tr>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ic.pl', column => 'description', selector => '[name^="description_"]' },
- { script => 'ic.pl', column => 'partnumber', selector => '[name^="partnumber_"]' },
-]
-%]
</table>
</td>
</tr>
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ic.pl', column => 'description', selector => '[name^="description_"]' },
- { script => 'ic.pl', column => 'partnumber', selector => '[name^="partnumber_"]' },
-]
-%]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]
show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
-]
-%]
</td>
</tr>
[%- IF ALL_DEPARTMENTS.size %]