Changeset 755 for trunk/Modules/Network/Network.php
- Timestamp:
- Oct 25, 2015, 9:51:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r739 r755 490 490 )); 491 491 492 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Network', 493 array('ModuleNetwork', 'ShowDashboardItem')); 494 } 495 496 function ShowDashboardItem() 497 { 498 $Output = ''; 499 $DbResult = $this->Database->select('NetworkDevice', 'COUNT(*)', '1'); 500 $DbRow = $DbResult->fetch_row(); 501 $Output .= 'Síťových zařízení: registrovaných:'.$DbRow['0']; 502 503 $DbResult = $this->Database->select('NetworkDevice', 'COUNT(*)', '`Used`=1'); 504 $DbRow = $DbResult->fetch_row(); 505 $Output .= ' použitých:'.$DbRow['0'].'<br>'; 506 507 $DbResult = $this->Database->select('NetworkInterface', 'COUNT(*)', '1'); 508 $DbRow = $DbResult->fetch_row(); 509 $Output .= 'Síťových rozhraní: '.$DbRow['0'].'<br>'; 510 511 $DbResult = $this->Database->select('NetworkSubnet', 'COUNT(*)', '1'); 512 $DbRow = $DbResult->fetch_row(); 513 $Output .= 'Síťových podsítí: '.$DbRow['0'].'<br/>'; 514 return $Output; 492 515 } 493 516
Note:
See TracChangeset
for help on using the changeset viewer.