Ignore:
Timestamp:
Apr 27, 2009, 7:25:40 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Kódování tabulek a sloupců sjednoceno na utf8_czech_ci.
  • Opraveno: Zobrazení seznamu počítačů uživatele.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/network/user_hosts.php

    r163 r195  
    1212
    1313    $Output = '<br /><table class="WideTable">
    14 <tr><th>Jméno počítače</th><th>Místní IP adresa</th><th>Veřejná IP adresa</th><th>CZFree IP adresa</th><th>Naposledy online</th><th>Fyzická adresa</th></tr>';
     14<tr><th>Jméno počítače</th><th>Typ</th></th><th>Místní IP adresa</th><th>Veřejná IP adresa</th><th>CZFree IP adresa</th><th>Naposledy online</th><th>Fyzická adresa</th></tr>';
    1515
    16     $DbResult = $this->Database->select('hosts', '*', 'type=0 AND user='.$this->System->Modules['User']->User['Member']);
     16    $DbResult = $this->Database->query('SELECT hosts.*, HostType.Name AS HostType FROM hosts LEFT JOIN HostType ON HostType.Id = hosts.type WHERE (hosts.used = 1) AND (hosts.user = '.$this->System->Modules['User']->User['Member'].') ORDER BY hosts.name');
    1717    while($Host = $DbResult->fetch_array())
    1818    {
     
    2323      if($Host['external_ip'] == '') $Host['external_ip'] = '&nbsp;';
    2424      if($Host['MAC'] == '') $Host['MAC'] = '&nbsp;';
    25       $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['IP'].'</td><td>'.$Host['external_ip'].'</td><td>'.$Host['czfree_ip'].'</td><td >'.HumanDate($Host['last_online']).'</td><td>'.$Host['MAC'].'</td></tr>';
     25      $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['HostType'].'</td><td>'.$Host['IP'].'</td><td>'.$Host['external_ip'].'</td><td>'.$Host['czfree_ip'].'</td><td >'.HumanDate($Host['last_online']).'</td><td>'.$Host['MAC'].'</td></tr>';
    2626    }
    2727    $Output .= '</table><br />';
Note: See TracChangeset for help on using the changeset viewer.