本文整理匯總了PHP中Avatar::string方法的典型用法代碼示例。如果您正苦於以下問題:PHP Avatar::string方法的具體用法?PHP Avatar::string怎麽用?PHP Avatar::string使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Avatar
的用法示例。
在下文中一共展示了Avatar::string方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
$Avatar = $gallery->get((int) $webRecord['avatar']);
unset($gallery);
} else {
if ((int) $webRecord['avatarType'] == AVATAR_TYPE_UPLOAD) {
$Avatar = new Avatar(0, $webRecord['avatar'], 0, AVATAR_TYPE_UPLOAD);
}
}
echo '
<tr><td>ID</td><td>', $webRecord['id'], '</td></tr>
<tr><td>Display Name</td><td>', $webRecord['displayName'], '</td></tr>
<tr><td>Silver</td><td>', $webRecord['silver'], '</td></tr>
<tr><td>Gold</td><td>', $webRecord['gold'], '</td>
<tr><td>Birthday</td><td>', $webRecord['birthday'], '</td></tr>
<tr><td>Gender</td><td>', $webRecord['gender'], '</td></tr>
<tr><td>Country</td><td>', $webRecord['country'], '</td></tr>
<tr><td style="vertical-align: top">Avatar</td><td><img src="', $Avatar->type() == AVATAR_TYPE_GALLERY ? $config['BaseURL'] . '/resources/avatars/' . $Avatar->string() : $Avatar->string(), '" /></td></tr>
<tr>
<td style="vertical-align: middle">Rank</td>
<td>', $Rank->string(), ' [', $Rank->int(), ']';
//Is allowed to change users rank
if ($CURUSER->getPermissions()->isAllowed(PERMISSION_CHANGE_USER_RANK)) {
$RanksData = new RankStringData();
echo '
<div id="change-rank-cont" style="float: right">
<form method="post" action="execute.php?take=change_user_rank">
<select name="rank" id="change-rank-select" style="display: inline-block">';
foreach ($RanksData->data as $trank => $name) {
echo '<option value="', $trank, '" ', $trank == $Rank->int() ? 'selected="selected"' : '', '>', $name, '</option>';
}
echo '
</select>