<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <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><cite>会员列表</cite></a>
    </div>
  </div>
  <!--//top end -->
 
  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_searchbar layui-form">
  
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">地&#12288;区：</div>
        <div class="layui-input-inline input-120">
          <!--//9.10.12 -->
          <!--{assign var="distlist" value=vo_list("mod={area0} where={v.parentid='0'} orderby={v.orders ASC}")}-->
          <select name="sdist1" id="sdist1" lay-filter="area" data-depth="1" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
        </div>
        <div class="layui-input-inline input-120" id="json_sdist2">
          <!--{if $sdist1 > 0}-->
          <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$sdist1}-->'}")}-->
          <select name="sdist2" id="sdist2" lay-filter="area" data-depth="2" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist2 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist2 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sdist2" id="sdist2" lay-filter="area">
            <option value="">=请选择=</option>
          </select>
          <!--{/if}-->
        </div>
        <div class="layui-input-inline input-120" id="json_sdist3">
          <!--{if $sdist2 > 0}-->
          <!--{assign var="distlist3" value=vo_list("mod={area} where={v.parentid='<!--{$sdist2}-->'}")}-->
          <select name="sdist3" id="sdist3" lay-filter="area" data-depth="3" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist3 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist3 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sdist3" id="sdist3" lay-filter="area">
            <option value="">=请选择=</option>
          </select>
          <!--{/if}-->
        </div>
        <div class="layui-input-inline input-120" id="json_sdist4" style="display:none;">
          <!--{if $sdist3 > 0}-->
          <!--{assign var="distlist4" value=vo_list("mod={area} where={v.parentid='<!--{$sdist3}-->'}")}-->
          <select name="sdist4" id="sdist4" lay-filter="area" data-depth="4" data-name="sdist" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist4 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sdist4 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sdist4" id="sdist4" lay-filter="area">
            <option value="">=请选择=</option>
          </select>
          <!--{/if}-->
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">户&#12288;籍：</div>
        
        <div class="layui-input-inline input-120">
          <!--//9.10.12 -->
          <!--{assign var="distlist" value=vo_list("mod={hometown0} where={v.parentid='0'} orderby={v.orders ASC}")}-->
          <select name="shome1" id="shome1" lay-filter="hometown" data-depth="1" data-name="shome" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $shome1}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
        </div>
        <div class="layui-input-inline input-120" id="json_shome2">
          <!--{if $shome1 > 0}--> 
            <!--{assign var="distlist" value=vo_list("mod={hometown} where={v.parentid='<!--{$shome1}-->'} orderby={v.orders ASC}")}-->
            <select name="shome2" id="shome2" lay-filter="hometown" data-depth="2" data-name="shome" data-text="=请选择=">
              <option value="">=请选择=</option>
              <!--{foreach $distlist as $val}-->
              <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $shome2}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
              <!--{/foreach}-->
            </select>
            <!--{else}-->
            <select name="shome2" id="shome2" lay-filter="hometown" data-depth="2" data-name="shome" data-text="=请选择=">
              <option value="">=请选择=</option>
            </select>
          <!--{/if}--> 
        </div>
        
        <div class="layui-input-inline input-120" id="json_shome3">
          <!--{if $shome2 > 0}--> 
            <!--{assign var="distlist" value=vo_list("mod={hometown} where={v.parentid='<!--{$shome2}-->'} orderby={v.orders ASC}")}-->
            <select name="shome3" id="shome3">
              <option value="">=请选择=</option>
              <!--{foreach $distlist as $val}-->
              <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $shome3}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
              <!--{/foreach}-->
            </select>
            <!--{else}-->
            <select name="shome3" id="shome3">
              <option value="">=请选择=</option>
            </select>
          <!--{/if}--> 
        </div>
        
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">性别：</div>
        <div class="layui-input-inline input-80">
          <select name="sgender" id="sgender">
            <option value="">不限</option>
            <option value="1"<!--{if $sgender == 1}--> selected<!--{/if}-->>男</option>
            <option value="2"<!--{if $sgender == 2}--> selected<!--{/if}-->>女</option>
          </select>
        </div>
      </div>
      
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">会员ID：</div>
        <div class="layui-input-inline input-120">
          <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-120">
          <input type="text" name="susername" id="susername" class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">姓名：</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="struename" id="struename" class="layui-input" value="<!--{$struename}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">手机：</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="smobile" id="smobile" class="layui-input" value="<!--{$smobile}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">头像：</div>
        <div class="layui-input-inline input-100">
          <select name="savatar" id="savatar">
            <option value="">不限</option>
            <option value="1"<!--{if $savatar == '1'}--> selected<!--{/if}-->>有</option>
            <option value="2"<!--{if $savatar == '2'}--> selected<!--{/if}-->>无</option>
          </select>
        </div>
      </div>
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">微信号：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="sweixin" id="sweixin" class="layui-input" value="<!--{$sweixin}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">邮&#12288;箱：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="semail" id="semail" class="layui-input" value="<!--{$semail}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">QQ：&nbsp;&nbsp;</div>
        <div class="layui-input-inline input-100">
          <input type="text" name="sqq" id="sqq" class="layui-input" value="<!--{$sqq}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">微信编码：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="sweixinid" id="sweixinid" class="layui-input" value="<!--{$sweixinid}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">生肖：</div>
        <div class="layui-input-inline input-100">
          <!--{hook mod="var" item="lunar" name="slunar" type="select" text="请选择" value=$slunar}-->
        </div>
      </div>
      
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">等&#12288;级：</div>
        <div class="layui-input-inline input-120">
          <!--{assign var="grouplist" value=vo_list("mod={group} where={v.flag='1'} orderby={v.orders ASC}")}-->
          <select name="sgroupid" id="sgroupid">
            <option value="">不限</option>
            <!--{foreach $grouplist as $volist}-->
            <option value="<!--{$volist.groupid}-->"<!--{if $volist.groupid == $sgroupid}--> selected<!--{/if}-->><!--{$volist.groupname}--></option>
            <!--{/foreach}-->
          </select>
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">年&#12288;龄：</div>
        <div class="layui-input-inline input-80">
          <input type="text" name="sage" id="sage" class="layui-input" value="<!--{if $sage > 0}--><!--{$sage}--><!--{/if}-->" /> 
        </div>
        <div class="layui-form-label">-</div>
        <div class="layui-input-inline input-80">
          <input type="text" name="eage" id="eage" class="layui-input" value="<!--{if $eage > 0}--><!--{$eage}--><!--{/if}-->" />
        </div>
        <div class="layui-form-label">岁</div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">身高：</div>
        <div class="layui-input-inline input-80">
          <input type="text" name="sheight" id="sheight" class="layui-input" value="<!--{if $sheight > 0}--><!--{$sheight}--><!--{/if}-->" /> 
        </div>
        <div class="layui-form-label">-</div>
        <div class="layui-input-inline input-80">
          <input type="text" name="eheight" id="eheight" class="layui-input" value="<!--{if $eheight > 0}--><!--{$eheight}--><!--{/if}-->" />
        </div>
        <div class="layui-form-label">CM</div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">婚&#12288;况：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="marry" name="smarry" type="select" text="请选择" value=$smarry}-->
        </div>
      </div>
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">学&#12288;历：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="education" name="seducation" type="select" text="请选择" value=$seducation}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">职&#12288;业：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="job" name="sjob" type="select" text="请选择" value=$sjob}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">年收入：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="salary" name="ssalary" type="select" text="请选择" value=$ssalary}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">购车：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="car" name="scar" type="select" text="请选择" value=$scar}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">购房：</div>
        <div class="layui-input-inline input-120">
          <!--{hook mod="var" item="house" name="shouse" type="select" text="请选择" value=$shouse}-->
        </div>
      </div>
    </div>
    
    <div class="layui-form-item">
      <div class="layui-form-label">认证项：</div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sidrz" id="sidrz" title="身份证" value="1"<!--{if $sidrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="smobilerz" id="smobilerz" title="手机" value="1"<!--{if $smobilerz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="semailrz" id="semailrz" title="邮箱" value="1"<!--{if $semailrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sqqrz" id="sqqrz" title="QQ" value="1"<!--{if $sqqrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="shouserz" id="shouserz" title="房子" value="1"<!--{if $shouserz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="scarrz" id="scarrz" title="车子" value="1"<!--{if $scarrz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="sedurz" id="sedurz" title="学历" value="1"<!--{if $sedurz == '1'}--> checked<!--{/if}--> /></div>
      <div class="layui-inline"><input type="checkbox" lay-skin="primary" name="smarryrz" id="smarryrz" title="婚况" value="1"<!--{if $smarryrz == '1'}--> checked<!--{/if}--> /></div>
    </div>
    <div class="layui-form-item">
    
      <div class="layui-inline">
        <div class="layui-form-label">状态：</div>
        <div class="layui-input-inline input-120">
          <select name="sflag" id="sflag">
            <option value="">不限</option>
            <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>通过</option>
            <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>未通过</option>
            <option value="3"<!--{if $sflag == '3'}--> selected<!--{/if}-->>黑名单</option>
            <option value="4"<!--{if $sflag == '4'}--> selected<!--{/if}-->>找到意中人</option>
            <option value="5"<!--{if $sflag == '5'}--> selected<!--{/if}-->>隐藏资料</option>
            <option value="10"<!--{if $sflag == '10'}--> selected<!--{/if}-->>待审核</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">推荐：</div>
        <div class="layui-input-inline input-100">
          <select name="selite" id="selite">
            <option value="">不限</option>
            <option value="1"<!--{if $selite == '1'}--> selected<!--{/if}-->>是</option>
            <option value="2"<!--{if $selite == '2'}--> selected<!--{/if}-->>否</option>
          </select>
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">排序：</div>
        <div class="layui-input-inline input-100">
          <select name="sorderby" id="sorderby">
            <option value="">不限</option>
            <option value="id_desc"<!--{if $sorderby == 'id_desc'}--> selected<!--{/if}-->>注册_升序</option>
            <option value="id_asc"<!--{if $sorderby == 'id_asc'}--> selected<!--{/if}-->>注册_降序</option>
            <option value="login_desc"<!--{if $sorderby == 'login_desc'}--> selected<!--{/if}-->>登录_升序</option>
            <option value="login_asc"<!--{if $sorderby == 'login_asc'}--> selected<!--{/if}-->>登录_降序</option>
          </select>
        </div>
      </div>
      
      <!--//21.04.27 -->
      <div class="layui-inline">
        <div class="layui-form-label">婚况声明：</div>
        <div class="layui-input-inline input-100">
          <select name="sstatement" id="sstatement">
            <option value="">不限</option>
            <option value="1"<!--{if $sstatement == '1'}--> selected<!--{/if}-->>已声明</option>
            <option value="2"<!--{if $sstatement == '2'}--> selected<!--{/if}-->>已过期</option>
            <option value="3"<!--{if $sstatement == '3'}--> selected<!--{/if}-->>未声明</option>
          </select>
        </div>
      </div>
      
      
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="btn_search" 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>
    
    
  </div>
  </form>
  <!--//search End -->

  
  <div class="oe_table_wrap layui-form">
    
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选" lay-filter="selectAll">
        </div>
        <div class="btn del fl" f="handle-array" data-form="myform">
          <i class="layui-icon layui-icon-delete"></i>
          <span>删除</span>
        </div>
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=add" class="btn add fl" style="border-right:1px solid #ddd;">
          <i class="layui-icon layui-icon-add-1"></i>
          <span>新增</span>
        </a>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
    <input type="hidden" name="a" id="a" value="del" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="2%">选</th>
          <th width="6%">UID</th>
          <th width="4%">头像</th>
          <th>用户名</th>
          <th width="5%">姓名</th>
          <th width="8%">等级</th>
          <th width="7%">通讯</th>
          <th width="4%">年龄</th>
          <th width="4%">婚况</th>
          <th width="5%">地区</th>
          <th width="9%">手机号</th>
          <th width="8%">注册时间</th>
          <th width="6%">状态</th>
          <th width="4%">登录</th>
          <th width="4%">推荐</th>
          <th width="5%"><!--{$config.moneyname}--></th>
          <th width="6%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($user)}-->
      <tr>
        <td colspan="18" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $user as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.userid}-->" />
        </td>
        <td class="check text_center">
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.userid}-->" target="_blank"><!--{$volist.userid}--></a>
        </td>
        <td class="text_center drop">
          <div class="down">
            <div>
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimgurl_0}-->" width="20px" height="20px" preload="0" f="zoom_avatar" />
            </div>
            <div class="sub">
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimgurl}-->" f="viewimg" />
            </div>
          </div>
          <span class="oe_addfortb" title="点击修改头像" style="margin-top:0px;" f="pop_edit_avatar" data-id="<!--{$volist.userid}-->">
            <!--{if $volist.headflag != '1'}-->
            <font color="#009688">修改</font>
            <!--{else}-->
            修改
            <!--{/if}-->
          </span>
        </td>
        <td>
          <!--{if $volist.gender=='1'}-->
          <i class="iconfont icon-nan" title="男"></i>
          <!--{else}-->
          <i class="iconfont icon-nv" title="女"></i>
          <!--{/if}-->
          <!--{$volist.username}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.truename)}-->
          <!--{$volist.truename}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.groupid > 1}-->
            <!--{if $volist.vipetime>$time}-->
              <span class="vip_bg oe_vipedit" title="点击修改" f="pop_add_vip" data-id="<!--{$volist.userid}-->"><!--{hook mod="group" type="text" value=$volist.groupid}--></font></span>
            <!--{else}-->
              <s class="oe_vipedit" title="点击修改" f="pop_add_vip" data-id="<!--{$volist.userid}-->"><!--{hook mod="group" type="text" value=$volist.groupid}--></s>
            <!--{/if}-->
          <br />
          <!--{if $volist.vipetime<$time}-->
            <font style="color:red;font-size:10px;">服务停止</font>
          <!--{else}-->
            <font style="font-size:10px;"><!--{$volist.vipetime|date_format:'%Y-%m-%d'}--></font>
          <!--{/if}-->
          <!--{else}-->
          <span class="oe_vipedit" title="点击修改" f="pop_add_vip" data-id="<!--{$volist.userid}-->"><!--{hook mod="group" type="text" value=$volist.groupid}--></span>
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.weixin)}-->
            <img src="<!--{$urlpath}-->tpl/admin/images/wx.svg" width="25px" title="<!--{$volist.weixin}-->"/>
          <!--{else}-->
            <img src="<!--{$urlpath}-->tpl/admin/images/wxs.svg" width="25px" title="<!--{$volist.weixin}-->"/>
          <!--{/if}-->
          <!--{if !empty($volist.qq)}-->
            <img src="<!--{$urlpath}-->tpl/admin/images/qq.svg" width="25px" title="<!--{$volist.qq}-->" />
          <!--{else}-->
            <img src="<!--{$urlpath}-->tpl/admin/images/qqs.svg" width="25px" title="<!--{$volist.qq}-->" />
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.age}-->
        </td>
        <td class="text_center">
          <!--{hook mod="var" item="marry" type="text" value=$volist.marry}-->
        </td>
        <td class="text_center">
          <!--{if $volist.dist1 > 0}-->
          <!--{$volist.city}--> 
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center" style="font-size:12px;">
          <!--{if !empty($volist.mobile)}-->
          <!--{if $volist.mobilerz == '1'}-->
          <font color="green"><!--{$volist.mobile}--></font>
          <!--{else}-->
          <font color="gray"><!--{$volist.mobile}--></font>
          <!--{/if}-->
          <!--//21.04.27 -->
          <!--{if !empty($volist.mobileaddr)}-->
          <br />
          <!--{$volist.mobileaddr}--> <!--{$volist.mobileisp}-->
          <!--{/if}-->
          
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.addtime|date_format:"%H:%M:%S"}-->
        </td>
        
        <td class="text_center" title="点击修改状态">
          <a href="javascript:;" f="pop_edit_status" data-id="<!--{$volist.userid}-->">
          <!--{if $volist.flag == '1'}-->
          <font color="green">通过</font>
          <!--{elseif $volist.flag == '2'}-->
          未通过
          <!--{elseif $volist.flag == '3'}-->
          黑名单
          <!--{elseif $volist.flag == '4'}-->
          找到意中人
          <!--{elseif $volist.flag == '5'}-->
          隐藏资料
          <!--{else}-->
          待审核
          <!--{/if}-->
          </a>
        </td>

        <td class="text_center">
          <input type="checkbox" name="login" lay-skin="primary" value="1" lay-filter="updatestatus" data-id="<!--{$volist.userid}-->" data-type="login"<!--{if $volist.loginstatus == '1'}--> checked<!--{/if}--> />
        </td>
        <td class="text_center">
          <input type="checkbox" name="elite" lay-skin="primary" value="1" lay-filter="updatestatus" data-id="<!--{$volist.userid}-->" data-type="elite"<!--{if $volist.elite == '1'}--> checked<!--{/if}--> />
        </td>
        
        <td class="text_center"><!--{doubleval($volist.money)}--> <span class="oe_addfortb" title="点击增加或减少" f="pop_add_money" data-id="<!--{$volist.userid}-->"><i class="iconfont icon-jiahao"></i></span></td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=view&id=<!--{$volist.userid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs">管理</a>
          <div class="oe_manager_btn">
            <div class="layui-nav">
              <div class="layui-nav-item">
                <a href="javascript:;">更多<span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child layui-anim layui-anim-upbit" style="width:120px; left:-30px;">
                  <dd><a href="<!--{$oefile}-->&c=user&a=edit&id=<!--{$volist.userid}-->&<!--{$comeurl}-->">编辑资料</a></dd>
                  
                  <dd><a href="<!--{$oefile}-->&c=user&a=loginuser&id=<!--{$volist.userid}-->" target="_blank">登录会员</a></dd>
                  <!--//9.05.28 -->
                  <!--{if $config.rpzy_flag == '1'}-->
                  <dd><a href="javascript:;" f="pop_view_rp" data-uid="<!--{$volist.userid}-->">诚信查询</a></dd>
                  <!--{/if}-->
                  <dd><a href="javascript:;" data-text="确定要删除吗？" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.userid}-->&<!--{$comeurl}-->">删除会员</a></dd>
                </dl>
              </div>
            </div>
          </div>
          
       </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    <div class="oe_page_box"><!--{$showpage}--></div>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){

    });
    
    //预载图片 9.10.12
    preload_img();
});
</script>
<!--{/if}-->


<!--{if $a == "add"}-->
<div class="layui-fluid oe_fluid">
  
  <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><cite>新增会员</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="addform">
        添加保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回列表</a></span>
    </div> 
  </div>

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveadd" />
  <div class="layui-card">

    <div class="layui-card-body">
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">基本资料</li>
          <li>详情资料</li>
          <li>个人&家庭</li>
          <li>爱情规划</li>
          <li>联系&认证</li>
          <li>其他资料</li>
        </ul>
        <div class="layui-tab-content">
        
          <div class="layui-tab-item layui-show">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th><font color="red">*</font> 所在地区：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-150">
                    <!--//9.10.12 -->
                    <!--{assign var="distlist" value=vo_list("mod={area0} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="dist1" id="dist1" lay-filter="area" data-depth="1" data-name="dist" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_dist2">
                    <select name="dist2" id="dist2" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_dist3">
                    <select name="dist3" id="dist3" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_dist4">
                    <select name="dist4" id="dist4" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th><font color="red"></font> 户籍地区：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-150">
                    <!--//9.10.12 -->
                    <!--{assign var="distlist" value=vo_list("mod={hometown0} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="home1" id="home1" lay-filter="hometown" data-depth="1" data-name="home" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_home2">
                    <select name="home2" id="home2" lay-filter="hometown" data-depth="2" data-name="home" data-text="=请选择=">
                      <option value="">=请选择=</option>
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_home3">
                    <select name="home3" id="home3">
                      <option value="">=请选择=</option>
                    </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th width="15%"><font color="red">*</font> 用户名：</th>
                <td width="35%">
                  <input type="text" name="username" id="username" class="layui-input input-200" f="user_checkcan" data-type="username" />
                  <span id="username_tips"></span>
                  <br />
                  <span class="text_tip_inline">（长度3-16个字符）</span>
                </td>
                <th width="15%"><font color="red">*</font> 登录密码：</th>
                <td width="35%">
                  <input type="password" name="password" id="password" class="layui-input input-200" />
                  <span id="password_tips"></span>
                  <br />
                  <span class="text_tip_inline">（设置6-16个字符的登录密码）</span>
                </td>
              </tr>
              <tr>
                <th><font color="red">*</font> 性别：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{if !empty($idcardargs.gender)}-->
                  <!--{hook mod="var" item="gender" name="gender" type="select" text="=请选择=" value=$idcardargs.gender}-->
                  <!--{else}-->
                  <!--{hook mod="var" item="gender" name="gender" type="select" text="=请选择="}-->
                  <!--{/if}-->
                  </div>
                </td>
                <th><font color="red">*</font> 生日：</th>
                <td>
                  <!--{if !empty($idcardargs.ageyear)}-->
                  <div class="layui-input-inline input-80">
                  <!--{hook mod="year" name="ageyear" type="select" text="年" value=$idcardargs.ageyear}-->
                  </div>
                  -
                  <div class="layui-input-inline input-80">
                  <!--{hook mod="month" name="agemonth" type="select" text="月" value=$idcardargs.agemonth}-->
                  </div>
                  -
                  <div class="layui-input-inline input-80">
                  <!--{hook mod="day" name="ageday" type="select" text="日" value=$idcardargs.ageday}-->
                  </div>
                  <!--{else}-->
                  <div class="layui-input-inline input-80"><!--{hook mod="year" name="ageyear" type="select" text="年"}--></div> - 
                  <div class="layui-input-inline input-80"><!--{hook mod="month" name="agemonth" type="select" text="月"}--></div> - 
                  <div class="layui-input-inline input-80"><!--{hook mod="day" name="ageday" type="select" text="日"}--></div>
                  <!--{/if}-->
                </td>
              </tr>
              <tr>
                <th>真实姓名：</th>
                <td>
                  <input type="text" name="truename" id="truename" class="layui-input input-200" value="<!--{if !empty($idcardargs.cert_truename)}--><!--{$idcardargs.cert_truename}--><!--{/if}-->" />
                </td>
                <th>身份证号：</th>
                <td>
                  <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" f="user_checkcan" data-type="idnumber" value="<!--{if !empty($idcardargs.cert_number)}--><!--{$idcardargs.cert_number}--><!--{/if}-->" />
                  <span id="idnumber_tips"></span>
                  <input type="checkbox" name="idrz" id="idrz" lay-skin="primary" title="已认证" value="1" />
                </td>
              </tr>
              <tr>
              <th>身份证正面：</th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img1" id="img1" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img1_loading" style="display:none;"></div>
                  <input type="hidden" id="img1_thumb" name="img1_thumb" value="" />
                  <input type="hidden" id="img1_url" name="paper1" value="" />
       
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="img1_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img1" data-input="img1">移除</a>
                </td>
                <th>身份证反面：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img2" id="img2" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img2_loading" style="display:none;"></div>
                  <input type="hidden" id="img2_thumb" name="img2_thumb" value="" />
                  <input type="hidden" id="img2_url" name="paper2" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="img2_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img2" data-input="img2">移除</a>
                </td>
              </tr>
              
              <tr>
                <th>手持身份证：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img3" id="img3" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img3_loading" style="display:none;"></div>
                  <input type="hidden" id="img3_thumb" name="img3_thumb" value="" />
                  <input type="hidden" id="img3_url" name="paper3" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="img3_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img3" data-input="img3">移除</a>
                </td>
              </tr>
              
              <tr>
                <th><font color="red">*</font> 婚况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th>学历：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="education" name="education" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th><font color="red"></font> 身高：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="height" name="height" type="select" text="=请选择="}-->
                  </div>
                  CM
                </td>
                <th>体重：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="weight" name="weight" type="select" text="=请选择="}-->
                  </div>
                  KG
                </td>
              </tr>
              <tr>
                <th>会员头像：</th>
                <td colspan="3">
                  <table class="oe_tbl_form layui-form">
                    <tr>
                      <td width="320px">
                        
                        <div class="layui-btn">
                          <i class="layui-icon layui-icon-upload"></i>
                          点击上传
                          <input type="file" name="head" id="head" value="" f="but_upload_image" data-mod="avatar" data-forbidwater="1" />
                        </div>
                        <div class="upload_loading" id="head_loading" style="display:none;"></div>
                        <input type="hidden" id="head_thumb" name="head_thumb" value="" />
                        <input type="hidden" id="head_url" name="headimg" value="" />
                        
                        <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                        <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                          <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="head_preview" f="viewimg" />
                        </div>
                        <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="head" data-input="head">移除</a>
                      
                      </td>
                      <td>
                        头像状态：
                        <div class="layui-input-inline input-150">
                          <select name="headflag" id="headflag">
                            <option value="0">未上传</option>
                            <option value="2">已上传待审核</option>
                            <option value="3">审核不通过</option>
                            <option value="1">审核通过</option>
                          </select>
                        </div>
                        <span class="text_tip_inline">（只有审核通过页面才会显示头像）</span>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <th>会员状态：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <select name="flag" id="flag">
                    <option value="">请选择</option>
                    <option value="1" selected>审核通过</option>
                    <option value="2">审核未通过</option>
                    <option value="3">黑名单</option>
                    <option value="4">找到意中人</option>
                    <option value="5">隐藏资料</option>
                    <option value="0">待审核</option>
                  </select>
                  </div>
                  <br />
                  <span class="text_tip_inline">状态说明：4-找到意中人和5-隐藏资料，不会在前台会员搜索列表展示。</span>
                </td>
                <th>推荐：</th>
                <td>
                  <input type="radio" name="elite" title="是" value="1" />
                  <input type="radio" name="elite" title="否" value="0" checked />
                </td>
              </tr>
              <tr>
                <th>登录状态：</th>
                <td>
                  <input type="radio" name="loginstatus" title="正常" value="1" checked />
                  <input type="radio" name="loginstatus" title="禁止" value="0" />
                </td>
              </tr>
              
              <!--//21.04.27 -->
              <tr>
                <th>单身(婚况)声明：</th>
                <td>
                  <div class="layui-input-inline input-200">
                    <select name="flag" id="flag">
                      <option value="">请选择</option>
                      <option value="1">已声明</option>
                      <option value="2">声明到期</option>
                      <option value="0" selected>未声明</option>
                    </select>
                  </div>
                </td>
                <th>声明时间：</th>
                <td>
                  <input type="text" name="statement_time" id="statement_time" class="layui-input input-200" placeholder="格式：年-月-日 时:分:秒" />
                </td>
              </tr>
              <tr>
                <th>声明到期时间：</th>
                <td>
                  <input type="text" name="statement_validtime" id="statement_validtime" class="layui-input input-200" placeholder="格式：年-月-日 时:分:秒" />
                </td>
                <th>声明所在住址：</th>
                <td>
                  <input type="text" name="address" id="address" class="layui-input input-200" placeholder="" />
                </td>
              </tr>
              
              <tr>
                <th>备注说明：</th>
                <td colspan="3">
                  <textarea name="remark" id="remark" class="layui-textarea" style="width:50%;height:80px;"></textarea>
                </td>
              </tr>
            </table>
          </div>
          <!--//content1 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              
              <tr>
                <th width="15%">年收入：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="salary" name="salary" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th width="15%">月花费：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="spend" name="spend" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>职业：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="job" name="job" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th>交友类型：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="sort" name="sort" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>购车情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="car" name="car" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th>住房情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="house" name="house" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>小孩情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="child" name="child" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th>血型：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="blood" name="blood" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>民族：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{if !empty($idcardargs.national)}-->
                  <!--{hook mod="var" item="national" name="national" type="select" text="=请选择=" value=$idcardargs.national}-->
                  <!--{else}-->
                  <!--{hook mod="var" item="national" name="national" type="select" text="=请选择="}-->
                  <!--{/if}-->
                  </div>
                </td>
                <th>个性：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="personality" name="personality" type="select" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>外貌自评：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="looks" name="looks" type="select" text="=请选择="}-->
                  </div>
                </td>
                <th>毕业院校：</th>
                <td>
                  <div class="layui-input-inline input-100">
                    <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="scharea1" id="scharea1" lay-filter="school" data-depth="1" data-name="schid" data-text="请选择">
                      <option value="">请选择</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  <div class="layui-input-inline input-200" id="json_schid">
                    <!--{if $login.info.schid > 0}--> 
                      <!--{school type='select' name='schid' text='=请选择='}--> 
                    <!--{else}-->
                    <select name="schid" id="schid">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>
                </td>
              </tr>

              <tr>
                <th>兴趣爱好：</th>
                <td colspan="3" id="em_interest_edit" style="line-height:45px;">
                  <input type="hidden" name="interest" id="interest" value="" />
                  <!--{assign var="var_list" value=vo_list("mod={volistvar} where={interest}")}--> 
                  <!--{foreach $var_list as $val}--> 
                    <input type="checkbox" name="checkbox_interest" lay-skin="primary" lay-filter="interest" value="<!--{$val.value}-->" title="<!--{$val.text}-->" data-id="<!--{$val.value}-->">
                  <!--{/foreach}-->
                </td>
              </tr>
              
            </table>
          </div>
          <!--//content2 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">宗教信仰：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="faith" type="select" name="faith" text="=请选择="}-->
                  </div>
                </td>
                <th width="15%">是否吸烟：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="smoking" type="select" name="smoking" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>是否喝酒：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="drinking" type="select" name="drinking" text="=请选择="}-->
                  </div>
                </td>
                <th>公司性质：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="companytype" type="select" name="companytype" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>工作状态：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="workstatus" type="select" name="workstatus" text="=请选择="}-->
                  </div>
                </td>
                <th>作息习惯：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="rest" type="select" name="rest" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>锻炼习惯：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="workout" type="select" name="workout" text="=请选择="}-->
                  </div>
                </td>
                <th>身体状况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="health" type="select" name="health" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>掌握语言：</th>
                <td colspan="3" id="em_language_edit" style="line-height:30px;">
                  <input type="hidden" name="language" id="language" value="" />
                  <!--{assign var="var_list" value=vo_list("mod={volistvar} where={language}")}--> 
                  <!--{foreach $var_list as $val}--> 
                    <input type="checkbox" name="checkbox_language" lay-skin="primary" lay-filter="language" value="<!--{$val.value}-->" title="<!--{$val.text}-->" data-id="<!--{$val.value}-->">
                  <!--{/foreach}-->
                </td>
              </tr>
            </table>
          </div>
          <!--//content3 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">是否接受异地恋：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="allopatry" type="select" name="allopatry" text="=请选择="}-->
                  </div>
                </td>
                <th width="15%">何时结婚：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wedtime" type="select" name="wedtime" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>是否要小孩：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wantchild" type="select" name="wantchild" text="=请选择="}-->
                  </div>
                </td>
                <th>希望对方看重：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="focus" type="select" name="focus" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>期待的婚礼形式：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wedding" type="select" name="wedding" text="=请选择="}-->
                  </div>
                </td>
                <th>愿与对方父母同住：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="liveparent" type="select" name="liveparent" text="=请选择="}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>厨艺状况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="cooking" type="select" name="cooking" text="=请选择="}-->
                  </div>
                </td>
                <th>家务分工：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="housework" type="select" name="housework" text="=请选择="}-->
                  </div>
                </td>
              </tr>
            </table>
          </div>
          <!--//content4 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">手机号：</th>
                <td width="35%">
                  <input type="text" name="mobile" id="mobile" class="layui-input input-150" f="user_checkcan" data-type="mobile" value="<!--{if !empty($idcardargs.mobile)}--><!--{$idcardargs.mobile}--><!--{/if}-->" />
                  <span id="mobile_tips"></span>
                  <input type="checkbox" name="mobilerz" id="mobilerz" lay-skin="primary" title="已认证" value="1" />
                </td>
                <th width="15%">邮箱：</th>
                <td width="35%">
                  <input type="text" name="email" id="email" class="layui-input input-150" f="user_checkcan" data-type="email" />
                  <span id="email_tips"></span>
                  <input type="checkbox" name="emailrz" id="emailrz" lay-skin="primary" title="已认证" value="1" />
                </td>
              </tr>
              <tr>
                <th>QQ号：</th>
                <td>
                  <input type="text" name="qq" id="qq" class="layui-input input-150" f="user_checkcan" data-type="qq" />
                  <span id="qq_tips"></span>
                  <input type="checkbox" name="qqrz" id="qqrz" lay-skin="primary" title="已认证" value="1" />
                </td>
                <th>微信号：</th>
                <td>
                  <input type="text" name="weixin" id="weixin" class="layui-input input-150" />
                  <span id="weixin_tips"></span>
                  <input type="checkbox" name="weixinrz" id="weixinrz" lay-skin="primary" title="已认证" value="1" />
                </td>
              </tr>
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">其他资料认证</span>
                </td>
              </tr>
              
              <tr>
                <th>房产证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="himg" id="himg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="himg_loading" style="display:none;"></div>
                  <input type="hidden" id="himg_thumb" name="himg_thumb" value="" />
                  <input type="hidden" id="himg_url" name="houseimg" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="himg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="himg" data-input="himg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="houserz" id="houserz">
                    <option value="">认证状态</option>
                    <option value="1">已认证</option>
                    <option value="0" selected>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>车子证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="cimg" id="cimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="cimg_loading" style="display:none;"></div>
                  <input type="hidden" id="cimg_thumb" name="cimg_thumb" value="" />
                  <input type="hidden" id="cimg_url" name="carimg" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="cimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="cimg" data-input="cimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="carrz" id="carrz">
                    <option value="">认证状态</option>
                    <option value="1">已认证</option>
                    <option value="0" selected>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>学历证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="eimg" id="eimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="eimg_loading" style="display:none;"></div>
                  <input type="hidden" id="eimg_thumb" name="eimg_thumb" value="" />
                  <input type="hidden" id="eimg_url" name="eduimg" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="eimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="eimg" data-input="eimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="edurz" id="edurz">
                    <option value="">认证状态</option>
                    <option value="1">已认证</option>
                    <option value="0" selected>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>婚况证明：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="mimg" id="mimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="mimg_loading" style="display:none;"></div>
                  <input type="hidden" id="mimg_thumb" name="mimg_thumb" value="" />
                  <input type="hidden" id="mimg_url" name="marryimg" value="" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" width="30px" height="30px" id="mimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="mimg" data-input="mimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="marryrz" id="marryrz">
                    <option value="">认证状态</option>
                    <option value="1">已认证</option>
                    <option value="0" selected>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
            </table>
          </div>
          <!--//content5 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th>个人简介/独白：</th>
                <td colspan="3">
                  <textarea name="intro" id="intro" class="layui-textarea" style="width:50%;height:80px;"></textarea>
                </td>
              </tr>
              <tr>
                <th>独白状态：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-200">
                  <select name="introflag" id="introflag">
                    <option value="">=请选择=</option>
                    <option value="0">未填写</option>
                    <option value="1">通过</option>
                    <option value="2">已填写</option>
                    <option value="3">未通过</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">其他选项设置</span>
                </td>
              </tr>
              <tr>
                <th width="15%">微信Openid：</th>
                <td width="35%"><input type="text" name="weixinid" id="weixinid" class="layui-input input-250" placeholder="微信第三方登录编号" /></td>
                <th width="15%">QQ Openid：</th>
                <td width="35%"><input type="text" name="qqopenid" id="qqopenid" class="layui-input input-250" placeholder="QQ第三方登录编号" /></td>
              </tr>
              <tr>
                <th>新浪Openid：</th>
                <td><input type="text" name="sinaopenid" id="sinaopenid" class="layui-input input-250" placeholder="新浪微博第三方登录编号" /></td>
                <th>微信Unionid：</th>
                <td><input type="text" name="wxunionid" id="wxunionid" class="layui-input input-250" placeholder="微信开放平台第三方登录编号" /></td>
              </tr>
              <tr>
                <th>微信提醒：</th>
                <td>
                  <input type="radio" name="weixintip" title="开启" value="1" checked /> 
                  <input type="radio" name="weixintip" title="关闭" value="0" />
                </td>
                <th>手机提醒：</th>
                <td>
                  <input type="radio" name="mobiletip" title="开启" value="1" checked /> 
                  <input type="radio" name="mobiletip" title="关闭" value="0" />
                </td>
              </tr>
              <tr>
                <th>邮箱提醒：</th>
                <td>
                  <input type="radio" name="emailtip" title="开启" value="1" checked /> 
                  <input type="radio" name="emailtip" title="关闭" value="0" />
                </td>
                <th>手机号码：</th>
                <td>
                  <input type="radio" name="hidemobile" title="公开" value="0" checked /> 
                  <input type="radio" name="hidemobile" title="保密" value="1" />
                  
                  <input type="hidden" name="keepsecret" id="keepsecret" value="1" />
                  
                  <input type="hidden" name="maplng" id="maplng" class="layui-input input-150" value="" />
                  <input type="hidden" name="maplat" id="maplat" class="layui-input input-150" value="" />
                </td>
              </tr>
              
              <!--{if $config.baidumap_flag == '1'}-->
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">标注会员所在地点地图坐标</span>
                </td>
              </tr>
              <tr>
                <th>标注地图：</th>
                <td colspan="3">
                  <iframe id="map_iframe" style="width:880px;height:480px;frameborder:0;" frameborder="0" src="<!--{$oefile}-->&c=index&a=map&maplng=&maplat="></iframe>
                </td>
              </tr>
              <!--{/if}-->
              
            </table>
          </div>
          <!--//content6 -->
          
        </div>
      </div>
      
    </div> 
    
  </div>
  </form>
  
  <!--//9.05.20 -->
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="addform">
      添加保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
  
</div>

<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){ 
    
    });

    
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(addform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
                if ($("#dist1").val().length  == 0) {
                    layer.msg("请选择所在地区");
                    return false;
                }
                if ($("#dist2").val().length  == 0) {
                    layer.msg("请选择所在地区");
                    return false;
                }
                if ($("#username").val().length  == 0) {
                    layer.msg("请填写用户名");
                    return false;
                }
                if ($("#password").val().length  == 0) {
                    layer.msg("请填写登录密码");
                    return false;
                }
                if ($("#gender").val().length  == 0) {
                    layer.msg("请选择性别");
                    return false;
                }
                if ($("#ageyear").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#agemonth").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#ageday").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#marry").val().length  == 0) {
                    layer.msg("请选择婚况");
                    return false;
                }
                
                //遍历兴趣爱好
                $_string = "";
                $("input[name='checkbox_interest']:checked").each(function() {
                    $_string += $(this).val()+",";
                });
                $("#interest").val($_string);
                
                //遍历语言
                $_string = "";
                $("input[name='checkbox_language']:checked").each(function() {
                    $_string += $(this).val()+",";
                });
                $("#language").val($_string);
                
                //处理地图坐标 8.12.07
                if ($("#map_iframe").length > 0) {
                    var _iframe = document.getElementById('map_iframe').contentWindow;
                    var _lng =_iframe.document.getElementById('maplng');
                    $lng = _lng.value;
                    var _lat =_iframe.document.getElementById('maplat');
                    $lat = _lat.value;
                    
                    //if ($lng.length > 0) {
                        $("#maplng").val($lng);
                    //}
                    //if ($lat.length > 0) {
                        $("#maplat").val($lat);
                    //}
                }
                
                
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "edit"}-->
<div class="layui-fluid oe_fluid">
  <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><cite>编辑会员</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">
        <!--{if $from == "manage"}-->
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=view&id=<!--{$user.userid}-->&<!--{$comeurl}-->">返回上一页</a>
        <!--{else}-->
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回上一页</a>
        <!--{/if}-->
      </span>
    </div> 
  </div>

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->&from=<!--{$from}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveedit" />
  <input type="hidden" name="id" id="id" value="<!--{$id}-->" />
  <div class="layui-card">

    <div class="layui-card-body">
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">基本资料</li>
          <li>详情资料</li>
          <li>个人&家庭</li>
          <li>爱情规划</li>
          <li>联系&认证</li>
          <li>其他资料</li>
          <li>择偶要求</li>
        </ul>
        <div class="layui-tab-content">
        
          <div class="layui-tab-item layui-show">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th><font color="red">*</font> 所在地区：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-150">
                    <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="dist1" id="dist1" lay-filter="area" data-depth="1" data-name="dist" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.dist1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  
                  <div class="layui-input-inline input-150" id="json_dist2">
                    <!--{if $user.dist1 > 0}--> 
                    <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$user.dist1}-->'}")}-->
                    <select name="dist2" id="dist2" lay-filter="area" data-depth="2" data-name="dist" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist2 as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.dist2 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                    <!--{else}-->
                    <select name="dist2" id="dist2" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>
                  
                  <div class="layui-input-inline input-150" id="json_dist3">
                    <!--{if $user.dist2 > 0}--> 
                    <!--{assign var="distlist3" value=vo_list("mod={area} where={v.parentid='<!--{$user.dist2}-->'}")}-->
                    <select name="dist3" id="dist3" lay-filter="area" data-depth="3" data-name="dist" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist3 as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.dist3 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                    <!--{else}-->
                    <select name="dist3" id="dist3" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>

                  <div class="layui-input-inline input-150" id="json_dist4">
                    <!--{if $user.dist3 > 0}--> 
                    <!--{assign var="distlist4" value=vo_list("mod={area} where={v.parentid='<!--{$user.dist3}-->'}")}-->
                    <select name="dist4" id="dist4">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist4 as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.dist4 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                    <!--{else}-->
                    <select name="dist4" id="dist4">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>
                </td>
              </tr>
              <tr>
                <th><font color="red"></font> 户籍地区：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-150">
                    <!--{assign var="distlist" value=vo_list("mod={hometown} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="home1" id="home1" lay-filter="hometown" data-depth="1" data-name="home" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $user.home1}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  <div class="layui-input-inline input-150" id="json_home2">
                    <!--{if $user.home1 > 0}--> 
                      <!--{assign var="distlist" value=vo_list("mod={hometown} where={v.parentid='<!--{$user.home1}-->'} orderby={v.orders ASC}")}-->
                      <select name="home2" id="home2" lay-filter="hometown" data-depth="2" data-name="home" data-text="=请选择=">
                        <option value="">=请选择=</option>
                        <!--{foreach $distlist as $val}-->
                        <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $user.home2}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                        <!--{/foreach}-->
                      </select>
                      <!--{else}-->
                      <select name="home2" id="home2" lay-filter="hometown" data-depth="2" data-name="home" data-text="=请选择=">
                        <option value="">=请选择=</option>
                      </select>
                    <!--{/if}--> 
                  </div>
                  
                  <div class="layui-input-inline input-150" id="json_home3">
                    <!--{if $user.home2 > 0}--> 
                      <!--{assign var="distlist" value=vo_list("mod={hometown} where={v.parentid='<!--{$user.home2}-->'} orderby={v.orders ASC}")}-->
                      <select name="home3" id="home3">
                        <option value="">=请选择=</option>
                        <!--{foreach $distlist as $val}-->
                        <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $user.home3}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                        <!--{/foreach}-->
                      </select>
                      <!--{else}-->
                      <select name="home3" id="home3">
                        <option value="">=请选择=</option>
                      </select>
                    <!--{/if}--> 
                  </div>
                  
                </td>
              </tr>
              <tr>
                <th width="15%"><font color="red">*</font> 用户名：</th>
                <td width="35%">
                  <input type="text" name="username" id="username" class="layui-input input-200" value="<!--{$user.username}-->" f="user_checkcan" data-type="username" data-uid="<!--{$user.userid}-->" />
                  <span id="username_tips"></span>
                  <br />
                  <span class="text_tip_inline">（长度3-16个字符）</span>
                </td>
                <th width="15%"><font color="red"></font> 登录密码：</span></th>
                <td width="35%">
                  <input type="password" name="password" id="password" class="layui-input input-200" />
                  <span id="password_tips"></span>
                  <br />
                  <span class="text_tip_inline">（不修改请留空）</span>
                </td>
              </tr>
              <tr>
                <th><font color="red">*</font> 性别：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="gender" name="gender" type="select" text="=请选择=" value=$user.gender}-->
                  </div>
                </td>
                <th><font color="red">*</font> 生日：</th>
                <td>
                  <div class="layui-input-inline input-80"><!--{hook mod="year" name="ageyear" type="select" text="年"  value=$user.ageyear}--></div> - 
                  <div class="layui-input-inline input-80"><!--{hook mod="month" name="agemonth" type="select" text="月" value=$user.agemonth}--></div> - 
                  <div class="layui-input-inline input-80"><!--{hook mod="day" name="ageday" type="select" text="日" value=$user.ageday}--></div>
                </td>
              </tr>
              <tr>
                <th>真实姓名：</th>
                <td>
                  <input type="text" name="truename" id="truename" class="layui-input input-200" value="<!--{$user.truename}-->" />
                </td>
                <th>身份证号：</th>
                <td>
                  <!--//9.10.22 -->
                  <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" f="user_checkcan" data-type="idnumber" data-uid="<!--{$user.userid}-->" value="<!--{$user.idnumber}-->" />
                  <span id="idnumber_tips"></span>
                  <input type="checkbox" name="idrz" id="idrz" lay-skin="primary" title="已认证" value="1"<!--{if $user.idrz == '1'}--> checked<!--{/if}--> />

                </td>
              </tr>
              <tr>
                <th>身份证正面：</th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img1" id="img1" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img1_loading" style="display:none;"></div>
                  <input type="hidden" id="img1_thumb" name="img1_thumb" value="" />
                  <input type="hidden" id="img1_url" name="paper1" value="<!--{$user.paper1}-->" />
       
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.paper1)}--><!--{$user.paper1}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="img1_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img1" data-input="img1">移除</a>
                </td>
                <th>身份证反面：</th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img2" id="img2" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img2_loading" style="display:none;"></div>
                  <input type="hidden" id="img2_thumb" name="img2_thumb" value="" />
                  <input type="hidden" id="img2_url" name="paper2" value="<!--{$user.paper2}-->" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.paper2)}--><!--{$user.paper2}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="img2_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img2" data-input="img2">移除</a>
                </td>
              </tr>
              
              <tr>
                <th>手持身份证：</th>
                <td colspan="3">
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img3" id="img3" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="img3_loading" style="display:none;"></div>
                  <input type="hidden" id="img3_thumb" name="img3_thumb" value="" />
                  <input type="hidden" id="img3_url" name="paper3" value="<!--{$user.paper3}-->" />
       
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.paper3)}--><!--{$user.paper3}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="img3_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img3" data-input="img3">移除</a>
                </td>
              </tr>
              
              <tr>
                <th><font color="red">*</font> 婚况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择=" value=$user.marry}-->
                  </div>
                </td>
                <th>学历：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="education" name="education" type="select" text="=请选择=" value=$user.education}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th><font color="red"></font> 身高：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="height" name="height" type="select" text="=请选择=" value=$user.height}-->
                  </div>
                  CM
                </td>
                <th>体重：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="weight" name="weight" type="select" text="=请选择=" value=$user.weight}-->
                  </div>
                  KG
                </td>
              </tr>
              <tr>
                <th>会员头像：</th>
                <td colspan="3">
                  <table class="oe_tbl_form layui-form">
                    <tr>
                      <td width="320px">
                        
                        <div class="layui-btn">
                          <i class="layui-icon layui-icon-upload"></i>
                          点击上传
                          <input type="file" name="head" id="head" value="" f="but_upload_image" data-mod="avatar" data-forbidwater="1" />
                        </div>
                        <div class="upload_loading" id="head_loading" style="display:none;"></div>
                        <input type="hidden" id="head_thumb" name="head_thumb" value="" />
                        <input type="hidden" id="head_url" name="headimg" value="<!--{$user.headimg}-->" />
                        
                        <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                        <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                          <img src="<!--{$urlpath}--><!--{if !empty($user.headimg)}--><!--{$user.headimg}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="head_preview" f="viewimg" />
                        </div>
                        
                        <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="head" data-input="head">移除</a>
                      
                      </td>
                      <td>
                        头像状态：
                        <div class="layui-input-inline input-150">
                          <select name="headflag" id="headflag">
                            <option value="0"<!--{if $user.headflag == '0'}--> selected<!--{/if}-->>未上传</option>
                            <option value="2"<!--{if $user.headflag == '2'}--> selected<!--{/if}-->>已上传待审核</option>
                            <option value="3"<!--{if $user.headflag == '3'}--> selected<!--{/if}-->>审核不通过</option>
                            <option value="1"<!--{if $user.headflag == '1'}--> selected<!--{/if}-->>审核通过</option>
                          </select>
                        </div>
                        <span class="text_tip_inline">（只有审核通过页面才会显示头像）</span>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <th>会员状态：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <select name="flag" id="flag">
                    <option value="">请选择</option>
                    <option value="1"<!--{if $user.flag == '1'}--> selected<!--{/if}-->>审核通过</option>
                    <option value="2"<!--{if $user.flag == '2'}--> selected<!--{/if}-->>审核未通过</option>
                    <option value="3"<!--{if $user.flag == '3'}--> selected<!--{/if}-->>黑名单</option>
                    <option value="4"<!--{if $user.flag == '4'}--> selected<!--{/if}-->>找到意中人</option>
                    <option value="5"<!--{if $user.flag == '5'}--> selected<!--{/if}-->>隐藏资料</option>
                    <option value="0"<!--{if $user.flag == '0'}--> selected<!--{/if}-->>待审核</option>
                  </select>
                  </div>
                  <br />
                  <span class="text_tip_inline">状态说明：4-找到意中人和5-隐藏资料，不会在前台会员搜索列表展示。</span>
                </td>
                <th>推荐：</th>
                <td>
                  <input type="radio" name="elite" title="是" value="1"<!--{if $user.elite == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="elite" title="否" value="0"<!--{if $user.elite == '0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>登录状态：</th>
                <td>
                  <input type="radio" name="loginstatus" title="正常" value="1"<!--{if $user.loginstatus == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="loginstatus" title="禁止" value="0"<!--{if $user.loginstatus == '0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <!--//21.04.27 -->
              <tr>
                <th>单身(婚况)声明：</th>
                <td>
                  <div class="layui-input-inline input-200">
                    <select name="flag" id="flag">
                      <option value="">请选择</option>
                      <option value="1"<!--{if $user.statement == '1'}--> selected<!--{/if}-->>已声明</option>
                      <option value="2"<!--{if $user.statement == '2'}--> selected<!--{/if}-->>声明到期</option>
                      <option value="0"<!--{if $user.statement == '0'}--> selected<!--{/if}-->>未声明</option>
                    </select>
                  </div>
                </td>
                <th>声明时间：</th>
                <td>
                  <input type="text" name="statement_time" id="statement_time" class="layui-input input-200" placeholder="格式：年-月-日 时:分:秒" value="<!--{if $user.statement_time > 0}--><!--{$user.statement_time|date_format:"%Y-%m-%d %H:%M:%S"}--><!--{/if}-->" />
                </td>
              </tr>
              <tr>
                <th>声明到期时间：</th>
                <td>
                  <input type="text" name="statement_validtime" id="statement_validtime" class="layui-input input-200" placeholder="格式：年-月-日 时:分:秒" value="<!--{if $user.statement_validtime > 0}--><!--{$user.statement_validtime|date_format:"%Y-%m-%d %H:%M:%S"}--><!--{/if}-->" />
                </td>
                <th>声明所在住址：</th>
                <td>
                  <input type="text" name="address" id="address" class="layui-input input-200" placeholder="" value="<!--{$user.address}-->" />
                </td>
              </tr>
              
              
              <tr>
                <th>备注说明：</th>
                <td colspan="3">
                  <textarea name="remark" id="remark" class="layui-textarea" style="width:50%;height:80px;"><!--{$user.remark}--></textarea>
                </td>
              </tr>
            </table>
          </div>
          <!--//content1 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">年收入：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="salary" name="salary" type="select" text="=请选择=" value=$user.salary}-->
                  </div>
                </td>
                <th width="15%">月花费：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="spend" name="spend" type="select" text="=请选择=" value=$user.spend}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>职业：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="job" name="job" type="select" text="=请选择=" value=$user.job}-->
                  </div>
                </td>
                <th>交友类型：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="sort" name="sort" type="select" text="=请选择=" value=$user.sort}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>购车情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="car" name="car" type="select" text="=请选择=" value=$user.car}-->
                  </div>
                </td>
                <th>住房情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="house" name="house" type="select" text="=请选择=" value=$user.house}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>小孩情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="child" name="child" type="select" text="=请选择=" value=$user.child}-->
                  </div>
                </td>
                <th>血型：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="blood" name="blood" type="select" text="=请选择=" value=$user.blood}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>民族：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="national" name="national" type="select" text="=请选择=" value=$user.national}-->
                  </div>
                </td>
                <th>个性：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="personality" name="personality" type="select" text="=请选择=" value=$user.personality}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>外貌自评：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="looks" name="looks" type="select" text="=请选择=" value=$user.looks}-->
                  </div>
                </td>
                <th>毕业院校：</th>
                <td>
                  <div class="layui-input-inline input-100">
                    <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="scharea1" id="scharea1" lay-filter="school" data-depth="1" data-name="schid" data-text="请选择">
                      <option value="">请选择</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $val.areaid == $user.scharea1}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  <div class="layui-input-inline input-200" id="json_schid">
                    <!--{if $user.schid > 0}--> 
                      <!--{school type='select' name='schid' text='=请选择=' areaid=$user.scharea1 value=$user.schid}--> 
                    <!--{else}-->
                    <select name="schid" id="schid">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>
                </td>
              </tr>

              <tr>
                <th>兴趣爱好：</th>
                <td colspan="3" id="em_interest_edit" style="line-height:45px;">
                  <input type="hidden" name="interest" id="interest" value="<!--{$user.interest}-->" />
                  <!--{assign var="var_list" value=vo_list("mod={volistvar} where={interest}")}--> 
                  <!--{foreach $var_list as $val}--> 
                  <!--{assign var="is_select" value=<!--{tofound value="<!--{$user.interest}-->" tofound="<!--{$val.value}-->"}-->}--> 
                    <input type="checkbox" name="checkbox_interest" lay-skin="primary" lay-filter="interest" value="<!--{$val.value}-->" title="<!--{$val.text}-->" data-id="<!--{$val.value}-->"<!--{if $is_select == '1'}--> checked="true"<!--{/if}-->>
                  <!--{/foreach}-->
                </td>
              </tr>
              
            </table>
          </div>
          <!--//content2 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">宗教信仰：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="faith" type="select" name="faith" text="=请选择=" value=$user.faith}-->
                  </div>
                </td>
                <th width="15%">是否吸烟：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="smoking" type="select" name="smoking" text="=请选择=" value=$user.smoking}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>是否喝酒：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="drinking" type="select" name="drinking" text="=请选择=" value=$user.drinking}-->
                  </div>
                </td>
                <th>公司性质：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="companytype" type="select" name="companytype" text="=请选择=" value=$user.companytype}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>工作状态：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="workstatus" type="select" name="workstatus" text="=请选择=" value=$user.workstatus}-->
                  </div>
                </td>
                <th>作息习惯：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="rest" type="select" name="rest" text="=请选择=" value=$user.rest}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>锻炼习惯：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="workout" type="select" name="workout" text="=请选择=" value=$user.workout}-->
                  </div>
                </td>
                <th>身体状况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="health" type="select" name="health" text="=请选择=" value=$user.health}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>掌握语言：</th>
                <td colspan="3" id="em_language_edit" style="line-height:30px;">
                  <input type="hidden" name="language" id="language" value="<!--{$user.language}-->" />
                  <!--{assign var="var_list" value=vo_list("mod={volistvar} where={language}")}--> 
                  <!--{foreach $var_list as $val}-->
                    <!--{assign var="is_select" value=<!--{tofound value="<!--{$user.language}-->" tofound="<!--{$val.value}-->"}-->}--> 
                    <input type="checkbox" name="checkbox_language" lay-skin="primary" lay-filter="language" value="<!--{$val.value}-->" title="<!--{$val.text}-->" data-id="<!--{$val.value}-->"<!--{if $is_select == '1'}--> checked<!--{/if}-->>
                  <!--{/foreach}-->
                </td>
              </tr>
            </table>
          </div>
          <!--//content3 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">是否接受异地恋：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="allopatry" type="select" name="allopatry" text="=请选择=" value=$user.allopatry}-->
                  </div>
                </td>
                <th width="15%">何时结婚：</th>
                <td width="35%">
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wedtime" type="select" name="wedtime" text="=请选择=" value=$user.wedtime}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>是否要小孩：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wantchild" type="select" name="wantchild" text="=请选择=" value=$user.wantchild}-->
                  </div>
                </td>
                <th>希望对方看重：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="focus" type="select" name="focus" text="=请选择=" value=$user.focus}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>期待的婚礼形式：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="wedding" type="select" name="wedding" text="=请选择=" value=$user.wedding}-->
                  </div>
                </td>
                <th>愿与对方父母同住：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="liveparent" type="select" name="liveparent" text="=请选择=" value=$user.liveparent}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>厨艺状况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="cooking" type="select" name="cooking" text="=请选择=" value=$user.cooking}-->
                  </div>
                </td>
                <th>家务分工：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="housework" type="select" name="housework" text="=请选择=" value=$user.housework}-->
                  </div>
                </td>
              </tr>
            </table>
          </div>
          <!--//content4 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">手机号：</th>
                <td width="35%">
                  <input type="text" name="mobile" id="mobile" class="layui-input input-150" maxlength="11" f="user_checkcan" data-type="mobile" data-uid="<!--{$user.userid}-->" value="<!--{$user.mobile}-->" />
                  <span id="mobile_tips"></span>
                  <input type="checkbox" name="mobilerz" id="mobilerz" lay-skin="primary" title="已认证" value="1"<!--{if $user.mobilerz == '1'}--> checked<!--{/if}--> /> 

                </td>
                <th width="15%">邮箱：</th>
                <td width="35%">
                  <input type="text" name="email" id="email" class="layui-input input-150" f="user_checkcan" data-type="email" data-uid="<!--{$user.userid}-->" value="<!--{$user.email}-->" />
                  <span id="email_tips"></span>
                  <input type="checkbox" name="emailrz" id="emailrz" lay-skin="primary" title="已认证" value="1"<!--{if $user.emailrz == '1'}--> checked<!--{/if}--> /> 

                </td>
              </tr>
              <tr>
                <th>QQ号：</th>
                <td>
                  <input type="text" name="qq" id="qq" class="layui-input input-150" f="user_checkcan" data-type="qq" data-uid="<!--{$user.userid}-->" value="<!--{$user.qq}-->" />
                  <span id="qq_tips"></span>
                  <input type="checkbox" name="qqrz" id="qqrz" lay-skin="primary" title="已认证" value="1"<!--{if $user.qqrz == '1'}--> checked<!--{/if}--> /> 
                  
                </td>
                <th>微信号：</th>
                <td>
                  <input type="text" name="weixin" id="weixin" class="layui-input input-150" value="<!--{$user.weixin}-->" />
                  <span id="weixin_tips"></span>
                  <input type="checkbox" name="weixinrz" id="weixinrz" lay-skin="primary" title="已认证" value="1"<!--{if $user.weixinrz == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">其他资料认证</span>
                </td>
              </tr>
              
              <tr>
                <th>房产证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="himg" id="himg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="himg_loading" style="display:none;"></div>
                  <input type="hidden" id="himg_thumb" name="himg_thumb" value="" />
                  <input type="hidden" id="himg_url" name="houseimg" value="<!--{$user.houseimg}-->" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.houseimg)}--><!--{$user.houseimg}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="himg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="himg" data-input="himg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="houserz" id="houserz">
                    <option value="">认证状态</option>
                    <option value="1"<!--{if $user.houserz == '1'}--> selected<!--{/if}-->>已认证</option>
                    <option value="0"<!--{if $user.houserz == '0'}--> selected<!--{/if}-->>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>车子证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="cimg" id="cimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="cimg_loading" style="display:none;"></div>
                  <input type="hidden" id="cimg_thumb" name="cimg_thumb" value="" />
                  <input type="hidden" id="cimg_url" name="carimg" value="<!--{$user.carimg}-->" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.carimg)}--><!--{$user.carimg}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="cimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="cimg" data-input="cimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="carrz" id="carrz">
                    <option value="">认证状态</option>
                    <option value="1"<!--{if $user.carrz == '1'}--> selected<!--{/if}-->>已认证</option>
                    <option value="0"<!--{if $user.carrz == '0'}--> selected<!--{/if}-->>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>学历证件：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="eimg" id="eimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="eimg_loading" style="display:none;"></div>
                  <input type="hidden" id="eimg_thumb" name="eimg_thumb" value="" />
                  <input type="hidden" id="eimg_url" name="eduimg" value="<!--{$user.eduimg}-->" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.eduimg)}--><!--{$user.eduimg}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="eimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="eimg" data-input="eimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="edurz" id="edurz">
                    <option value="">认证状态</option>
                    <option value="1"<!--{if $user.edurz == '1'}--> selected<!--{/if}-->>已认证</option>
                    <option value="0"<!--{if $user.edurz == '0'}--> selected<!--{/if}-->>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>婚况证明：<span class="f_red"></span> </th>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="mimg" id="mimg" value="" f="but_upload_image" data-mod="paper" />
                  </div>
                  <div class="upload_loading" id="mimg_loading" style="display:none;"></div>
                  <input type="hidden" id="mimg_thumb" name="mimg_thumb" value="" />
                  <input type="hidden" id="mimg_url" name="marryimg" value="<!--{$user.marryimg}-->" />
                  
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($user.marryimg)}--><!--{$user.marryimg}--><!--{else}-->tpl/static/images/waitimg.jpg<!--{/if}-->" width="30px" height="30px" id="mimg_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="mimg" data-input="mimg">移除</a>
                </td>
                <th>认证状态：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <select name="marryrz" id="marryrz">
                    <option value="">认证状态</option>
                    <option value="1"<!--{if $user.marryrz == '1'}--> selected<!--{/if}-->>已认证</option>
                    <option value="0"<!--{if $user.marryrz == '0'}--> selected<!--{/if}-->>未认证</option>
                  </select>
                  </div>
                </td>
              </tr>
            </table>
          </div>
          <!--//content5 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th>个人简介/独白：</th>
                <td colspan="3">
                  <textarea name="intro" id="intro" class="layui-textarea" style="width:50%;height:80px;"><!--{$user.intro}--></textarea>
                </td>
              </tr>
              <tr>
                <th>独白状态：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-200">
                  <select name="introflag" id="introflag">
                    <option value="">=请选择=</option>
                    <option value="0"<!--{if $user.introflag == '0'}--> selected<!--{/if}-->>未填写</option>
                    <option value="1"<!--{if $user.introflag == '1'}--> selected<!--{/if}-->>通过</option>
                    <option value="2"<!--{if $user.introflag == '2'}--> selected<!--{/if}-->>已填写</option>
                    <option value="3"<!--{if $user.introflag == '3'}--> selected<!--{/if}-->>未通过</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">其他选项设置</span>
                </td>
              </tr>
              <tr>
                <th width="15%">微信Openid：</th>
                <td width="35%"><input type="text" name="weixinid" id="weixinid" class="layui-input input-250" placeholder="微信第三方登录编号" value="<!--{$user.weixinid}-->" /></td>
                <th width="15%">QQ Openid：</th>
                <td width="35%"><input type="text" name="qqopenid" id="qqopenid" class="layui-input input-250" placeholder="QQ第三方登录编号" value="<!--{$user.qqopenid}-->" /></td>
              </tr>
              <tr>
                <th>新浪Openid：</th>
                <td><input type="text" name="sinaopenid" id="sinaopenid" class="layui-input input-250" placeholder="新浪微博第三方登录编号" value="<!--{$user.sinaopenid}-->" /></td>
                <th>微信Unionid：</th>
                <td><input type="text" name="wxunionid" id="wxunionid" class="layui-input input-250" placeholder="微信开放平台第三方登录编号" value="<!--{$user.wxunionid}-->" /></td>
              </tr>
              <!--//9.11.25 -->
              <tr>
                <th>微信提醒：</th>
                <td>
                  <input type="radio" name="weixintip" title="开启" value="1"<!--{if $user.weixintip == '1'}--> checked<!--{/if}--> /> 
                  <input type="radio" name="weixintip" title="关闭" value="0"<!--{if $user.weixintip == '0'}--> checked<!--{/if}--> />
                </td>
                <th>手机提醒：</th>
                <td>
                  <input type="radio" name="mobiletip" title="开启" value="1"<!--{if $user.mobiletip == '1'}--> checked<!--{/if}--> /> 
                  <input type="radio" name="mobiletip" title="关闭" value="0"<!--{if $user.mobiletip == '0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>邮箱提醒：</th>
                <td>
                  <input type="radio" name="emailtip" title="开启" value="1"<!--{if $user.emailtip == '1'}--> checked<!--{/if}--> /> 
                  <input type="radio" name="emailtip" title="关闭" value="0"<!--{if $user.emailtip == '0'}--> checked<!--{/if}--> />
                </td>
                <th>手机号码：</th>
                <td>
                  <input type="radio" name="hidemobile" title="公开" value="0"<!--{if $user.hidemobile == '0'}--> checked<!--{/if}--> /> 
                  <input type="radio" name="hidemobile" title="保密" value="1"<!--{if $user.hidemobile == '1'}--> checked<!--{/if}--> />
                  <input type="hidden" name="keepsecret" id="keepsecret" value="<!--{$user.keepsecret}-->" />
                  <input type="hidden" name="maplng" id="maplng" class="layui-input input-150" value="<!--{$user.maplng}-->" />
                  <input type="hidden" name="maplat" id="maplat" class="layui-input input-150" value="<!--{$user.maplat}-->" />
                </td>
              </tr>
              
              <!--{if $config.baidumap_flag == '1'}-->
              <tr>
                <td colspan="4">
                  <span class="text_tip_inline">标注会员所在地点地图坐标</span>
                </td>
              </tr>
              <tr>
                <th>标注地图：</th>
                <td colspan="3">
                  <iframe id="map_iframe" style="width:880px;height:480px;frameborder:0;" frameborder="0" src="<!--{$oefile}-->&c=index&a=map&maplng=<!--{$user.maplng}-->&maplat=<!--{$user.maplat}-->"></iframe>
                </td>
              </tr>
              <!--{/if}-->
              
              
            </table>
          </div>
          <!--//content6 -->
          
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th>性别：</th>
                <td colspan="3">
                  <div class="layui-input-inline input-200">
                  <select name="cond_gender" id="cond_gender">
                    <option value="">不限</option>
                    <!--{if isset($user.cond.gender)}-->
                    <option value="1"<!--{if $user.cond.gender == '1'}--> selected<!--{/if}-->>男</option>
                    <option value="2"<!--{if $user.cond.gender == '2'}--> selected<!--{/if}-->>女</option>
                    <!--{else}-->
                    <option value="1"<!--{if $user.gender == '2'}--> selected<!--{/if}-->>男</option>
                    <option value="2"<!--{if $user.gender == '1'}--> selected<!--{/if}-->>女</option>
                    <!--{/if}-->
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th width="15%">年龄：</th>
                <td width="35%">
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="age" type="select" name="cond_age1" text="不限" value=$user.cond.age1}-->
                  </div>
                  - 
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="age" type="select" name="cond_age2" text="不限" value=$user.cond.age2}-->
                  </div>
                  岁
                </td>
                <th width="15%">身高：</th>
                <td width="35%">
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="height" type="select" name="cond_height1" text="不限" value=$user.cond.height1}-->
                  </div>
                  - 
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="height" type="select" name="cond_height2" text="不限" value=$user.cond.height2}-->
                  </div>
                  CM
                </td>
              </tr>
              <tr>
                <th>体重：</th>
                <td>
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="weight" type="select" name="cond_weight1" text="不限" value=$user.cond.weight1}-->
                  </div>
                  - 
                  <div class="layui-input-inline input-100">
                  <!--{hook mod="weight" type="select" name="cond_weight2" text="不限" value=$user.cond.weight2}-->
                  </div>
                  KG
                </td>
                <th>婚况：</th>
                <td id="em_cond_marry_edit">
                  <input type="hidden" name="cond_marry" id="cond_marry" value="<!--{$user.cond.marry}-->" />
                  <!--{assign var="var_list" value=vo_list("mod={volistvar} where={marry}")}--> 
                  <!--{foreach $var_list as $val}-->
                    <!--{assign var="is_select" value=<!--{tofound value="<!--{$user.cond.marry}-->" tofound="<!--{$val.value}-->"}-->}--> 
                    <input type="checkbox" name="checkbox_cond_marry" lay-skin="primary" lay-filter="cond_marry" value="<!--{$val.value}-->" title="<!--{$val.text}-->" data-id="<!--{$val.value}-->"<!--{if $is_select == '1'}--> checked<!--{/if}-->>
                  <!--{/foreach}-->
                </td>
              </tr>
              <tr>
                <th>住房：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="house" type="select" name="cond_house" text="不限" value=$user.cond.house}-->
                  </div>
                </td>
                <th>购车：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="car" type="select" name="cond_car" text="不限" value=$user.cond.car}-->
                  </div>
                </td>
              </tr>
              <tr>
                <th>学历：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="education" type="select" name="cond_education" text="不限" value=$user.cond.education}--> 
                  </div>
                  <input type="checkbox" name="cond_eduup" id="cond_eduup" lay-skin="primary" title="或以上" value="1"<!--{if $user.cond.eduup == '1'}--> checked<!--{/if}--> />
                </td>
                <th>收入：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="salary" type="select" name="cond_salary" text="不限" value=$user.cond.salary}--> 
                  </div>
                  <input type="checkbox" name="cond_salaryup" id="cond_salaryup" lay-skin="primary" title="或以上" value="1"<!--{if $user.cond.salaryup == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>小孩情况：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <!--{hook mod="var" item="child" type="select" name="cond_child" text="不限" value=$user.cond.child}-->
                  </div>
                </td>
                <th>头像：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <select name="cond_avatar" id="cond_avatar">
                    <option value="">不限</option>
                    <option value="1"<!--{if $user.cond.avatar == '1'}--> selected<!--{/if}-->>有头像</option>
                  </select>
                  </div>
                </td>
              </tr>
              <tr>
                <th>诚信：</th>
                <td>
                  <div class="layui-input-inline input-200">
                  <select name="cond_rz" id="cond_rz">
                    <option value="">不限</option>
                    <option value="1"<!--{if $user.cond.rz == '1'}--> selected<!--{/if}-->>认证会员</option>
                  </select>
                  </div>
                </td>
                <th>所在地区：</th>
                <td>
                
                  <div class="layui-input-inline input-150">
                    <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
                    <select name="cond_area1" id="cond_area1" lay-filter="area" data-depth="1" data-name="cond_area" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.cond.area1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                  </div>
                  
                  <div class="layui-input-inline input-150" id="json_cond_area2">
                    <!--{if $user.cond.area1 > 0}--> 
                    <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$user.cond.area1}-->'}")}-->
                    <select name="cond_area2" id="cond_area2" lay-filter="area" data-depth="2" data-name="cond_area" data-text="=请选择=">
                      <option value="">=请选择=</option>
                      <!--{foreach $distlist2 as $val}-->
                      <option value="<!--{$val.areaid}-->"<!--{if $user.cond.area2 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                      <!--{/foreach}-->
                    </select>
                    <!--{else}-->
                    <select name="cond_area2" id="cond_area2" lay-filter="area">
                      <option value="">=请选择=</option>
                    </select>
                    <!--{/if}--> 
                  </div>
                
                </td>
              </tr>
              
            </table>
          </div>
          <!--//content7 -->
          
        </div>
      </div>
      
    </div> 
    
  </div>
  </form>
  
  <!--//9.05.20 -->
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
  
</div>

<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){ 
    
    });

    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
                if ($("#dist1").val().length  == 0) {
                    layer.msg("请选择所在地区");
                    return false;
                }
                if ($("#dist2").val().length  == 0) {
                    layer.msg("请选择所在地区");
                    return false;
                }
                if ($("#username").val().length  == 0) {
                    layer.msg("请填写用户名");
                    return false;
                }
                if ($("#gender").val().length  == 0) {
                    layer.msg("请选择性别");
                    return false;
                }
                if ($("#ageyear").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#agemonth").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#ageday").val().length  == 0) {
                    layer.msg("请设置生日");
                    return false;
                }
                if ($("#marry").val().length  == 0) {
                    layer.msg("请选择婚况");
                    return false;
                }
                
                
                //遍历兴趣爱好
                $_string = "";
                $("input[name='checkbox_interest']:checked").each(function() {
                    $_string += $(this).val()+",";
                });
                $("#interest").val($_string);
                
                //遍历语言
                $_string = "";
                $("input[name='checkbox_language']:checked").each(function() {
                    $_string += $(this).val()+",";
                });
                $("#language").val($_string);
                
                //遍历择偶 婚况
                $_string = "";
                $("input[name='checkbox_cond_marry']:checked").each(function() {
                    $_string += $(this).val()+",";
                });
                $("#cond_marry").val($_string);
                
                
                //处理地图坐标 8.12.07
                if ($("#map_iframe").length > 0) {
                    var _iframe = document.getElementById('map_iframe').contentWindow;
                    var _lng =_iframe.document.getElementById('maplng');
                    $lng = _lng.value;
                    var _lat =_iframe.document.getElementById('maplat');
                    $lat = _lat.value;
                    
                    //if ($lng.length > 0) {
                        $("#maplng").val($lng);
                    //}
                    //if ($lat.length > 0) {
                        $("#maplat").val($lat);
                    //}
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->
</body>
</html>