Changeset 825 for trunk/Modules/User


Ignore:
Timestamp:
Apr 16, 2016, 9:53:17 PM (9 years ago)
Author:
chronos
Message:
  • Added: Allow to independently select table page and column order. This solves a problem where going between pages with tables incorrectly set default ordering column.
Location:
trunk/Modules/User
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserList.php

    r790 r825  
    1111    $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User`');
    1212    $DbRow = $DbResult->fetch_row();
    13     $PageList = GetPageList($DbRow[0]);
     13    $PageList = GetPageList('Users', $DbRow[0]);
    1414
    1515    $Output = $PageList['Output'];
     
    2121      array('Name' => '', 'Title' => 'Počítače'),
    2222    );
    23     $Order = GetOrderTableHeader($TableColumns, 'Name', 0);
     23    $Order = GetOrderTableHeader('Users', $TableColumns, 'Name', 0);
    2424    $Output .= $Order['Output'];
    2525
  • trunk/Modules/User/UserPage.php

    r738 r825  
    2222    $DbResult = $this->Database->query('SELECT COUNT(*) FROM ('.$Query.') AS T');
    2323    $DbRow = $DbResult->fetch_row();
    24     $PageList = GetPageList($DbRow[0]);
     24    $PageList = GetPageList('Contacts', $DbRow[0]);
    2525
    2626    $Output = '<div>Kontakty</div>';
     
    3232      array('Name' => 'Value', 'Title' => 'Hodnota'),
    3333    );
    34     $Order = GetOrderTableHeader($TableColumns, 'Value', 0);
     34    $Order = GetOrderTableHeader('Contacts', $TableColumns, 'Value', 0);
    3535    $Output .= $Order['Output'];
    3636
Note: See TracChangeset for help on using the changeset viewer.