Changeset 189 for trunk/hostlist.php


Ignore:
Timestamp:
Apr 12, 2009, 5:40:08 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Údaje uživatele jméno a příjmení bylo sloušeno do údaje Zobrazované jméno. Upraveny patřičné sloupce a odkazy ze skriptů.
  • Opraveno: Registrace nových uživatelů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hostlist.php

    r154 r189  
    1313    while($Host = $DbResult->fetch_array())
    1414    {
    15       $DbResult2 = $this->Database->select('User','*, CONCAT(SecondName, " ", FirstName) as FullName', 'Id='.$Host['user']);
    16       $User = $DbResult2->fetch_array();
     15      $DbResult2 = $this->Database->select('User','*', 'Id='.$Host['user']);
     16      $User = $DbResult2->fetch_assoc();
    1717      if($Host['online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = '';
    1818      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>';
    2020    }
    2121    $Output .= '</table></div>';
Note: See TracChangeset for help on using the changeset viewer.