<!--{assign var="menu_id" value="friend"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}-->
<body class="bg_body">
<!--{include file="<!--{$oetplpath}-->widget/block_top.tpl"}-->
<div class="w1200 mt30 clearfix mb30">
	<!--{include file="<!--{$oetplpath}-->block_menu.tpl"}-->
	<div class="fr bg_f plr40 ptb30 bsb" style="width: 1020px;">
		<h3 class="fz24 mb20">好友</h3>
		<div class="nav clearfix bo_beb">
			<a href="<!--{$oefile}-->&c=friend">
				<div class="item fl mr60 pb15 pr t1">
					<div class="text fz16 color_6">我的好友</div>
				</div>
			</a>
			<a href="<!--{$oefile}-->&c=friendapply">
				<div class="item fl mr60 pb15 pr t1">
					<div class="text fz16 color_6">好友验证</div>
					<div class="line w100per bg_main pa lb" style="height: 3px;"></div>
					<!--{assign var="new_friendapply" value=<!--{countdata type='user' mod='friendapply' where="v.fuserid='<!--{$login.info.userid}-->' AND v.flag='0'"}-->}-->
					<!--{if $new_friendapply > 0}-->
          <div class="pa br30 bo_main plr5 color_main fz12 lhn" style="top: -10px;right: -24px;"><!--{$new_friendapply}--></div>
					<!--{/if}-->
				</div>
			</a>
			<a href="<!--{$oefile}-->&c=friendmy">
				<div class="item fl mr60 pb15 pr t1">
					<div class="text fz16 color_6">我发的申请</div>
				</div>
			</a>
			<a href="<!--{$oefile}-->&c=friendblack">
				<div class="item fl mr60 pb15 pr t1">
					<div class="text fz16 color_6">黑名单</div>
				</div>
			</a>
    </div>
    <!--{if !empty($friendapply)}-->
    <ul class="mt30">
      <!--{foreach $friendapply as $volist}-->
      <li class="clearfix bo_bf7 ptb15 pr">
        <div class="avatar fl img_60 br oh mlr10">
          <img class="ob_c" src="<!--{$volist.headimg}-->">
        </div>
        <div class="info fl ml20 mt5">
          <div class="name">
            <em class="iconfont icon-nv color_nv"></em>
            <span class="color_3 fz16"><!--{$volist.username}--></span>
          </div>
          <div class="text mt5 color_9">
            <!--{$volist.age}-->岁 <!--{$volist.height}-->cm <!--{area type="text" value=$volst.dist1}--> <!--{area type="text" value=$volst.dist1}--> <!--{area type="text" value=$volst.dist1}-->
          </div>
        </div>
        <div class="fr pt12">
          <div class="fl color_9 lh36">申请时间：<!--{$volist.trantime}--></div>
          <!--{if $volist.flag == '1'}-->
          <div class="fl color_9 lh36 ml15 color_green">已同意</div>
          <!--{elseif $volist.flag == '2'}-->
          <div class="fl color_9 lh36 ml15 color_green">已拒绝</div>
          <!--{/if}-->
          <div class="fl ml20 pr">
            <button class="bo_main bg_main color_f plr15 ptb8 br3 cursor mr15" f="but_del" data-id="<!--{$volist.applyid}-->">删除</button>
            <!--{if $volist.flag == '0'}-->
            <button class="bo_main bg_main color_f plr15 ptb8 br3 cursor mr15" f="but_agree" data-id="<!--{$volist.applyid}-->">同意</button>
            <button class="bo_main bg_main color_f plr15 ptb8 br3 cursor" f="but_refuse" data-id="<!--{$volist.applyid}-->">拒绝</button>
            <!--{/if}-->
          </div>
        </div>
      </li>
      <!--{/foreach}-->
    </ul>
    <!--{else}-->
    <div class="oe_nodata">
      <p class="p_1"><img src="<!--{$userskin}-->images/nodata.jpg" /></p>
      <p class="p_2">没有符合条件的信息！</p>
    </div>
    <!--{/if}-->
    <!--{if $total > 0 && !empty($showpage)}-->
    <div class="oe_page"> <!--{$showpage}--> </div>
    <!--{/if}-->
	</div>
</div>

<!--{include file="<!--{$uctplpath}-->widget/block_footer.tpl"}-->
<script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.min.js"></script>
<script src="<!--{$userskin}-->js/friendapply.js"></script>
</body>
</html>