Changeset 443 for trunk/network/user_hosts.php
- Timestamp:
- Oct 14, 2012, 10:10:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/network/user_hosts.php
r438 r443 13 13 14 14 $Output = '<div align="center" style="font-size: small;"><table class="WideTable">'; 15 $Output .= '<tr><th>Jméno počítače</th><th>Místní adresa</th><th>Veřejná adresa</th><th> CZFree adresa</th><th>Fyzická adresa</th><th>Typ</th><th>Naposledy online</th></tr>';15 $Output .= '<tr><th>Jméno počítače</th><th>Místní adresa</th><th>Veřejná adresa</th><th>Fyzická adresa</th><th>Typ</th><th>Naposledy online</th></tr>'; 16 16 $DbResult = $this->Database->query('SELECT NetworkDevice.*, NetworkDeviceType.Name AS HostType FROM NetworkDevice LEFT JOIN NetworkDeviceType ON NetworkDeviceType.Id = NetworkDevice.Type WHERE NetworkDevice.Used = 1 AND NetworkDevice.Member = (SELECT Customer FROM UserCustomerRel WHERE User='.$this->System->Modules['User']->User['Id'].') ORDER BY NetworkDevice.Name'); 17 17 while($Device = $DbResult->fetch_assoc()) 18 18 { 19 19 if($Device['Online'] == 1) $Style = 'color: blue;'; else $Style = ''; 20 $Output .= '<tr><td colspan=" 5" style="text-align: left; font-weight: bold; '.$Style.'">'.$Device['Name'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td></tr>';20 $Output .= '<tr><td colspan="4" style="text-align: left; font-weight: bold; '.$Style.'">'.$Device['Name'].'</td><td>'.$Device['HostType'].'</td><td style="text-align: right;">'.HumanDate($Device['LastOnline']).'</td></tr>'; 21 21 $DbResult2 = $this->Database->query('SELECT * FROM NetworkInterface WHERE Device = '.$Device['Id']); 22 22 while($Interface = $DbResult2->fetch_assoc()) … … 25 25 $InterfaceName = $Device['Name']; 26 26 if($Interface['Name'] != '') $InterfaceName .= '-'.$Interface['Name']; 27 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '.$InterfaceName.'</td><td>'.NotBlank($Interface['LocalIP']).'</td><td>'.NotBlank($Interface['ExternalIP']).'</td><td>'.NotBlank($Interface['CZFreeIP']).'</td><td>'.NotBlank($Interface['MAC']).'</td><td> </td><td> </td></tr>'; 27 $Output .= '<tr><td style="text-align: left; '.$Style.'"> '. 28 $InterfaceName.'</td><td>'.NotBlank($Interface['LocalIP']).'</td><td>'. 29 NotBlank($Interface['ExternalIP']).'</td><td>'. 30 NotBlank($Interface['MAC']).'</td><td> </td><td> </td></tr>'; 28 31 } 29 32 }
Note:
See TracChangeset
for help on using the changeset viewer.