1 <% $opt{'prefix'} %><INPUT NAME = "<% $name %>"
4 VALUE = "<% $value |h %>"
6 <INPUT NAME = "<% $name %>_description"
7 ID = "<% $name %>_description"
9 VALUE = "<% $description %>"
11 onClick = "<% $onclick %>"><% $opt{'postfix'} %>
15 my $name = $opt{element_name} || $opt{field} || 'taxproductnum';
16 my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
17 my $description = $opt{'taxproduct_description'};
19 unless ( $description || ! $value ) {
20 my $part_pkg_taxproduct =
21 qsearchs( 'part_pkg_taxproduct', { 'taxproductnum'=> $value } );
22 $description = $part_pkg_taxproduct->description
23 if $part_pkg_taxproduct;
26 my $onclick = $opt{onclick} || "overlib( OLiframeContent('${p}/browse/part_pkg_taxproduct.cgi?_type=select&id=${name}&taxproductnum='+document.getElementById('${name}').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;";