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 %>><% $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 $value = $opt{'prefix'} . $value if defined($opt{'prefix'});
17
18 unless ( $opt{'noescape'} ) {
19   #compatibility with select-table and friends
20   if ( $opt{'multiple'} ) {
21     $value = [ split(/\s*,\s*/, $value) ] if !ref $value;
22     $value = join('<BR>', map {encode_entities($_)} @$value);
23   } else {
24     $value = encode_entities($value)
25   }
26 }
27
28 </%init>