1 <% include('tr-td-label.html', @_) %>
6 SIZE = "<% $opt{'size'} || 4 %>"
7 NAME = "<% $opt{'field'} || 'freq' %>"
8 ID = "<% $opt{'id'} %>"
9 VALUE = "<% $curr_value %>"
12 <SELECT NAME = "<% $opt{'field'} || 'freq' %>_units">
13 % foreach my $freq ( keys %freq ) {
14 <OPTION VALUE="<% $freq %>"
15 <% $freq eq $units ? 'SELECTED' : '' %>
26 tie my %freq, 'Tie::IxHash',
39 my $onchange = $opt{'onchange'}
40 ? 'onChange="'. $opt{'onchange'}. '(this)"'
43 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
45 my $curr_value = $opt{'curr_value'} || $opt{'value'};
48 if ( $curr_value =~ /^(\d*)([mwdh])$/i ) {