Changeset 533 for trunk/Modules/User/UserList.php
- Timestamp:
- Apr 24, 2013, 10:10:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserList.php
r523 r533 36 36 else $User['PhoneNumber'] = ' '; 37 37 38 $DbResult2 = $this->Database->query('SELECT Name, Id FROM NetworkDevice WHERE Member = (SELECT Id FROM Member WHERE Member.ResponsibleUser = '.$User['Id'].') AND Used=1 ORDER BY Name');39 38 $Devices = array(); 40 while($Device = $DbResult2->fetch_assoc()) 39 $DbResult2 = $this->Database->query('SELECT `Id` FROM `Member` WHERE `Member`.`ResponsibleUser` = '.$User['Id']); 40 while($Member = $DbResult2->fetch_assoc()) 41 41 { 42 $Devices[] = $Device['Name']; 42 $DbResult3 = $this->Database->query('SELECT `Name`, `Id` FROM `NetworkDevice` '. 43 'WHERE `Member` = '.$Member['Id'].' AND `Used`=1 ORDER BY `Name`'); 44 while($Device = $DbResult3->fetch_assoc()) 45 { 46 $Devices[] = $Device['Name']; 47 } 43 48 } 44 49 $User['Devices'] = implode(', ', $Devices);
Note:
See TracChangeset
for help on using the changeset viewer.