本文整理汇总了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>