Changeset 189 for trunk/hostlist.php
- Timestamp:
- Apr 12, 2009, 5:40:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hostlist.php
r154 r189 13 13 while($Host = $DbResult->fetch_array()) 14 14 { 15 $DbResult2 = $this->Database->select('User','* , CONCAT(SecondName, " ", FirstName) as FullName', 'Id='.$Host['user']);16 $User = $DbResult2->fetch_a rray();15 $DbResult2 = $this->Database->select('User','*', 'Id='.$Host['user']); 16 $User = $DbResult2->fetch_assoc(); 17 17 if($Host['online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = ''; 18 18 if($Host['IP'] == '') $Host['IP'] = ' '; 19 $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['IP'].'</td><td style="text-align: right;">'.HumanDate($Host['last_online']).'</td><td style="text-align: right;">'.$User[' FullName'].'</td></tr>';19 $Output .= '<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['IP'].'</td><td style="text-align: right;">'.HumanDate($Host['last_online']).'</td><td style="text-align: right;">'.$User['Name'].'</td></tr>'; 20 20 } 21 21 $Output .= '</table></div>';
Note:
See TracChangeset
for help on using the changeset viewer.