Changeset 154 for www/hostlist.php
- Timestamp:
- Feb 16, 2009, 7:54:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/hostlist.php
r148 r154 13 13 while($Host = $DbResult->fetch_array()) 14 14 { 15 $DbResult2 = $this->Database->select(' users','*, CONCAT(second_name," ",first_name) as fullname','id='.$Host['user']);15 $DbResult2 = $this->Database->select('User','*, CONCAT(SecondName, " ", FirstName) as FullName', 'Id='.$Host['user']); 16 16 $User = $DbResult2->fetch_array(); 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['FullName'].'</td></tr>'; 20 20 } 21 21 $Output .= '</table></div>';
Note:
See TracChangeset
for help on using the changeset viewer.