'; $DbResult = $this->Database->select('hosts', '*', 'type=0 ORDER BY name'); while($Host = $DbResult->fetch_array()) { $DbResult2 = $this->Database->select('User','*, CONCAT(SecondName, " ", FirstName) as FullName', 'Id='.$Host['user']); $User = $DbResult2->fetch_array(); if($Host['online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; if($Host['IP'] == '') $Host['IP'] = ' '; $Output .= ''; } $Output .= '
Jméno počítačeIP adresaNaposledySprávce
'.$Host['name'].''.$Host['IP'].''.HumanDate($Host['last_online']).''.$User['FullName'].'
'; return($Output); } } $System->AddModule(new HostListPage()); $System->Modules['HostListPage']->GetOutput(); ?>