<!--{assign var="menu_id" value="message"}-->
<!--{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="javascript:;">
          <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_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'"}-->}-->
            <!--{if $new_message>0}-->
            <div class="pa br30 bo_main plr5 color_main fz12 lhn" style="top: -10px;right: -24px;"><!--{$new_message}--></div>
            <!--{/if}-->
          </div>
        </a>
        <a href="<!--{$urlpath}-->index.php?m=user&c=msg">
          <div class="item fl mr60 pb15 pr t1">
            <div class="text fz16 color_6">系统通知</div>
            <!--{assign var="new_msg" value=<!--{countdata type='user' mod='msg' where="v.userid='<!--{$login.info.userid}-->' AND v.readflag='0'"}-->}-->
            <!--{if $new_msg > 0}-->
            <div class="pa br30 bo_main plr5 color_main fz12 lhn" style="top: -10px;right: -24px;"><!--{$new_msg}--></div>
            <!--{/if}-->
          </div>
        </a>
      </div>
      <!--{if !empty($msgcontact)}-->
      <ul class="mt30">
        <!--{foreach $msgcontact as $volist}-->
        <li class="clearfix bo_bf7 ptb15 pr">
          <!--{if $volist.notreads > 0}-->
          <div class="pa bg_red br30 img_10 t_center" style="left: 55px;">
          </div>
          <!--{/if}-->
          <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.lastime|date_format:"%m/%d %H:%M"}--></div>
            <div class="fl ml20 pr">
              <!--{if $volist.lastmsgid == 0}--> 
              <button class="bo_main bg_main color_f plr15 ptb8 br3 cursor" f="pop_jdchat" data-touid="<!--{$volist.fuserid}-->"><em class="iconfont icon-xiaoxi"></em> 聊天</button>
              <!--{else}-->
              <button class="bo_main bg_main color_f plr15 ptb8 br3 cursor" f="pop_jdchat" data-touid="<!--{$volist.fuserid}-->"><em class="iconfont icon-xiaoxi"></em> 聊天</button>
              <!--{/if}-->
            </div>
            <div class="fl cursor ml20" f="del" data-id="<!--{$volist.contactid}-->">
              <em class="iconfont icon-guanbi1 color_9 fz20 lh36"></em>
            </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/msgcontact.js"></script>
</body>
</html>