1 % unless ( $opt{'js_only'} ) {
3 <& tr-td-label.html, %opt &>
5 <TD <% $colspan %> <% $style %>>
11 curr_value => $curr_value,
12 onchange => $opt{field}. '_changed',
15 <& select-time-from_to.html,
17 disabled => ($curr_value eq 'Y' ? '' : 'DISABLED' )
20 % unless ( $opt{'js_only'} ) {
24 % unless ( $opt{'html_only'} || $opt{'js_only'} ) {
25 <SCRIPT TYPE="text/javascript">
27 % unless ( $opt{'html_only'} ) {
28 function <% $opt{field} %>_changed(what) {
30 <% $opt{'onchange'} %>
32 var stime_el = what.form.<% $opt{field} %>_stime;
33 var etime_el = what.form.<% $opt{field} %>_etime;
36 stime_el.disabled = false;
37 etime_el.disabled = false;
39 stime_el.disabled = true;
40 etime_el.disabled = true;
45 % unless ( $opt{'html_only'} || $opt{'js_only'} ) {
52 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
54 my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : '';
56 my $curr_value = $cgi->param($opt{'field'}); #wtf?