projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
httemplate
/
elements
/
tr-fixed.html
diff --git
a/httemplate/elements/tr-fixed.html
b/httemplate/elements/tr-fixed.html
index
dd07d90
..
dad8da0
100644
(file)
--- a/
httemplate/elements/tr-fixed.html
+++ b/
httemplate/elements/tr-fixed.html
@@
-1,6
+1,6
@@
<% include('tr-td-label.html', @_ ) %>
<% include('tr-td-label.html', @_ ) %>
- <TD
BGCOLOR="#dddddd" <% $style
%>><% $value %></TD>
+ <TD
<% $style %> <% $colspan
%>><% $value %></TD>
</TR>
</TR>
@@
-10,9
+10,14
@@
my %opt = @_;
my %opt = @_;
-my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
+my $style = $opt{'cell_style'}
+ ? ' STYLE="'. $opt{'cell_style'}. '" '
+ : ' STYLE="color:#666666" ';
+
+my $colspan = $opt{'colspan'} ? ' COLSPAN="'. $opt{'colspan'}. '" ' : '';
my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
my $value = $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'};
+$value = $opt{'prefix'} . $value if defined($opt{'prefix'});
unless ( $opt{'noescape'} ) {
#compatibility with select-table and friends
unless ( $opt{'noescape'} ) {
#compatibility with select-table and friends