1 <% include('tr-td-label.html', @_ ) %>
3 <TD BGCOLOR="#dddddd" <% $style %> <% $colspan %>><% $value %></TD>
7 <% include('hidden.html', %opt ) %>
13 my $style = $opt{'cell_style'} ? ' STYLE="'. $opt{'cell_style'}. '" ' : '';
15 my $colspan = $opt{'colspan'} ? ' COLSPAN="'. $opt{'colspan'}. '" ' : '';
17 my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
18 $value = $opt{'prefix'} . $value if defined($opt{'prefix'});
20 unless ( $opt{'noescape'} ) {
21 #compatibility with select-table and friends
22 if ( $opt{'multiple'} ) {
23 $value = [ split(/\s*,\s*/, $value) ] if !ref $value;
24 $value = join('<BR>', map {encode_entities($_)} @$value);
26 $value = encode_entities($value)