1 <% include('tr-td-label.html', @_ ) %>
5 <% $opt{'prefix'} %><INPUT TYPE = "<% $opt{type} || 'text' %>"
6 NAME = "<% $opt{field} %>"
8 VALUE = "<% $value |h %>"
14 ><% $opt{'postfix'} %>
24 my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
26 my $onchange = $opt{'onchange'}
27 ? 'onChange="'. $opt{'onchange'}. '(this)"'
30 my $size = $opt{'size'}
31 ? 'SIZE="'. $opt{'size'}. '"'
34 my $maxlength = $opt{'maxlength'}
35 ? 'MAXLENGTH="'. $opt{'maxlength'}. '"'
38 $opt{'disabled'} = &{ $opt{'disabled'} }( \%opt )
39 if ref($opt{'disabled'}) eq 'CODE';
40 $opt{'disabled'} = 'DISABLED'
41 if $opt{'disabled'} && $opt{'disabled'} !~ /disabled/i; # uuh... yeah?
45 push @style, 'text-align: '. $opt{'text-align'}
46 if $opt{'text-align'};
48 push @style, 'background-color: #dddddd'
51 my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : '';
53 my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';