Changeset 154 for www/userlist.php


Ignore:
Timestamp:
Feb 16, 2009, 7:54:34 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Postupné odstraňování odkazů na tabulku users.
  • Upraveno: Některé stránky přepracovány do nového zobrazovacího systému.
  • Přidáno: Tabulka Subject rozdělena na tabulky Subject a Member. Transformační skript upraven.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/userlist.php

    r148 r154  
    1111    $Output = '<table class="WideTable" style="font-size: small;"><tr><th>Jméno uživatele</th><th>E-mail</th><th>ICQ</th><th>Telefon</th><th>Počítače</th></tr>';
    1212
    13     $DbResult = $this->Database->select('users', '*, CONCAT(second_name," ",first_name) as fullname', '1 ORDER BY fullname');
     13    $DbResult = $this->Database->select('User', '*, TRIM(CONCAT(SecondName, " ", FirstName)) as FullName', 'Name != "Anonym" ORDER BY FullName');
    1414    while($User = $DbResult->fetch_array())
    1515    {
    16       if($User['icq'] > 0) $ICQ = $User['icq']; else $ICQ = '&nbsp;';
    17       if($User['phone'] > 0) $Phone = $User['phone']; else $Phone = '&nbsp;';
     16      if($User['ICQ'] > 0) $ICQ = $User['ICQ']; else $ICQ = '&nbsp;';
     17      if($User['PhoneNumber'] > 0) $Phone = $User['PhoneNumber']; else $Phone = '&nbsp;';
    1818
    19       $DbResult2 = $this->Database->select('hosts', '*', 'user='.$User['id'].' AND block=0 ORDER BY name');
     19      $DbResult2 = $this->Database->select('hosts', '*', 'user='.$User['Id'].' AND block=0 ORDER BY name');
    2020      $Hosts = '';
    2121      while($Host = $DbResult2->fetch_array())
     
    2525      }
    2626      if($Hosts != '') $Hosts = substr($Hosts, 0, -2);
    27       $Output .= '<tr><td>'.$User['fullname'].'</td><td>'.$User['email'].'&nbsp;</td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>';
     27      $Output .= '<tr><td>'.$User['FullName'].'</td><td>'.$User['Email'].'&nbsp;</td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>';
    2828    }
    2929    $Output .= '</table>';
Note: See TracChangeset for help on using the changeset viewer.