Changeset 825 for trunk/Modules/Network


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/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r824 r825  
    208208        'Wireless' => array('Type' => 'TNetworkInterfaceWirelessListInterface', 'Caption' => 'Bezdrátové spoje', 'Default' => ''),
    209209        'Ports' => array('Type' => 'TDevicePortListInterface', 'Caption' => 'Síťové porty', 'Default' => ''),
    210         'Latency' => array('Type' => 'TDeviceInterfaceLatencyListInterface', 'Caption' => 'Odezva sítě', 'Default' => ''),
     210        'Latency' => array('Type' => 'TDeviceInterfaceLatencyListInterface', 'Caption' => 'Síťová odezva', 'Default' => ''),
    211211      ),
    212212      'AfterInsert' => array($this, 'AfterInsertNetworkInterface'),
     
    261261    ));
    262262    $this->System->FormManager->RegisterClass('NetworkInterfaceLatency', array(
    263       'Title' => 'Sťová odezva',
     263      'Title' => 'Síťová odezva',
    264264      'Table' => 'NetworkInterfaceLatency',
     265      'DefaultSortColumn' => 'Time',
     266      'DefaultSortOrder' => 1,
    265267      'Items' => array(
    266268        'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
  • trunk/Modules/Network/Subnet.php

    r790 r825  
    1515    $DbResult = $this->Database->query('SELECT COUNT(*) FROM `NetworkSubnet`');
    1616    $DbRow = $DbResult->fetch_row();
    17     $PageList = GetPageList($DbRow[0]);
     17    $PageList = GetPageList('Subnets', $DbRow[0]);
    1818
    1919    $Output = $PageList['Output'];
     
    3030      array('Name' => 'SubjectName', 'Title' => 'Účastník'),
    3131    );
    32     $Order = GetOrderTableHeader($TableColumns, 'AddressRange', 0);
     32    $Order = GetOrderTableHeader('Subnets', $TableColumns, 'AddressRange', 0);
    3333    $Output .= $Order['Output'];
    3434
Note: See TracChangeset for help on using the changeset viewer.