<div class="oe_head">
	<a class="oe_logo_box fl" href="<!--{$config.siteurl}-->"><div class="logo"><img src="<!--{$urlpath}--><!--{$config.logo}-->" alt="<!--{$config.sitename}-->" /></div></a>   
	<div class="oe_nav fl">
		<ul class="clearfix">
			<li><a href="<!--{$urlpath}-->index.php">首页</a><em></em></li>
      <!--{if $login.info.gender == '2'}-->
      <li><a href="<!--{$urlpath}-->index.php?c=user&a=list&s_gender=1">会员</a><em></em></li>
      <!--{else}-->
			<li><a href="<!--{$urlpath}-->index.php?c=user&a=list&s_gender=2">会员</a><em></em></li>
      <!--{/if}-->
      <li><a href="<!--{routeurl module='party'}-->">活动</a><em></em></li>
      <li><a href="<!--{routeurl module='diary'}-->">日记</a><em></em></li>
      <li><a href="<!--{routeurl module='dynamic'}-->">动态</a><em></em></li>
		</ul>
	</div>
  
  <!--{assign var="new_message" value=<!--{countdata type='user' mod='message' where="v.touid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.readstatus='0' AND v.todel='0'"}-->}-->
  <!--{assign var="new_msg" value=<!--{countdata type='user' mod='msg' where="v.userid='<!--{$login.info.userid}-->' AND v.readflag='0'"}-->}-->
  <!--{assign var="new_friendapply" value=<!--{countdata type='user' mod='friendapply' where="v.fuserid='<!--{$login.info.userid}-->' AND v.flag='0'"}-->}-->
	<div class="oe_topright drop">
    <!--{if $login.status=='0'}-->
    <a href="javascript:;" f="pop2_jdlogin"  class="a_1" rel="nofollow">登录</a>
    <a href="<!--{routeurl module='passport' action='reg'}-->" class="a_1" rel="nofollow">注册</a>
    <!--{else}-->
    <dl class="userhead down">
      <dt><span class="headimg"><a href="<!--{$urlpath}-->index.php?m=user"><img src="<!--{$login.info.headimg_s}-->" /></a></span><span class="span_username"><a href="<!--{$urlpath}-->index.php?m=user"><!--{$login.info.username}--></a></span> <i></i> 
      <!--{if $new_message > 0}-->
      <a title="私信" class="msg<!--{if $new_message > 0}--> current<!--{/if}-->" href="<!--{$urlpath}-->index.php?m=user&c=msgcontact"></a>
      <!--{else}-->
      <!--{if $new_msg > 0}-->
      <a title="消息" class="msg<!--{if $new_msg > 0}--> current<!--{/if}-->" href="<!--{$urlpath}-->index.php?m=user&c=msg"></a>
      <!--{/if}-->
      <!--{/if}-->
      </dt>
      <dd class="sub" style="display:none;">
        <div>
          <div class="left">
            <ul>
              <li><a href="<!--{$oefile}-->&c=vip">升级会员</a></li>
              <li><a href="<!--{$oefile}-->&c=photo">上传相片</a></li>
              <li><a href="<!--{$oefile}-->&c=rz">我的认证</a></li>
              <li><a href="<!--{$oefile}-->&c=set">设置</a></li>
              <li class="logout"><a href="<!--{routeurl module='passport' action='logout'}-->" rel='nofollow'>退出登录</a></li>
            </ul>
          </div>
          <div class="line"></div>
          <div class="right">
            <ul>
              <li><i class="ico_1"></i><a href="<!--{$oefile}-->&c=msgcontact">我的私信</a><!--{if $new_message > 0}--><em></em><!--{/if}--></li>
              <li><i class="ico_2"></i><a href="<!--{$oefile}-->&c=friend">我的好友</a><!--{if $new_friendapply > 0}--><em></em><!--{/if}--></li>
              <li><i class="ico_3"></i><a href="<!--{$oefile}-->&c=visit">我的足迹</a></li>
              <li><i class="ico_4"></i><a href="<!--{$oefile}-->&c=fans">我的关注</a></li>
              <li><i class="ico_6"></i><a href="<!--{$oefile}-->&c=msg">系统通知 </a><!--{if $new_msg > 0}--><em></em><!--{/if}--></li>
            </ul>
            <div class="clear"></div>
          </div>
        </div>
      </dd>
    </dl>
    <a class="a_1" href="<!--{$oefile}-->&c=vip">
      <!--{if $login.info.isvip == '1'}-->
      <!--{if empty($login.info.levelimg2)}--> <img class="vip_default" src="<!--{$skinpath}-->images/svg/vip<!--{$login.info.groupid-1}-->.svg" title="<!--{$login.group.groupname}-->"/> <!--{else}-->
        <!--{$login.info.levelimg}-->
      <!--{/if}-->
      <!--{/if}-->
      <font <!--{if $login.info.isvip == '1'}-->color='#f40'<!--{/if}-->><!--{$login.group.groupname}--></font>
    </a>
    <a class="a_1" href="<!--{$urlpath}-->index.php?m=user">个人中心</a>
    <!--{/if}-->      
    <!--{if !empty($config.mobileqr)}-->
    <dl class="ma down">
      <dt><i class="icon"></i>手机版</dt>
      <dd class="sub">
        <img src="<!--{$urlpath}--><!--{$config.mobileqr}-->" width="150px" />
      </dd>
    </dl>
    <!--{/if}-->
  </div>
</div>
<!--//oe_head End -->

<div class="oe_person_msg">
  <span class="circle circle_1"></span>
  <span class="circle circle_2"></span>
  <span class="circle circle_3"></span>
  <span class="circle circle_4"></span>
  <span class="circle circle_5"></span>
  <span class="circle circle_6"></span>
  <span class="circle circle_7"></span>
	<div class="oe_container clearfix">
		<div class="left fl">
    
			<div class="avatar">
				<div class="img-box">
					<!--{if !empty($login.info.headimg)}-->
					<img src="<!--{$login.info.headimg}-->?r=<!--{$time}-->" />
					<!--{else}-->
					<img src="<!--{$login.info.headimgurl}-->?r=<!--{$time}-->" />
					<!--{/if}-->
          
					<div class="is_au">
            <!--{if $login.info.headflag == '0'}-->

            <!--{elseif $login.info.headflag == '2'}-->
            审核中
            <!--{elseif $login.info.headflag == '3'}-->
            未通过
            <!--{else}-->

            <!--{/if}-->
          </div>
          
				</div>
				<em class="loading" id="upload_avatar_loading" style="display:none;"><img src="<!--{$userskin}-->images/loading_s.gif" /></em>
				<div class="text">
          <!--{if $login.info.headflag == '0'}-->
          点击上传
          <!--{elseif $login.info.headflag == '3'}-->
          重新上传
          <!--{else}-->
          更换头像
          <!--{/if}-->
        </div>
				<input type="file" f="but_upload_avatar" id="file_avatar_img" name="file_avatar_img" />
			</div>
      
			<div class="msg">
				<div class="name">
					<span>
						<!--{$login.info.username}-->
					</span>
          <b>(ID:<!--{$login.info.userid}-->)</b>
					<!--{if $login.info.gender == '1'}-->
					<em class="gender_1">男</em>
					<!--{else}-->
					<em class="gender_2">女</em>
					<!--{/if}-->
          
					<i class="level">
						<!--{$login.group.groupname}-->
					</i>
          
          
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$login.info.userid}-->" target="_blank"><label></label>预览我的主页</a>
				</div>
				<div class="perfect-msg">
					<span class="data_perf">资料完善度: <!--{$login.info.growth}-->%</span>
					<a class="ins_info" href="<!--{$oefile}-->&c=profile"><em></em>完善资料</a>
				</div>
			</div>
      
		</div>
    <!--//left End -->
    
		<div class="right ft">
    
      <div class="num-box">
        <a href="<!--{$oefile}-->&c=msgcontact">
				<div class="text">私信</div>
				<div class="num">
					<!--{assign var="new_msg" value=<!--{countdata type='user' mod='message' where="v.touid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.readstatus='0' AND v.todel='0'"}-->}-->
					<!--{$new_msg}-->
				</div>
        </a>
			</div>
      
			<div class="num-box">
        <a href="<!--{$oefile}-->&c=money">
				<div class="text">余额(<!--{$config.moneyname}-->)</div>
				<div class="num"><!--{doubleval($login.info.money)}--></div>
        </a>
			</div>
      
		</div>
    <!--//right End -->
    
    
	</div>
</div>

<script src="<!--{$userskin}-->js/avatar.js"></script>

<script type="text/javascript">
$(function(){
    jQuery(".drop").slide({ type:"menu", titCell:".down", targetCell:".sub",effect:"slideDown",delayTime:300,triggerTime:0,defaultPlay:false,returnDefault:true});
    $('.addcurrent').hover(
      function(){
       $(this).addClass('current')
      },
      function(){
       $(this).removeClass('current')
      }
    );
});
</script>
