blob: dd07d90b69a9d881c474177b7b5a55e77b337279 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<% include('tr-td-label.html', @_ ) %>
<TD BGCOLOR="#dddddd" <% $style %>><% $value %></TD>
</TR>
<% include('hidden.html', %opt ) %>
<%init>
my %opt = @_;
my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
unless ( $opt{'noescape'} ) {
#compatibility with select-table and friends
if ( $opt{'multiple'} ) {
$value = [ split(/\s*,\s*/, $value) ] if !ref $value;
$value = join('<BR>', map {encode_entities($_)} @$value);
} else {
$value = encode_entities($value)
}
}
</%init>
|