contacts can be shared among customers / "duplicate contact emails", RT#27943
[freeside.git] / httemplate / elements / tr-fixed.html
1 <% include('tr-td-label.html', @_ ) %>
2
3   <TD BGCOLOR="#dddddd" <% $style %> <% $colspan %>><% $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 $colspan = $opt{'colspan'} ? ' COLSPAN="'. $opt{'colspan'}. '" ' : '';
16
17 my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
18 $value = $opt{'prefix'} . $value if defined($opt{'prefix'});
19
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);
25   } else {
26     $value = encode_entities($value)
27   }
28 }
29
30 </%init>