<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">
  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">会员管理</a><span lay-separator="">/</span>
      <a href="javascript:;">信件管理</a><span lay-separator="">/</span>
      <a><cite>信件联系人</cite></a>
    </div>
  </div>
  <!--//top end -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">通信SID：</div>
        <div class="layui-input-inline input-150">
          <input type="text" name="sbgsid" id="sbgsid" class="layui-input" value="<!--{$sbgsid}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">性别：</div>
        <div class="layui-input-inline input-100">
          <!--{hook mod="var" item="gender" name="sgender" type="select" text="=请选择=" value=$sgender}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">会员uid：</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="suserid" id="suserid" class="layui-input" value="<!--{if $suserid > 0}--><!--{$suserid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">用户名：</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="susername" id="susername" class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
     
      
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
      
      <div class="layui-form-item">
        <div class="layui-form-label">排序：</div>
        <div class="label_box">
          <input type="hidden" name="sorderby" id="sorderby" value="<!--{$sorderby}-->" />
          <span f="but_search_cat" data-val="" data-input="sorderby"<!--{if $sorderby == ''}--> class="current"<!--{/if}-->>默认</span>
          <span f="but_search_cat" data-val="id_asc" data-input="sorderby"<!--{if $sorderby == 'id_asc'}--> class="current"<!--{/if}-->>ID升序</span>
          <span f="but_search_cat" data-val="id_desc" data-input="sorderby"<!--{if $sorderby == 'id_desc'}--> class="current"<!--{/if}-->>ID降序</span>
          <span f="but_search_cat" data-val="last_asc" data-input="sorderby"<!--{if $sorderby == 'last_asc'}--> class="current"<!--{/if}-->>通信时间升序</span>
          <span f="but_search_cat" data-val="last_desc" data-input="sorderby"<!--{if $sorderby == 'last_desc'}--> class="current"<!--{/if}-->>通信时间降序</span>
        </div>
      </div>
          
    </div>
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">

    <table class="layui-table">
      <thead>
        <tr>
          <th width="20%">SID</th>
          <th width="10%">头像</th>
          <th>用户</th>
          <th width="10%">发信数量</th>
          <th width="10%">收信数量</th>
          <th width="10%">操作</th>
        </tr>
      </thead>
      <!--{if empty($msgcontact)}-->
      <tr>
        <td class="text_center" colspan="6">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $msgcontact as $volist}-->
      <tr>
        <td valign="top">
          <!--{$volist.contactid}-->/<!--{$volist.bgsid}-->
        </td>
        <td class="text_center">
          <img src="<!--{$volist.headimg}-->" width="60px" height="60px" f="viewimg" />
        </td>
        <td valign="top">
          <b><!--{$volist.userid}--> / <!--{$volist.username}--> / <!--{hook mod="var" item="gender" type="text" value=$volist.gender}--> <!--{$volist.age}-->岁 <!--{area type="text" value=$volist.dist1}--> <!--{area type="text" value=$volist.dist2}--></b><br />
          fuid：<!--{$volist.fuserid}--> / 
          <!--{if $volist.message.readstatus == '0'}-->
          <font color="orange"><!--{$volist.message.content}--></font>
          <!--{else}-->
          <!--{$volist.message.content}-->
          <!--{/if}-->
          <br />
          <font color="gray"><!--{$volist.lastime|date_format:"%Y-%m-%d %H:%M:%S"}--></font>
        </td>
        <td class="text_center"><!--{$volist.sendnums}--></td>
        <td class="text_center"><!--{$volist.receivenums}--></td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=msglog&sid=<!--{$volist.bgsid}-->&userid=<!--{$volist.userid}-->" class="layui-btn layui-btn-xs">查看通信记录</a>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>
<!--{/if}-->
</body>
</html>