');
- $r->print(&Apache::loncommon::start_data_table());
+ $r->print(&Apache::loncommon::start_data_table().&Apache::loncommon::start_data_table_header_row());
$r->print(&sequence_html_header());
+ $r->print(&Apache::loncommon::end_data_table_header_row());
foreach my $seq (@sequences) {
last if ($c->aborted);
&compute_sequence_statistics($seq);
@@ -822,7 +827,7 @@ sub output_sequence_statistics {
sub output_html_by_sequence {
my ($r) = @_;
my $c = $r->connection();
- $r->print(' '.&html_preamble());
+ $r->print(' '.&html_preamble());
#
foreach my $seq (@sequences) {
last if ($c->aborted);
@@ -926,16 +931,14 @@ sub statistics_table_header {
next if ($options =~ /no $field->{'name'}/);
next if ($field->{'selected'} ne 'yes');
$header_row .= '
';
- my $header_row_text = &mt($field->{'title'});
if (exists($field->{'sortable'}) && $field->{'sortable'} eq 'yes') {
- $header_row .=
- '{'name'}."'".
- ';document.Statistics.submit();">'.
- $header_row_text.
- '';
- } else {
- $header_row .= $header_row_text;
+ ';document.Statistics.submit();">';
+ }
+ $header_row .= &mt($field->{'title'});
+ if ($options =~ /sortable/) {
+ $header_row.= '';
}
if ($options !~ /no plots/ &&
exists($field->{'graphable'}) &&
@@ -952,13 +955,13 @@ sub statistics_table_header {
}
sub sequence_html_header {
- my $Str .= &Apache::loncommon::start_data_table_header_row();
+ my $Str .= '
';
foreach my $field (@SeqFields) {
# next if ($field->{'selected'} ne 'yes');
$Str .= '