Changeset 154 for www/userlist.php
- Timestamp:
- Feb 16, 2009, 7:54:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/userlist.php
r148 r154 11 11 $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>'; 12 12 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'); 14 14 while($User = $DbResult->fetch_array()) 15 15 { 16 if($User[' icq'] > 0) $ICQ = $User['icq']; else $ICQ = ' ';17 if($User[' phone'] > 0) $Phone = $User['phone']; else $Phone = ' ';16 if($User['ICQ'] > 0) $ICQ = $User['ICQ']; else $ICQ = ' '; 17 if($User['PhoneNumber'] > 0) $Phone = $User['PhoneNumber']; else $Phone = ' '; 18 18 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'); 20 20 $Hosts = ''; 21 21 while($Host = $DbResult2->fetch_array()) … … 25 25 } 26 26 if($Hosts != '') $Hosts = substr($Hosts, 0, -2); 27 $Output .= '<tr><td>'.$User[' fullname'].'</td><td>'.$User['email'].' </td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>';27 $Output .= '<tr><td>'.$User['FullName'].'</td><td>'.$User['Email'].' </td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Hosts.'</td></tr>'; 28 28 } 29 29 $Output .= '</table>';
Note:
See TracChangeset
for help on using the changeset viewer.