Ignore:
Timestamp:
Jan 17, 2024, 6:49:20 PM (11 months ago)
Author:
chronos
Message:
  • Added: Show network ports summary on IS dashboard.
File:
1 edited

Legend:

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

    r945 r962  
    884884    $Output .= '<br/>';
    885885
     886    // Ports
     887    $DbResult = $this->Database->select('NetworkPort', 'COUNT(*)', '1');
     888    $DbRow = $DbResult->fetch_row();
     889    $Output .= 'Síťových portů: <a href="'.$this->System->Link('/is/?a=list&amp;t=NetworkPort').'">'.$DbRow['0'].'</a>';
     890
     891    $DbResult = $this->Database->select('NetworkPort', 'COUNT(*)', '`Enabled`=1');
     892    $DbRow = $DbResult->fetch_row();
     893    $Output .= ' použitých: <a href="'.$this->System->Link('/is/?a=list&amp;t=NetworkPort&amp;filter=1&amp;FilterEnabled=1').'">'.$DbRow['0'].'</a>';
     894
     895    $DbResult = $this->Database->select('NetworkPort', 'COUNT(*)', '`Enabled`=1 AND `Online`=0');
     896    $DbRow = $DbResult->fetch_row();
     897    $Output .= ' nedostupných: <a href="'.$this->System->Link('/is/?a=list&amp;t=NetworkPort&amp;filter=1&amp;FilterEnabled=1&amp;FilterOnline=0').'">'.$DbRow['0'].'</a>';
     898
     899    $Output .= '<br/>';
     900
    886901    // Subnets
    887902    $DbResult = $this->Database->select('NetworkSubnet', 'COUNT(*)', '1');
Note: See TracChangeset for help on using the changeset viewer.