- push @lines, "\t<thead>","\t\t<tr>",
- (map {
- "\t\t\t<th>".
- htmlize($params{page}, $params{destpage}, $_).
- "</th>"
- } @$header),
- "\t\t</tr>", "\t</thead>" if defined $header;
- push @lines, "\t<tbody>";
- foreach my $record (@data) {
- push @lines, "\t\t<tr>",
- (map {
- "\t\t\t<td>".
- htmlize($params{page}, $params{destpage}, $_).
- "</td>"
- } @$record),
- "\t\t</tr>";
- }
+ push @lines, "\t<thead>",
+ genrow(\%params, "th", @$header),
+ "\t</thead>" if defined $header;
+ push @lines, "\t<tbody>" if defined $header;
+ push @lines, genrow(\%params, "td", @$_) foreach @data;