Changeset 669 for trunk/Modules/Network/HostList.php
- Timestamp:
- Jul 15, 2014, 9:50:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/HostList.php
r558 r669 14 14 else $Where = ''; 15 15 $Output = '<div align="center" style="font-size: small;"><table class="WideTable">'; 16 $Output .= '<tr><th>Jméno počítače</th><th>IP adresa</th><th> Typ</th><th>Naposledy online</th><th>Správce</th></tr>';16 $Output .= '<tr><th>Jméno počítače</th><th>IP adresa</th><th>Veřejná IP</th><th>Typ</th><th>Naposledy online</th><th>Správce</th></tr>'; 17 17 $DbResult = $this->Database->query('SELECT NetworkDevice.*, User.Name as UserName, NetworkDeviceType.Name AS HostType FROM NetworkDevice '. 18 18 'LEFT JOIN Member ON Member.Id = NetworkDevice.Member '. … … 28 28 $DbResult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']); 29 29 $Interface = $DbResult2->fetch_assoc(); 30 if($Interface['ExternalIP'] == '') $Interface['ExternalIP'] = ' '; 30 31 if($Interface['LocalIP'] == '') $Interface['LocalIP'] = ' '; 31 32 if($Interface['Online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 32 33 $InterfaceName = $Device['Name']; 33 34 if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name']; 34 $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$InterfaceName.'</td><td>'.$Interface['LocalIP'].'</td><td>'.$ Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td><td style="text-align: right;">'.$Device['UserName'].'</td></tr>';35 $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$InterfaceName.'</td><td>'.$Interface['LocalIP'].'</td><td>'.$Interface['ExternalIP'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td><td style="text-align: right;">'.$Device['UserName'].'</td></tr>'; 35 36 } else 36 37 {
Note:
See TracChangeset
for help on using the changeset viewer.