Changeset 524 for trunk/Modules/Network
- Timestamp:
- Apr 20, 2013, 8:51:15 PM (12 years ago)
- Location:
- trunk/Modules/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Administration.php
r519 r524 13 13 function Show() 14 14 { 15 if(!$this->System-> Modules['User']->CheckPermission('Network', 'Administration')) return('Nemáte oprávnění');15 if(!$this->System->User->CheckPermission('Network', 'Administration')) return('Nemáte oprávnění'); 16 16 $Output = ''; 17 17 if(array_key_exists('Action', $_GET)) -
trunk/Modules/Network/UserHosts.php
r519 r524 17 17 $Output = '<div align="center" style="font-size: small;"><table class="WideTable">'; 18 18 $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>'; 19 $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');19 $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->User->User['Id'].') ORDER BY NetworkDevice.Name'); 20 20 while($Device = $DbResult->fetch_assoc()) 21 21 {
Note:
See TracChangeset
for help on using the changeset viewer.