summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-td-label.html
blob: 8125541c74abfc400ea8ba3a129f297f081f6717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<TR>

  <TD ALIGN  = "right"
      VALIGN = "<% $opt{'valign'} || 'top' %>"
      STYLE  = "<% $style %>"
      ID     = "<% $opt{label_id} || $opt{id}. '_label0' %>"
  ><% $required %><% $opt{label} %></TD>

<%init>

my %opt = @_;

my $style = 'padding-top: 3px';
$style .= '; '. $opt{'cell_style'}
  if $opt{'cell_style'};

my $required = $opt{'required'} ? '<font color="#ff0000">*</font>&nbsp;' : '';

</%init>