本文整理汇总了PHP中member::avatar方法的典型用法代码示例。如果您正苦于以下问题:PHP member::avatar方法的具体用法?PHP member::avatar怎么用?PHP member::avatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::avatar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strstr
</div>
</div>
</div>
</div>
</div>
<div class="pfoot">
<p><b>-</b></p>
</div>
</div>
<script type="text/javascript">
var userID = <?php
echo member::$uId;
?>
;
var isDefault = <?php
echo strstr(member::avatar(24), 'avatar_') ? 'true' : 'false';
?>
;
function updateAvatar() {
if (isDefault) {
alert("更换头像成功!");
window.location.reload();
return;
}else{
//$('#successmsg').show();
var a = $('#mybigavatar');
var a1 = $("#myavatar");
var a2 = $("#mysmallAvatar");
a1.attr('src',a1.attr('src') + "?r=" + Math.random());
a.attr('src',a.attr('src') + "?r=" + Math.random());
a2.attr('src',a2.attr('src') + "?r=" + Math.random());
示例2: get_date
</div>
</div>
</div>
</div>
<div class="pwrap accountinfo">
<div class="phead">
<div class="phead-inner">
<div class="phead-inner">
<h3 class="ptitle"><span>帐号信息</span></h3>
</div>
</div>
</div>
<div class="pbody">
<div class="clearfix accountinfo-dock">
<div class="account-avatar"> <a href="index.php?do=avatar" title="更改头像"> <img src="<?php
echo member::avatar(48);
?>
" alt="" width="48" height="48" /> <span class="avatar-change">更改头像</span> </a> </div>
<div class="account-quicktools"> <a class="article-publish" href="index.php?mo=article&do=add" title="发布文章">发布文章</a> </div>
<div class="account-uesrinfo"> <span class="account-name"><?php
echo member::$Rs->nickname;
?>
</span> <span class="account-id">ID: <?php
echo member::$uId;
?>
</span></div>
<div class="account-baseinfo"> <span>E-mail: <?php
echo member::$Rs->username;
?>
</span> <span>注册时间: <?php
echo get_date(member::$Rs->regtime, 'Y-m-d');
示例3: function
echo '<li><a href="' . ($val['mode'] == 0 ? '../' : '') . $val['url'] . '"><span>' . $val['name'] . '</span></a></li>';
}
?>
</ul>
</div>
<div class="userbar"> <a class="username item-expand" id="top_link_center" href="./index.php"><span><?php
echo member::$Rs->nickname;
?>
</span></a> <a href="javascript:iCMS.logout();">退出</a> </div>
</div>
</div>
<div class="dropdownmenu-wrap menu-setting" id="centerpopup" style="display:none;">
<div class="dropdownmenu">
<div class="clearfix dropdownmenu-inner">
<div class="clearfix menu-setting-account"> <a class="avatar" href="./index.php?do=avatar"><img src="<?php
echo member::avatar();
?>
" alt="" /></a> <a class="avatar" href="./index.php?do=avatar">上传新头像</a> </div>
<ul class="clearfix menu-setting-list">
<li><a href="./index.php?do=setting">修改资料</a></li>
<li><a href="./index.php?do=avatar">设置头像</a></li>
<li><a href="./index.php?do=changepassword">修改密码</a></li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
var timeOutID = null;
var hidedropDown = function(){
$("#centerpopup").hide();
$("#top_link_center").removeClass('hover');