Changeset 672 for trunk/Modules/User
- Timestamp:
- Jul 20, 2014, 11:28:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserList.php
r548 r672 6 6 var $ShortTitle = 'Seznam uživatelů'; 7 7 var $ParentClass = 'PagePortal'; 8 8 9 9 function Show() 10 10 { 11 11 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User`'); 12 12 $DbRow = $DbResult->fetch_row(); 13 $PageList = GetPageList($DbRow[0]); 13 $PageList = GetPageList($DbRow[0]); 14 14 15 15 $Output = $PageList['Output']; 16 16 $Output .= '<table class="WideTable" style="font-size: small;">'; 17 17 18 18 $TableColumns = array( 19 array('Name' => 'Name', 'Title' => 'Jméno'), 20 array('Name' => 'Email', 'Title' => 'E-mail'), 21 array('Name' => 'ICQ', 'Title' => 'ICQ'), 22 array('Name' => 'PhoneNumber', 'Title' => 'Telefón'), 23 array('Name' => '', 'Title' => 'Počítače'), 19 array('Name' => 'Name', 'Title' => 'Jméno'), 20 array('Name' => 'Email', 'Title' => 'E-mail'), 21 array('Name' => 'PhoneNumber', 'Title' => 'Telefón'), 22 array('Name' => '', 'Title' => 'Počítače'), 24 23 ); 25 24 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); … … 29 28 30 29 $DbResult = $this->Database->query($Query); 31 while($User = $DbResult->fetch_assoc()) 32 { 33 if($User['ICQ'] > 0) $User['ICQ'] = $User['ICQ']; 34 else $User['ICQ'] = ' '; 35 if($User['PhoneNumber'] > 0) $User['PhoneNumber'] = $User['PhoneNumber']; 30 while($User = $DbResult->fetch_assoc()) 31 { 32 if($User['PhoneNumber'] > 0) $User['PhoneNumber'] = $User['PhoneNumber']; 36 33 else $User['PhoneNumber'] = ' '; 37 34 … … 48 45 } 49 46 $User['Devices'] = implode(', ', $Devices); 50 47 51 48 $Output .= '<tr><td>'.$User['Name'].'</td>'. 52 49 '<td>'.$User['Email'].'</td>'. 53 '<td>'.$User['ICQ'].'</td>'.54 50 '<td>'.$User['PhoneNumber'].'</td>'. 55 51 '<td>'.$User['Devices'].'</td></tr>'; … … 57 53 $Output .= '</table>'; 58 54 $Output .= $PageList['Output']; 59 55 60 56 return($Output); 61 57 }
Note:
See TracChangeset
for help on using the changeset viewer.