diff options
Diffstat (limited to 'httemplate/elements/tr-fixed.html')
| -rw-r--r-- | httemplate/elements/tr-fixed.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/httemplate/elements/tr-fixed.html b/httemplate/elements/tr-fixed.html new file mode 100644 index 000000000..f358343dd --- /dev/null +++ b/httemplate/elements/tr-fixed.html @@ -0,0 +1,25 @@ +<% 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'}; +#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> |
