当前位置: 首页>>代码示例>>PHP>>正文


PHP getMemberAvatar函数代码示例

本文整理汇总了PHP中getMemberAvatar函数的典型用法代码示例。如果您正苦于以下问题:PHP getMemberAvatar函数的具体用法?PHP getMemberAvatar怎么用?PHP getMemberAvatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getMemberAvatar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getUserInfoOp

 /**
  * 获取用户信息
  */
 public function getUserInfoOp()
 {
     $member_info = array();
     $team_member_info = Model('mz_member')->getMemberInfo(array('member_id' => $this->member_info['member_id']));
     // $member_info = $this->member_info;
     $member_info['member_avatar'] = getMemberAvatar($this->member_info['member_avatar']);
     $member_info['team_id'] = $team_member_info['team_id'];
     if ($team_member_info['team_id'] > 0) {
         $month_income = Model("mz_statistical")->where(array('stat_time' => date("Y-m"), 'stat_team_id' => $team_member_info['team_id']))->get_field("stat_amount");
         $member_info['month_income'] = empty($month_income) ? 0 : $month_income;
     }
     $member_info['member_points'] = $team_member_info['integral'];
     $member_info['member_grade_info'] = $this->getMemberGrade($team_member_info['integral']);
     $member_info['member_name'] = $this->member_info['member_name'];
     $member_info['available_rc_balance'] = $this->member_info['available_rc_balance'];
     $member_info['available_predeposit'] = $this->member_info['available_predeposit'];
     $member_info['member_sex'] = $this->member_info['member_sex'];
     $member_info['member_birthday'] = $this->member_info['member_birthday'];
     $member_info['member_email_bind'] = $this->member_info['member_email_bind'];
     $member_info['member_email'] = encryptShow($this->member_info['member_email'], 4, 4);
     $member_info['member_mobile_bind'] = $this->member_info['member_mobile_bind'];
     $member_info['member_mobile'] = encryptShow($this->member_info['member_mobile'], 4, 4);
     $member_info['member_idcard_bind'] = empty($this->member_info['member_truename']) || empty($this->member_info['member_idnum']) ? false : true;
     $member_info['member_truename'] = encryptShow($this->member_info['member_truename'], 2, 2);
     $member_info['member_idnum'] = encryptShow($this->member_info['member_idnum'], 7, 8);
     output_data(array('data' => $member_info));
 }
开发者ID:sdjncjc,项目名称:meizhan,代码行数:30,代码来源:mz_member.php

示例2: getUserTeamOp

 /**
  * 获取小组用户信息
  * @return [type] [description]
  */
 public function getUserTeamOp()
 {
     $member_info = array();
     $member_info['mz_integral'] = $this->member_info['mz_integral'];
     $member_info['member_avatar'] = getMemberAvatar($this->member_info['member_avatar']);
     $member_info['member_type'] = $this->member_info['member_type'];
     $member_info['member_type'] = $this->member_info['member_type'];
     $member_info['team_info'] = $this->member_info['team_info'];
     output_data(array('data' => $member_info));
 }
开发者ID:sdjncjc,项目名称:meizhan,代码行数:14,代码来源:mz_team.php

示例3: getChatHtml

    public static function getChatHtml($layout)
    {
        $web_html = '';
        if ($layout != 'layout/msg_layout.php') {
            $config_file = BASE_ROOT_PATH . DS . 'chat' . DS . 'config' . DS . "config.ini.php";
            require_once $config_file;
            $avatar = getMemberAvatar($_SESSION['avatar']);
            $nchash = getNchash();
            $formhash = Security::getTokenValue();
            $css_url = CHAT_TEMPLATES_URL;
            $app_url = APP_SITE_URL;
            $chat_url = CHAT_SITE_URL;
            $node_url = NODE_SITE_URL;
            $shop_url = SHOP_SITE_URL;
            $web_html = <<<EOT
\t\t\t\t\t<link href="{$css_url}/css/chat.css" rel="stylesheet" type="text/css">
\t\t\t\t\t<link href="{$css_url}/css/home_login.css" rel="stylesheet" type="text/css">
\t\t\t\t\t<div style="clear: both;"></div>
\t\t\t\t\t<div id="web_chat_dialog" style="display: none;float:right;">
\t\t\t\t\t</div>
\t\t\t\t\t<a id="chat_login" href="javascript:void(0)" style="display: none;"></a> 
\t\t\t\t\t<script type="text/javascript">
\t\t\t\t\tvar APP_SITE_URL = '{$app_url}';
\t\t\t\t\tvar CHAT_SITE_URL = '{$chat_url}';
\t\t\t\t\tvar SHOP_SITE_URL = '{$shop_url}';
\t\t\t\t\tvar connect_url = "{$node_url}";
\t\t\t\t\t
\t\t\t\t\tvar layout = "{$layout}";
\t\t\t\t\tvar act_op = "{$_GET['act']}_{$_GET['op']}";
\t\t\t\t\tvar user = {};
\t\t\t\t\t
\t\t\t\t\tuser['u_id'] = "{$_SESSION['member_id']}";
\t\t\t\t\tuser['u_name'] = "{$_SESSION['member_name']}";
\t\t\t\t\tuser['s_id'] = "{$_SESSION['store_id']}";
\t\t\t\t\tuser['s_name'] = "{$_SESSION['store_name']}";
\t\t\t\t\tuser['avatar'] = "{$avatar}";
\t\t\t\t\t
\t\t\t\t\t\$("#chat_login").nc_login({
\t\t\t\t\t  action:'/index.php?act=login',
\t\t\t\t\t  nchash:'{$nchash}',
\t\t\t\t\t  formhash:'{$formhash}'
\t\t\t\t\t});
\t\t\t\t\t</script>
EOT;
            if (defined('APP_ID') && APP_ID != 'shop') {
                $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/perfect-scrollbar.min.js"></script>';
                $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.mousewheel.js"></script>';
            }
            $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.charCount.js" charset="utf-8"></script>';
            $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.smilies.js" charset="utf-8"></script>';
            $web_html .= '<script type="text/javascript" src="' . CHAT_RESOURCE_URL . '/js/user.js" charset="utf-8"></script>';
        }
        return $web_html;
    }
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:54,代码来源:chat.php

示例4: getUserInfoOp

 /**
  * 获取用户信息
  */
 public function getUserInfoOp()
 {
     $member_info = array();
     // $member_info = $this->member_info;
     $member_info['member_avatar'] = getMemberAvatar($this->member_info['member_avatar']);
     $promotionGroupInfo = Model("seller_promotion_group")->getSellerPromotionGroupInfo(array('group_id' => $this->member_info['group_id']));
     $member_info['group_name'] = $promotionGroupInfo['group_name'];
     $member_info['member_name'] = $this->member_info['member_name'];
     $member_info['member_points'] = $this->member_info['member_points'];
     $member_info['available_rc_balance'] = $this->member_info['available_rc_balance'];
     $member_info['available_predeposit'] = $this->member_info['available_predeposit'];
     $member_info['member_email'] = $this->member_info['member_email'];
     $member_info['member_sex'] = $this->member_info['member_sex'];
     $member_info['member_birthday'] = $this->member_info['member_birthday'];
     $member_info['member_mobile_bind'] = $this->member_info['member_mobile_bind'];
     $member_info['member_mobile'] = encryptShow($this->member_info['member_mobile'], 4, 4);
     $member_info['member_idcard_bind'] = empty($this->member_info['member_truename']) || empty($this->member_info['member_idnum']) ? false : true;
     $member_info['member_truename'] = encryptShow($this->member_info['member_truename'], 2, 2);
     $member_info['member_idnum'] = encryptShow($this->member_info['member_idnum'], 7, 8);
     output_data(array('data' => $member_info));
 }
开发者ID:noikiy,项目名称:meizhan,代码行数:24,代码来源:mz_member.php

示例5: member_listOp

 /**
  * 查询会员
  */
 public function member_listOp()
 {
     $member_list = array();
     $model_member = Model('member');
     $condition = array();
     $condition['member_state'] = '1';
     $condition['member_id'] = array('neq', $this->member_info['member_id']);
     $condition['member_name'] = array('like', '%' . trim($_POST['m_name']) . '%');
     //会员名称
     $list = $model_member->getMemberList($condition, 'member_id,member_name,member_truename,member_avatar', $this->page);
     if (!empty($list) && is_array($list)) {
         foreach ($list as $k => $v) {
             $member = array();
             $member['u_id'] = $v['member_id'];
             $member['u_name'] = $v['member_name'];
             $member['truename'] = $v['member_truename'];
             $member['avatar'] = getMemberAvatar($v['member_avatar']);
             $member_list[] = $member;
         }
     }
     $page_count = $model_member->gettotalpage();
     output_data(array('member_list' => $member_list), mobile_page($page_count));
 }
开发者ID:noikiy,项目名称:meizhan,代码行数:26,代码来源:member_snsfriend.php

示例6: getMemberInfo

 /**
  * 会员相关的信息
  *
  * @param
  * @return array
  */
 public function getMemberInfo($condition)
 {
     $model_member = Model('member');
     $member = $model_member->getMemberInfo($condition, 'member_id,member_name,member_avatar');
     $member['store_name'] = '';
     $member['grade_id'] = '';
     $member['member_avatar'] = getMemberAvatar($member['member_avatar']);
     $model_seller = Model('seller');
     $seller = $model_seller->getSellerInfo(array('member_id' => $member['member_id']));
     if (!empty($seller) && $seller['store_id'] > 0) {
         $store_info = $this->table('store')->field('store_id,store_name,grade_id')->where(array('store_id' => $seller['store_id']))->find();
         if (is_array($store_info) && !empty($store_info)) {
             $member['store_id'] = $store_info['store_id'];
             $member['store_name'] = $store_info['store_name'];
             $member['seller_name'] = $seller['seller_name'];
             $member['grade_id'] = $store_info['grade_id'];
         }
     }
     return $member;
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:26,代码来源:web_chat.model.php

示例7: comment_saveOp

    /**
     * 评论保存
     **/
    public function comment_saveOp() {

        $data = array();
        $data['result'] = 'true';
        $comment_id = intval($_POST['comment_id']);
        $comment_type = self::get_channel_type($_GET['type']);
        if($comment_id <= 0 || empty($comment_type) || empty($_POST['comment_message']) || mb_strlen($_POST['comment_message']) > 140) {
            $data['result'] = 'false';
            $data['message'] = Language::get('wrong_argument');
            self::echo_json($data);
        }

        if(!empty($_SESSION['member_id'])) {
            $param = array();
            $param['comment_type'] = $comment_type['type_id']; 
            $param["comment_object_id"] = $comment_id;
            if (strtoupper(CHARSET) == 'GBK'){
                $param['comment_message'] = Language::getGBK(trim($_POST['comment_message']));
            } else {
                $param['comment_message'] = trim($_POST['comment_message']);
            }
            $param['comment_member_id'] = $_SESSION['member_id'];
            $param['comment_time'] = time();
            $model_comment = Model('micro_comment');
            $result = $model_comment->save($param);
            if($result) {

                //评论计数加1
                $model = Model("micro_{$_GET['type']}");
                $update = array();
                $update['comment_count'] = array('exp','comment_count+1');
                $condition = array();
                $condition[$comment_type['type_key']] = $comment_id;
                $model->table("micro_{$_GET['type']}")->where($condition)->update($update);

                //返回信息
                $data['result'] = 'true';
                $data['message'] = Language::get('nc_common_save_succ');
                $data['member_name'] = $_SESSION['member_name'].Language::get('nc_colon');
                $data['member_avatar'] = getMemberAvatar($_SESSION['member_avatar']);
                $data['member_link'] = MICROSHOP_SITE_URL.'/index.php?act=home&member_id='.$_SESSION['member_id'];
                $data['comment_message'] = parsesmiles(stripslashes($param['comment_message']));
                $data['comment_time'] = date('Y-m-d H:i:s',$param['comment_time']);
                $data['comment_id'] = $result; 

                //分享内容
                if(isset($_POST['share_app_items'])) {
                    $condition = array();
                    $condition[$comment_type['type_key']] = $_POST['comment_id'];
                    if($_GET['type'] == 'store') {
                        $info = $model->getOneWithStoreInfo($condition);
                    } else {
                        $info = $model->getOne($condition);
                    }
                    $info['commend_message'] = $param['comment_message'];
                    $info['type'] = $_GET['type'];
                    $info['url'] = MICROSHOP_SITE_URL.DS."index.php?act={$_GET['type']}&op=detail&{$_GET['type']}_id=".$_POST['comment_id'].'#widgetcommenttitle';
                    self::share_app_publish('comment',$info);
                }
            } else {
                $data['result'] = 'false';
                $data['message'] = Language::get('nc_common_save_fail');
            }
        } else {
            $data['result'] = 'false';
            $data['message'] = Language::get('no_login');
        }
        self::echo_json($data);
    }
开发者ID:noikiy,项目名称:ejia,代码行数:72,代码来源:comment.php

示例8: defined

defined('InShopNC') or exit('Access Invalid!');
?>
<dl class="member-info">
  <dt class="avatar">
    <?php 
if ($output['publisher_info']['type'] === 2) {
    ?>
    <img src="<?php 
    echo CMS_TEMPLATES_URL;
    ?>
/images/admin.gif" />
    <?php 
} else {
    ?>
    <img src="<?php 
    echo getMemberAvatar($output['publisher_info']['avator']);
    ?>
" alt="<?php 
    echo $output['publisher_info']['name'];
    ?>
" />
    <?php 
}
?>
  </dt>
  <dd class="username"><?php 
echo $output['publisher_info']['name'];
?>
</dd>
  <dd class="type">(<?php 
echo $output['publisher_info']['type'] === 2 ? $lang['cms_article_type_admin'] : $lang['cms_article_type_member'];
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:member_sidebar.php

示例9: getMemberAvatar

    $('a[nctype="mcard"]').membershipCard({type:"microshop"});
});
</script>

<div class="commend-goods">
  <div class="commend-goods-info">
    <div class="user">
      <div class="user-face"><span class="thumb size60"><i></i><a href="<?php 
echo MICROSHOP_SITE_URL;
?>
/index.php?act=home&member_id=<?php 
echo $output['detail']['commend_member_id'];
?>
" target="_blank"> <img src="<?php 
echo getMemberAvatar($output['detail']['member_avatar']);
?>
" alt="<?php 
echo $output['detail']['member_name'];
?>
" onload="javascript:DrawImage(this,60,60);" /> </a></span> </div>
      <dl>
        <dt><a href="<?php 
echo MICROSHOP_SITE_URL;
?>
/index.php?act=home&member_id=<?php 
echo $output['detail']['commend_member_id'];
?>
" target="_blank" nctype="mcard" data-param="{'id':<?php 
echo $output['detail']['member_id'];
?>
开发者ID:uwitec,项目名称:xbshop,代码行数:30,代码来源:goods_detail.php

示例10: get_infoOp

 /**
  * member info
  *
  */
 public function get_infoOp()
 {
     if ($_SESSION['member_id'] < 1) {
         $this->error(Language::get('nc_member_chat_login'));
     }
     $val = '';
     $member = array();
     $model_chat = Model('web_chat');
     $types = array('member_id', 'member_name', 'store_id', 'member');
     $key = $_GET['t'];
     $member_id = intval($_GET['u_id']);
     if (trim($key) != '' && in_array($key, $types)) {
         $member = $model_chat->getMember($member_id);
         $member['member_avatar'] = getMemberAvatar($member['member_avatar']);
         $this->json($member);
     }
 }
开发者ID:noikiy,项目名称:haifenbao,代码行数:21,代码来源:web_chat.php

示例11: array

                <p class="F-prev"><a href="javascript:void(0);"><?php 
            echo $lang['snsfriend_prev'];
            ?>
</a></p>
                <div class="list" nctype="slider_div">
                  <ul class="F-center">
                    <?php 
            $param = array();
            foreach ($param_memberlist as $v) {
                $param[] = $v['member_id'];
                ?>
                    <li><span class="thumb size40"><i></i><a href="javascript:void(0);"><img title="<?php 
                echo $v['member_name'];
                ?>
" src="<?php 
                echo getMemberAvatar($v['member_avatar']);
                ?>
"  onload="javascript:DrawImage(this,40,40);"/></a></span></li>
                    <?php 
            }
            ?>
                  </ul>
                </div>
                <p class="F-next"><a href="javascript:void(0);"><?php 
            echo $lang['snsfriend_next'];
            ?>
</a></p>
                <a href="javascript:void(0);" class="care" nctype="batchFollow" data-param="{ids:'<?php 
            echo implode(',', $param);
            ?>
'}"><?php 
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:member_snsfriend_find.php

示例12: getMemberAvatar

        echo $lang['microshop_comment'];
        ?>
" class="pngFix">&nbsp;</i><em><?php 
        echo $value['comment_count'] <= 999 ? $value['comment_count'] : '999+';
        ?>
</em></a></span>
        </div>
        <dl class="commentary">
            <dt><span class="thumb size30"><i></i><a href="<?php 
        echo MICROSHOP_SITE_URL;
        ?>
/index.php?act=home&member_id=<?php 
        echo $value['commend_member_id'];
        ?>
" target="_blank"> <img src="<?php 
        echo getMemberAvatar($value['member_avatar']);
        ?>
" alt="<?php 
        echo $value['member_name'];
        ?>
" onload="javascript:DrawImage(this,30,30);" /> </a></span></dt>
            <dd>
            <h4><a href="<?php 
        echo MICROSHOP_SITE_URL;
        ?>
/index.php?act=home&member_id=<?php 
        echo $value['commend_member_id'];
        ?>
" target="_blank"> <?php 
        echo $value['member_name'];
        ?>
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:widget_goods_list.php

示例13: getMemberAvatar

echo MICROSHOP_SITE_URL;
?>
/index.php?act=store" class="pngFix"><span class="pngFix"><?php 
echo $lang['nc_microshop_store'];
?>
</span></a></li>
    </ul>
    <div class="microMall-user">
      <?php 
$member_avatar = MICROSHOP_TEMPLATES_URL . DS . 'images' . DS . 'default_user_portrait.gif';
?>
      <?php 
if (isset($_SESSION['is_login'])) {
    ?>
      <?php 
    $member_avatar = getMemberAvatar($_SESSION['member_avatar']);
    ?>
      <?php 
}
?>
      <div class="head-portrait"><span class="thumb size32" title="<?php 
echo $_SESSION['member_name'];
?>
"><i></i><img src="<?php 
echo $member_avatar;
?>
" onload="javascript:DrawImage(this,30,30);" /></span></div>
      <ul class="sub-menu">
        <?php 
if (isset($_SESSION['is_login'])) {
    ?>
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:top.php

示例14: foreach

        <?php foreach ($output['visitme_list'] as $k=>$v){?>
        <li>
          <div class="visitor-pic"><span class="thumb size50"><i></i><a href="index.php?act=member_snshome&mid=<?php echo $v['v_mid'];?>" target="_blank" data-param="{'id':<?php echo $v['v_mid'];?>}" nctype="mcard"> <img src="<?php echo getMemberAvatar($v['v_mavatar']);?>" onload="javascript:DrawImage(this,50,50);"> </a></span></div>
          <p class="visitor-name"><a href="index.php?act=member_snshome&mid=<?php echo $v['v_mid'];?>" target="_blank" data-param="{'id':<?php echo $v['v_mid'];?>}" nctype="mcard"><?php echo $v['v_mname'];?></a></p>
          <p class="visitor-time"><?php echo $v['adddate_text'];?></p>
        </li>
        <?php }?>
        <?php }else {?>
        <?php echo $lang['sns_visitme_tip_1'];?><a href="index.php?act=member_snsfriend&op=find"><?php echo $lang['sns_visitme_tip_2'];?></a><?php echo $lang['sns_visitme_tip_3'];?>
        <?php }?>
      </ul>
      <ul id="visit_other" nc_type="visitlist" style="display: none;">
        <?php if (!empty($output['visitother_list'])){?>
        <?php foreach ($output['visitother_list'] as $k=>$v){?>
        <li>
          <div class="visitor-pic"><span class="thumb size50"><i></i><a href="index.php?act=member_snshome&mid=<?php echo $v['v_ownermid'];?>" target="_blank" data-param="{'id':<?php echo $v['v_ownermid'];?>}" nctype="mcard"> <img src="<?php echo getMemberAvatar($v['v_ownermavatar']);?>" onload="javascript:DrawImage(this,50,50);"> </a></span></div>
          <p class="visitor-name"><a href="index.php?act=member_snshome&mid=<?php echo $v['v_ownermid'];?>" target="_blank" data-param="{'id':<?php echo $v['v_ownermid'];?>}" nctype="mcard"><?php echo $v['v_ownermname'];?></a></p>
          <p class="visitor-time"><?php echo $v['adddate_text'];?> <?php echo $v['addtime_text'];?></p>
        </li>
        <?php }?>
        <?php }else {?>
        <?php echo $lang['sns_visitother_tip_1'];?><a href="index.php?act=member_snsfriend&op=follow"><?php echo $lang['sns_visitother_tip_2'];?></a><?php echo $lang['sns_visitother_tip_3'];?>
        <?php }?>
      </ul>
    </div>
    <?php echo loadadv(372,'html');?> </div>
  <div class="clear"></div>
</div>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/smilies/smilies_data.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/smilies/smilies.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.caretInsert.js" charset="utf-8"></script>
开发者ID:noikiy,项目名称:haifenbao,代码行数:31,代码来源:member_snsindex+-+副本.php

示例15: foreach

      <ul id="visit_other" nc_type="visitlist" style="display: none;">
        <?php 
if (!empty($output['visitother_list'])) {
    ?>
        <?php 
    foreach ($output['visitother_list'] as $k => $v) {
        ?>
        <li>
          <div class="visitor-pic"><span class="thumb size50"><i></i><a href="index.php?act=member_snshome&mid=<?php 
        echo $v['v_ownermid'];
        ?>
" target="_blank" data-param="{'id':<?php 
        echo $v['v_ownermid'];
        ?>
}" nctype="mcard"> <img src="<?php 
        echo getMemberAvatar($v['v_ownermavatar']);
        ?>
" onload="javascript:DrawImage(this,50,50);"> </a></span></div>
          <p class="visitor-name"><a href="index.php?act=member_snshome&mid=<?php 
        echo $v['v_ownermid'];
        ?>
" target="_blank" data-param="{'id':<?php 
        echo $v['v_ownermid'];
        ?>
}" nctype="mcard"><?php 
        echo $v['v_ownermname'];
        ?>
</a></p>
          <p class="visitor-time"><?php 
        echo $v['adddate_text'];
        ?>
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:member_snsindex.php


注:本文中的getMemberAvatar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。