<tbody>
{foreach from=$objects item=entry}
<tr>
- <td class="columnID"><p class="framed">{@$entry->getUserProfile()->getAvatar()->getImageTag(32)}</p></td>
+ <td class="columnIcon"><p class="framed">{@$entry->getUserProfile()->getAvatar()->getImageTag(32)}</p></td>
<td class="columnID">{#$entry->queueID}</td>
<td class="columnText columnSubject">
<h3>
<tr>
<th class="columnMark"><label><input type="checkbox" class="jsClipboardMarkAll" /></label></th>
<th class="columnID columnUserID{if $sortField == 'userID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='UserList'}searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=userID&sortOrder={if $sortField == 'userID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
- <th class="columnTitle columnUsername{if $sortField == 'username'} active {@$sortOrder}{/if}"><a href="{link controller='UserList'}searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=username&sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.user.username{/lang}</a></th>
+ <th class="columnTitle columnUsername{if $sortField == 'username'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='UserList'}searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField=username&sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.user.username{/lang}</a></th>
{foreach from=$columnHeads key=column item=columnLanguageVariable}
<th class="column{$column|ucfirst}{if $sortField == $column} active {@$sortOrder}{/if}"><a href="{link controller='UserList'}searchID={@$searchID}&action={@$encodedAction}&pageNo={@$pageNo}&sortField={$column}&sortOrder={if $sortField == $column && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}{$columnLanguageVariable}{/lang}</a></th>
{event name='rowButtons'}
</td>
<td class="columnID columnUserID">{@$user->userID}</td>
+ <td class="columnIcon"><p class="framed">{@$user->getAvatar()->getImageTag(24)}</p></td>
<td class="columnTitle columnUsername">{if $user->editable}<a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='UserEdit' id=$user->userID}{/link}">{$user->username}</a>{else}{$user->username}{/if}</td>
{foreach from=$columnHeads key=column item=columnLanguageVariable}
use wcf\data\user\group\UserGroup;
use wcf\data\user\option\ViewableUserOption;
use wcf\data\user\User;
+use wcf\data\user\UserProfile;
use wcf\page\SortablePage;
use wcf\system\cache\builder\UserOptionCacheBuilder;
use wcf\system\clipboard\ClipboardHandler;
$userToGroups[$row['userID']][] = $row['groupID'];
}
- $sql = "SELECT option_value.*, user_table.*
+ $sql = "SELECT user_avatar.*, option_value.*, user_table.*
FROM wcf".WCF_N."_user user_table
LEFT JOIN wcf".WCF_N."_user_option_value option_value
ON (option_value.userID = user_table.userID)
+ LEFT JOIN wcf".WCF_N."_user_avatar user_avatar
+ ON (user_avatar.avatarID = user_table.avatarID)
".$conditions."
ORDER BY ".(($this->sortField != 'email' && isset($this->options[$this->sortField])) ? 'option_value.userOption'.$this->options[$this->sortField]['optionID'] : 'user_table.'.$this->sortField)." ".$this->sortOrder;
$statement = WCF::getDB()->prepareStatement($sql);
$row['bannable'] = ($accessible && WCF::getSession()->getPermission('admin.user.canBanUser') && $row['userID'] != WCF::getUser()->userID) ? 1 : 0;
$row['isMarked'] = intval(in_array($row['userID'], $this->markedUsers));
- $this->users[] = new User(null, $row);
+ $this->users[] = new UserProfile(new User(null, $row));
}
// get special columns