Changeset 195 for trunk/network/user_hosts.php
- Timestamp:
- Apr 27, 2009, 7:25:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/network/user_hosts.php
r163 r195 12 12 13 13 $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>'; 15 15 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'); 17 17 while($Host = $DbResult->fetch_array()) 18 18 { … … 23 23 if($Host['external_ip'] == '') $Host['external_ip'] = ' '; 24 24 if($Host['MAC'] == '') $Host['MAC'] = ' '; 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>'; 26 26 } 27 27 $Output .= '</table><br />';
Note:
See TracChangeset
for help on using the changeset viewer.