Ignore:
Timestamp:
Oct 10, 2012, 8:28:07 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Tlačítko zrušit u formulářů.
  • Opraveno: Chyba načítání informací o uživateli pokud neměl vazbu na Member/Customer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/network/user_hosts.php

    r245 r426  
    1414    $Output = '<div align="center" style="font-size: small;"><table class="WideTable">';
    1515    $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>';
    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 = '.$this->System->Modules['User']->User['Member'].' ORDER BY NetworkDevice.Name');
     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');
    1717    while($Device = $DbResult->fetch_assoc())
    1818    {
Note: See TracChangeset for help on using the changeset viewer.