Changeset 76 for trunk/dns.cgi


Ignore:
Timestamp:
02/17/11 17:28:05 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Finalize record-list click-the-column-header-to-sort - mostly

a matter of copy-pasting the appropriate bits from the domain,
group, or user list setup, and adding a few tweaks specific
to the record list page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r72 r76  
    5757  $session->param('grpmansortby','group');
    5858  $session->param('grpmanorder','ASC');
    59   $session->param('reclistsortby','name');
     59  $session->param('reclistsortby','host');
    6060  $session->param('reclistorder','ASC');
    6161#  $session->param('filter','login');
     
    251251    $sth->execute($webvar{id});
    252252    my ($count) = ($sth->fetchrow_array);
     253
     254#  $sortby = 'host';
     255# sort/order
     256  $session->param($webvar{page}.'sortby', $webvar{sortby}) if $webvar{sortby};
     257  $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order};
     258
     259  $sortby = $session->param($webvar{page}.'sortby');
     260  $sortorder = $session->param($webvar{page}.'order');
    253261
    254262##work
     
    11091117  $filter = $session->param($webvar{page}.'filter');
    11101118
    1111 #  my @foo2 = getDomRecs($dbh,'def',1);
    1112   my $foo2 = getDomRecs($dbh,$def,$id,$perpage,$webvar{offset});
     1119  my $foo2 = getDomRecs($dbh,$def,$id,$perpage,$webvar{offset},$sortby,$sortorder);
    11131120
    11141121  my $row = 0;
Note: See TracChangeset for help on using the changeset viewer.