Revision 1e987ead
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/ReportGenerator.pm | ||
---|---|---|
$row->{$column}->{align} = $self->{columns}->{$column}->{align} unless (defined $row->{$column}->{align});
|
||
}
|
||
|
||
foreach my $field (qw(data link)) {
|
||
foreach my $field (qw(data link link_class)) {
|
||
map { $row->{$_}->{$field} = [ $row->{$_}->{$field} ] if (ref $row->{$_}->{$field} ne 'ARRAY') } keys %{ $row };
|
||
}
|
||
}
|
||
... | ... | |
push @{ $col->{CELL_ROWS} }, {
|
||
'data' => '' . $self->html_format($col->{data}->[$i]),
|
||
'link' => $col->{link}->[$i],
|
||
link_class => $col->{link_class}->[$i],
|
||
};
|
||
}
|
||
|
templates/webpages/report_generator/html_report.html | ||
---|---|---|
[%- IF col.align %] align="[% HTML.escape(col.align) %]" style="text-align: [% HTML.escape(col.align) %]"[% END -%]
|
||
[%- IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%]
|
||
>
|
||
[%- IF col.link -%]<a class='report-generator-header-link' href="[% HTML.escape(col.link) %]">[%- END -%]
|
||
[%- IF col.link -%]<a class="[% col.link_class ? col.link_class : 'report-generator-header-link' %]" href="[% HTML.escape(col.link) %]">[%- END -%]
|
||
[%- col.text -%]
|
||
[%- IF col.show_sort_indicator -%]<img border="0" src="image/[% IF col.sort_indicator_direction %]down[% ELSE %]up[% END %].png">[%- END -%]
|
||
[%- IF col.link -%]</a>[%- END -%]
|
||
... | ... | |
[%- ELSE %]
|
||
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %]
|
||
[%- IF cell_row.data != '' %]
|
||
[%- IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]">[%- END %]
|
||
[%- IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[% END %]>[%- END %]
|
||
[%- cell_row.data %]
|
||
[%- IF cell_row.link %]</a>[%- END %]
|
||
[%- END %]
|
||
... | ... | |
|
||
</form>
|
||
[% END %]
|
||
|
Auch abrufbar als: Unified diff
ReportGenerator: class für Links angeben können