Changeset 208 for trunk/userlist.php
- Timestamp:
- May 6, 2009, 8:21:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/userlist.php
r189 r208 12 12 13 13 $DbResult = $this->Database->select('User', '*', 'Login != "Anonym" ORDER BY Name'); 14 while($User = $DbResult->fetch_a rray())14 while($User = $DbResult->fetch_assoc()) 15 15 { 16 16 if($User['ICQ'] > 0) $ICQ = $User['ICQ']; else $ICQ = ' '; 17 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');20 $ Hosts = '';21 while($ Host = $DbResult2->fetch_array())19 $DbResult2 = $this->Database->query('SELECT Name, Id FROM NetworkDevice WHERE Member = (SELECT Id FROM Member WHERE Member.ResponsibleUser = '.$User['Id'].') ORDER BY Name'); 20 $Devices = array(); 21 while($Device = $DbResult2->fetch_assoc()) 22 22 { 23 $Hosts = $Hosts.$Host['name'].', '; 24 //'<img src="http://wwp.icq.com/scripts/online.dll?icq='.$Row['icq'].'&img=5">'. 23 $Devices[] = $Device['Name']; 25 24 } 26 if($Hosts != '') $Hosts = substr($Hosts, 0, -2);27 $Output .= '<tr><td>'.$User['Name'].'</td><td>'.$User['Email'].' </td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$ Hosts.'</td></tr>';25 $Devices = implode(', ', $Devices); 26 $Output .= '<tr><td>'.$User['Name'].'</td><td>'.$User['Email'].' </td><td>'.$ICQ.'</td><td>'.$Phone.'</td><td>'.$Devices.'</td></tr>'; 28 27 } 29 28 $Output .= '</table>';
Note:
See TracChangeset
for help on using the changeset viewer.