{include h}
{include user_header}
{include user_menu}
<!--{hook t_m_user_index_1}-->

<div class="hy-list" style="    ">
<!--{hook t_m_user_index_2}-->
    {if IS_LOGIN}
    {if $data['uid'] != NOW_UID}
    <div class="m-tab-bar m-bar-panel">
   <div class="m-ctrl-box m-box-center-a">
    <div class="m-diy-btn m-box-col m-box-center m-box-center-a">
     <div data-v-6feb6cd8="" callback="follow()" class="m-add-box">
      <button type="button"  style="margin-right:10px;    color: rgb(83, 188, 245);
    border: 1px solid rgba(221, 82, 77, 0) !important;
    background-color: rgba(221, 82, 77, 0);" class="hy-btn hy-btn-{if $data['friend_state']}danger{else}primary{/if} " onclick="friend({$data.uid},this)">{if $data['friend_state']}{$_LANG['取消关注']}{else}{$_LANG['关注']}{/if}</button>
     </div>
    </div> 
    <span class="m-line-gradient"></span>
    <div class="m-diy-btn m-box-col m-box-center m-box-center-a">
     <div data-v-6feb6cd8="" class="">
      <div class="m-diy-btn m-box-col m-box-center m-box-center-a">
       <img src="http://h5.sinaimg.cn/upload/2015/06/12/2/toolbar_icon_discuss_default.png" height="24" width="24" /> 
       <button style="float:right" type="button" class="hy-btn hy-btn-success" onclick="open_lt('{$data.user}',{$data.id},'{$data.avatar.b}');ys_header();">聊天</button>
      </div>
     </div>
    </div> 
    <span class="m-line-gradient"></span> 
    <!---->
   </div>
  </div>
    {/if}
    {/if}
    <a href="javascript:;">
        <span class="icon" style="color: #53bcf5 !important;"><i class="iconfont" style="
    font-size: 20px;
">&#xe612;</i></span>
        <span class="title" >用户组</span>
        <span class="hy-lable hy-lable-success" style="background-color: #F37D7D;color: white;">
<?php
//用户组GID转用户组名称
$usergid=M("User")->read($data['gid']);
//取得用户组id
$group=$usergid['gid'];
//实例UsergroupModel对象
$Usergroup = M("Usergroup");
echo $Usergroup->gid_to_name($group);
?></span>
    </a>
    <!--{hook tl-user-inddex}-->
    <a href="javascript:;">
        <span class="icon icon-bubbles4" style="color: #FFB300 !important;"></span>
        <span class="title" >{$_LANG['主题数']}</span>
        <span class="hy-lable hy-lable-success" style="background-color: #4cd964;color: white;">{$data.threads}</span>
    </a>
    <!--{hook t_m_user_index_3}-->
    <a href="javascript:;">
        <span class="icon icon-pencil2" style="color: #F37D7D !important;"></span>
        <span class="title">{$_LANG['帖子数']}</span>
        <span class="hy-lable hy-lable-danger">{$data.posts}</span>
    </a>
    <a href="javascript:;">
        <span class="icon" style="color: #9DCA06 !important;"><i class="iconfont" style="
    font-size: 20px;
">&#xe7a4;</i></span>
        <span class="title" >积分</span>
        <span class="hy-lable hy-lable-success" style="background-color: #ff9bc6;color: white;">{$data.credits}</span>
    </a>
    <!--{hook t_m_user_index_4}-->
    {if $data['uid'] == NOW_UID}
    <a href="javascript:;">
        <span class="icon icon-coin-dollar" style="color: #53bcf5 !important;"></span>
        <span class="title" style="
    font-size: 15px;
">{$_LANG['财富']}</span>
        <span class="hy-lable hy-lable-warning">{$data.gold}</span>
    </a>
    {/if}
    <!--{hook t_m_user_index_5}-->
    <a href="javascript:;">
        <span class="icon icon-accessibility " style="color: #64bd63 !important;"></span>
        <span class="title">{$_LANG['加入时间']}</span>
        <span class="hy-lable hy-lable-purple">{php echo date("Y-m-d",$data['atime']);}</span>
    </a>
    <!--{hook t_m_user_index_6}-->
    {if $data['uid'] == NOW_UID}
    <a href="{php HYBBS_URL('my',$user['user'],'op');}">
        <span class="icon icon-cog " style="color: #667d99 !important;"></span>
        <span class="title">{$_LANG['个人设置']}</span>
    </a>
    {/if}
    <!--{hook t_m_user_index_7}-->
    {if $data['uid'] == NOW_UID}
    <a href="{php HYBBS_URL('user','out')}">
    <span class="icon icon-exit " style="color: #8a6de9 !important;"></span>
        <span class="title">{$_LANG['注销账号']}</span>
    </a>
    {/if}
    <!--{hook t_m_user_index_8}-->
</div>
<script type="text/javascript">
    $(function(){
        $(window).scroll(function(){
            
            if(this.scrollY > 100  ){
                $(".hy-header").css('background','#Fff');
                $(".hy-header").addClass('header_shadow');
                $(".hy-header-title,.hy-header .icon").css("cssText","color: rgb(83, 188, 245)");
            }else{
                $(".hy-header").css('background','rgba(0, 0, 0, 0)');
                $(".hy-header").removeClass('header_shadow');
                $(".hy-header-title,.hy-header .icon").css("cssText","color: #fff");
                    
            }
            
        });
    });
</script>
<!--{hook t_m_user_index_9}-->
{include f}