[Bio] / FortyEight / Table.pm Repository:
ViewVC logotype

Diff of /FortyEight/Table.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Tue Jan 16 20:36:03 2007 UTC revision 1.3, Fri Feb 23 20:01:26 2007 UTC
# Line 201  Line 201 
201    my $group_col         = $params->{group_col}         || 0;    my $group_col         = $params->{group_col}         || 0;
202    my $enable_grouping   = $params->{enable_grouping}   || 0;    my $enable_grouping   = $params->{enable_grouping}   || 0;
203    my $sortable          = $params->{sortable}          || 0;    my $sortable          = $params->{sortable}          || 0;
204      my $sortcols          = $params->{sortcols}          || { 'all' => 1 };
205    my $column_widths     = $params->{column_widths};    my $column_widths     = $params->{column_widths};
206    unless (defined($column_widths)) {    unless (defined($column_widths)) {
207      foreach (@columns) {      foreach (@columns) {
# Line 418  Line 419 
419      }      }
420    
421      # check if colum header click should sort      # check if colum header click should sort
422      if ($sortable) {      if (($sortable) && ($sortcols->{$i} || $sortcols->{'all'})) {
423        $table .= "<td name='" . $name . "' class='table_first_row' style='" . $colwidths->[$i - 1] . "'>" . $conf_button . $order_img . $col . "&nbsp;<img src='./Html/up-arrow.gif'><img src='./Html/down-arrow.gif'></a>" . $filter . "</td>";        $table .= "<td name='" . $name . "' class='table_first_row' style='" . $colwidths->[$i - 1] . "'>" . $conf_button . $order_img . $col . "&nbsp;<img src='./Html/up-arrow.gif'><img src='./Html/down-arrow.gif'></a>" . $filter . "</td>";
424      } else {      } else {
425        $table .= "<td name='" . $name . "' class='table_first_row' style='" . $colwidths->[$i - 1] . "'>" . $conf_button . $col . $filter . "</td>";        $table .= "<td name='" . $name . "' class='table_first_row' style='" . $colwidths->[$i - 1] . "'>" . $conf_button . $col . $filter . "</td>";

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3