本文整理匯總了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');