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