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

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">
  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">内容管理</a><span lay-separator="">/</span>
      <a href="javascript:;">相亲活动</a><span lay-separator="">/</span>
      <a><cite>活动报名</cite></a>
    </div>
  </div>
  <!--//top end -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">活动ID：</div>
        <div class="layui-input-inline">
          <input type="text" name="spartyid" id="spartyid" class="layui-input" value="<!--{if $spartyid > 0}--><!--{$spartyid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">活动标题：</div>
        <div class="layui-input-inline">
          <input type="text" name="stitle" id="stitle" class="layui-input" value="<!--{$stitle}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">性&#12288;&#12288;别：</div>
        <div class="layui-input-inline">
          <!--{hook mod="var" item="gender" name="sgender" type="select" text="不限" value=$sgender}-->
        </div>
      </div>
      <br />
      <div class="layui-inline">
        <div class="layui-form-label">用户名：</div>
        <div class="layui-input-inline">
          <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 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">
          <select name="spayflag" id="spayflag">
            <option value="">不限</option>
            <option value="1"<!--{if $spayflag == '1'}--> selected<!--{/if}-->>已支付</option>
            <option value="2"<!--{if $spayflag == '2'}--> selected<!--{/if}-->>待支付</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
      <br />
      <div class="layui-form-item">
        <div class="layui-form-label">报名费用：</div>
        <div class="label_box">
          <input type="hidden" name="sfee" id="sfee" value="<!--{$sfee}-->" />
          <span f="but_search_cat" data-val="0" data-input="sfee"<!--{if $sfee == 0}--> class="current"<!--{/if}-->>不限</span>&#12288;
          <span f="but_search_cat" data-val="1" data-input="sfee"<!--{if $sfee == 1}--> class="current"<!--{/if}-->>有</span>&#12288;
          <span f="but_search_cat" data-val="2" data-input="sfee"<!--{if $sfee == 2}--> class="current"<!--{/if}-->>没有</span>&#12288;
       </div>
      </div>
      
      <div class="layui-form-item">
        <div class="layui-form-label">报名状态：</div>
        <div class="label_box">
          <input type="hidden" name="sflag" id="sflag" value="<!--{$sflag}-->" />
          <span f="but_search_cat" data-val="0" data-input="sflag"<!--{if $sflag == 0}--> class="current"<!--{/if}-->>不限</span>&#12288;
          <span f="but_search_cat" data-val="1" data-input="sflag"<!--{if $sflag == 1}--> class="current"<!--{/if}-->>已成功</span>&#12288;
          <span f="but_search_cat" data-val="2" data-input="sflag"<!--{if $sflag == 2}--> class="current"<!--{/if}-->>已取消</span>&#12288;
          <span f="but_search_cat" data-val="3" data-input="sflag"<!--{if $sflag == 3}--> class="current"<!--{/if}-->>待确定</span>&#12288;
        </div>
      </div>
      
      <div class="layui-form-item">
        <div class="layui-form-label">签到状态：</div>
        <div class="label_box">
          <input type="hidden" name="ssignflag" id="ssignflag" value="<!--{$ssignflag}-->" />
          <span f="but_search_cat" data-val="0" data-input="ssignflag"<!--{if $ssignflag == 0}--> class="current"<!--{/if}-->>不限</span>&#12288;
          <span f="but_search_cat" data-val="1" data-input="ssignflag"<!--{if $ssignflag == 1}--> class="current"<!--{/if}-->>已签到</span>&#12288;
          <span f="but_search_cat" data-val="2" data-input="ssignflag"<!--{if $ssignflag == 2}--> class="current"<!--{/if}-->>未签到</span>&#12288;
        </div>
      </div>
    </div>
  </div>
  <!--//search End -->
  </form>

  <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=add1" class="btn add fl">
          <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="7%">ID</th>
          <th>活动</th>
          <th width="12%">报名人</th>
          <th width="10%">手机</th>
          <th width="9%">报名时间</th>
          <th width="8%">报名费</th>
          <th width="6%">支付状态</th>
          <th width="9%">支付时间</th>
          <th width="6%">状态</th>
          <th width="6%">签到</th>
          <th width="4%">类型</th>
          <th width="9%">操作</th>
        </tr>
      </thead>
      <!--{if empty($partybm)}-->
      <tr>
        <td class="text_center" colspan="13">没有符合条件的信息！</td>
      </tr>
      <!--{else}-->
      <!--{foreach $partybm as $volist}-->
      <tr>
        <td valign="top" class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.bmid}-->" />
        </td>
        <td valign="top" class="text_center">
          <!--{$volist.bmid}-->
        </td>
        <td valign="top">
          <a href="<!--{$urlpath}-->index.php?c=party&a=detail&id=<!--{$volist.partyid}-->" target="_blank"><!--{$volist.title}--></a><br />
          Loveid:<!--{$volist.loveid}-->
        </td>
        <td valign="top">
          <!--{if $volist.userid == 0}-->
          --(游客) 
          <!--{if !empty($volist.truename)}-->
          <br /><!--{$volist.truename}-->
          <!--{/if}-->
          <!--{else}-->
            <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.userid}-->" target="_blank">
            <img src="<!--{$volist.headimg}-->" width="20px" height="20px" f="viewimg" />
            <!--{$volist.username}-->/<!--{$volist.truename}--><br />
            <!--{if $volist.gender>0}--><!--{hook mod="var" item="gender" type="text" value=$volist.gender}--><!--{else}--><!--{hook mod="var" item="gender" type="text" value=$volist.u_gender}--><!--{/if}-->/
            <!--{if $volist.age>0}--><!--{$volist.age}--><!--{else}--><!--{$volist.u_age}--><!--{/if}-->岁/
            <!--{if $volist.dist2>0}--><!--{area type="text" value=$volist.dist2}--><!--{else}--><!--{area type="text" value=$volist.u_dist2}--><!--{/if}-->
            </a>
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if !empty($volist.mobile)}-->
          <!--{$volist.mobile}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.addtime|date_format:"%H:%M:%S"}-->
        </td>
        <td class="text_center" valign="top">
          ¥<!--{doubleval($volist.amount)}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.amount > 0}-->
          <!--{if $volist.payflag == '1'}-->
          <font color="blue">已支付</font>
          <!--{else}-->
          <font color="gray">待支付</font>
          <!--{/if}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.amount > 0}-->
          <!--{if $volist.paytime > 0}-->
          <!--{$volist.paytime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.paytime|date_format:"%H:%M:%S"}-->
          <!--{else}-->
          --
          <!--{/if}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.status == '1'}-->
          <font color="green">已成功</font>
          <!--{elseif $volist.status == '2'}-->
          <font color="red">已取消</font>
          <!--{else}-->
          <font color="gray">待确定</font>
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.signin == '1'}-->
          <font color="green">已签到</font>
          <!--{else}-->
          <font color="gray">未签到</font>
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.issystem == '1'}-->
          <font color="orange">后台录入</font>
          <!--{else}-->
          <font color="blue">前台报名</font>
          <!--{/if}-->
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=view&id=<!--{$volist.bmid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-edit layui-btn-xs">管理</a>
          <a href="javascript:;" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.bmid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-danger">删除</a>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>
<!--{/if}-->


<!--{if $a == "add1"}-->
<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 href="javascript:;">相亲活动</a><span lay-separator="">/</span>
      <a><cite>添加报名信息</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回列表</a></span>
    </div> 
  </div>
  
  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post" />
  <input type="hidden" name="a" id="a" value="add" />
  <div class="layui-card">
    <div class="layui-card-header">添加活动报名</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
        <th width="15%"><font color="red">*</font>选择报名会员：</th>
        <td>
          <input type="text" name="userid" id="userid" class="layui-input input-120" />
          &nbsp;&nbsp;<span id="userid_tips"></span>&nbsp;&nbsp;
          <a href="javascript:;" f="select_user" data-inputid="userid" class="oe_ico_blue">选择会员</a><br />
          <span class="text_tip_inline">（不选择会员，默认为“游客”）</span>
        </td>
      </tr>
      
      <tr>
        <td></td>
        <td>
          <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="nextform">
            下一步
            <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
          </button>
        </td>
      </tr>
      </table>
    </div>
  </div>
  </form>
  
</div>

<script type="text/javascript">
$(function(){

    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(nextform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#myform").submit();
            }
        });   
    });
    
});
</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 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 id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post" />
  <input type="hidden" name="a" id="a" value="saveadd" />
  <input type="hidden" name="userid" id="userid" value="<!--{$userid}-->" />
  <div class="layui-card">
    <div class="layui-card-header">添加报名信息</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%"><font color="red">*</font> 选择活动：</th>
          <td width="35%">
            <input type="text" name="partyid" id="partyid" class="layui-input input-100" />
            &nbsp;&nbsp;<span id="partyid_tips"></span>&nbsp;&nbsp;
            <a href="javascript:;" f="select_party" data-inputid="partyid" class="oe_ico_blue">选择活动</a>
          </td>
          <th width="15%">报名类型：</th>
          <td width="35%">
            <div class="input-200">
            <select name="issystem" id="issystem">
              <option value="">请选择</option>
              <option value="1" selected>后台录入</option>
              <option value="0">前台报名</option>
            </select>
            </div>
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 姓&#12288;&#12288;名：</th>
          <td>
            <!--{if isset($user.truename)}-->
            <input type="text" name="truename" id="truename" class="layui-input input-200" value="<!--{$user.truename}-->" />
            <!--{else}-->
            <input type="text" name="truename" id="truename" class="layui-input input-200" />
            <!--{/if}-->
          </td>
          <th>身份证号：<font color="red"></font></th>
          <td>
            <!--{if isset($user.idnumber)}-->
            <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" value="<!--{$user.idnumber}-->" />
            <!--{else}-->
            <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" />
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 手&#12288;&#12288;机：</th>
          <td>
            <!--{if isset($user.mobile)}-->
            <input type="text" name="mobile" id="mobile" class="layui-input input-200" maxlength="11" value="<!--{$user.mobile}-->" />
            <!--{else}-->
            <input type="text" name="mobile" id="mobile" class="layui-input input-200" maxlength="11" />
            <!--{/if}-->
          </td>
          <th><font color="red">*</font> 性&#12288;&#12288;别：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.gender)}-->
            <select name="gender" id="gender">
              <option value="">请选择</option>
              <option value="1"<!--{if $user.gender == '1'}--> selected<!--{/if}-->>男</option>
              <option value="2"<!--{if $user.gender == '2'}--> selected<!--{/if}-->>女</option>
            </select>
            <!--{else}-->
            <select name="gender" id="gender">
              <option value="">请选择</option>
              <option value="1">男</option>
              <option value="2">女</option>
            </select>
            <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>微&nbsp;信&nbsp;号：</th>
          <td colspan="3">
             <!--{if isset($user.weixin)}-->
            <input type="text" name="weixin" id="weixin" class="layui-input input-200" value="<!--{$user.weixin}-->" />
            <!--{else}-->
            <input type="text" name="weixin" id="weixin" class="layui-input input-200" />
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>地&#12288;&#12288;区：</th>
          <td colspan="3">
            <!--{if isset($user.dist1)}-->            
            <div class="layui-input-inline input-120">
              <!--{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-120" 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-120" 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="area" 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-120" id="json_dist4">
              <!--{if $user.dist3 > 0}-->
              <!--{assign var="distlist4" value=vo_list("mod={area} where={v.parentid='<!--{$user.area3}-->'}")}-->
              <select name="dist4" id="dist4" lay-filter="area" data-depth="4" data-name="dist" data-text="=请选择=">
                <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" lay-filter="area">
                <option value="">=请选择=</option>
              </select>
              <!--{/if}-->
            </div>
            
            <!--{else}-->
            <div class="layui-input-inline input-120">
              <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='0'} orderby={v.orders ASC}")}-->
              <select name="area1" id="area1" lay-filter="area" data-depth="1" data-name="area" 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-120" id="json_area2">
              <select name="area2" id="area2" lay-filter="area">
                <option value="">=请选择=</option>
              </select>
            </div>
            <div class="layui-input-inline input-120" id="json_area3">
              <select name="area3" id="area3" lay-filter="area">
                <option value="">=请选择=</option>
              </select>
            </div>
            <div class="layui-input-inline input-120" id="json_area4">
              <select name="area4" id="area4" lay-filter="area">
                <option value="">=请选择=</option>
              </select>
            </div>
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>婚&#12288;&#12288;况：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.marry)}-->
            <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择=" value=$user.marry}-->
            <!--{else}-->
            <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
          <th>学&#12288;&#12288;历：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.education)}-->
            <!--{hook mod="var" item="education" name="education" type="select" text="=请选择=" value=$user.education}-->
            <!--{else}-->
            <!--{hook mod="var" item="education" name="education" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>出生年月：</th>
          <td>
            <!--{if $user.ageyear}-->
            <input type="text" name="data" id="data" readonly="only" class="layui-input input-200" value="<!--{$user.ageyear}-->-<!--{$user.agemonth}-->-<!--{$user.ageday}-->" />
            <!--{else}-->
            <input type="text" name="data" id="data" readonly="only" class="layui-input input-200" />
            <!--{/if}-->
            <script type="text/javascript">
            $(function(){
                layui.use('laydate', function(){
                    $laydate = layui.laydate;
                    $laydate.render({
                        elem: "#data"
                    });
                    
                });
            });
            </script>

          </td>
          <th>交友类型：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.sort)}-->
            <!--{hook mod="var" item="sort" name="sort" type="select" text="=请选择=" value=$user.sort}-->
            <!--{else}-->
            <!--{hook mod="var" item="sort" name="sort" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>身&#12288;&#12288;高：</th>
          <td>
            <div class="layui-input-inline input-200">
            <!--{if isset($user.height)}-->
            <!--{hook mod="height" name="height" type="select" text="=请选择=" value=$user.height}-->
            <!--{else}-->
            <!--{hook mod="height" name="height" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
            CM
          </td>
          <th>体&#12288;&#12288;重：</th>
          <td>
            <div class="layui-input-inline input-200">
            <!--{if isset($user.weight)}-->
            <!--{hook mod="weight" name="weight" type="select" text="=请选择=" value=$user.weight}-->
            <!--{else}-->
            <!--{hook mod="weight" name="weight" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
             KG
          </td>
        </tr>
        <tr>
          <th>职&#12288;&#12288;业：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.job)}-->
            <!--{hook mod="var" item="job" name="job" type="select" text="=请选择=" value=$user.job}-->
            <!--{else}-->
            <!--{hook mod="var" item="job" name="job" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
          <th>收&#12288;&#12288;入：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.salary)}-->
            <!--{hook mod="var" item="salary" name="salary" type="select" text="=请选择=" value=$user.salary}-->
            <!--{else}-->
            <!--{hook mod="var" item="salary" name="salary" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>住房情况：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.house)}-->
            <!--{hook mod="var" item="house" name="house" type="select" text="=请选择=" value=$user.house}-->
            <!--{else}-->
            <!--{hook mod="var" item="house" name="house" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
          <th>购车情况：</th>
          <td>
            <div class="input-200">
            <!--{if isset($user.car)}-->
            <!--{hook mod="var" item="car" name="car" type="select" text="=请选择=" value=$user.car}-->
            <!--{else}-->
            <!--{hook mod="var" item="car" name="car" type="select" text="=请选择="}-->
            <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>信息来源：</th>
          <td>
            <input type="text" name="sources" id="sources" class="layui-input input-200" />
          </td>
          <th>活动目的：</th>
          <td>
            <input type="text" name="target" id="target" class="layui-input input-200" />
          </td>
        </tr>
        <tr>
          <th>报名状态：</th>
          <td colspan="3">
            <div class="input-200">
              <select name="status" id="status">
                <option value="">请选择</option>
                <option value="1" selected>报名成功</option>
                <option value="0">待确定</option>
              </select>
            </div>
          </td>
        </tr>
        
        <tr>
          <th>备注说明：</th>
          <td colspan="3">
            <textarea name="remark" id="remark" class="layui-textarea" style="width:40%;height:80px;"></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  
  <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('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(addform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
            
                if ($("#partyid").val().length == 0) {
                    layer.msg("请选择所属活动");
                    return false;
                }
                if ($("#truename").val().length == 0) {
                    layer.msg("请填写姓名");
                    return false;
                }
                if ($("#mobile").val().length == 0) {
                    layer.msg("请填写手机号");
                    return false;
                }
                if ($("#gender").val().length == 0) {
                    layer.msg("请选择性别");
                    return false;
                }
                
                $("#"+$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 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"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回列表</a></span>
    </div> 
  </div>
  
  <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 oe_table_edit">
    <div class="layui-card-header">编辑报名信息</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%"><font color="red">*</font> 选择活动：</th>
          <td width="35%">
            <input type="text" name="partyid" id="partyid" class="layui-input input-100" value="<!--{$partybm.partyid}-->" />
            &nbsp;&nbsp;<span id="partyid_tips"></span>&nbsp;&nbsp;
            <a href="javascript:;" f="select_party" data-inputid="partyid" class="oe_ico_blue">选择活动</a>
          </td>
          <th width="15%">报名类型：</th>
          <td width="35%">
            <div class="input-200">
            <select name="issystem" id="issystem">
              <option value="">请选择</option>
              <option value="1"<!--{if $partybm.issystem == '1'}--> selected<!--{/if}-->>后台录入</option>
              <option value="0"<!--{if $partybm.issystem == '0'}--> selected<!--{/if}-->>前台报名</option>
            </select>
            </div>
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 姓&#12288;&#12288;名：</th>
          <td>
            <input type="text" name="truename" id="truename" class="layui-input input-200" value="<!--{$partybm.truename}-->" />
          </td>
          <th>身份证号：<font color="red"></font></th>
          <td>
            <input type="text" name="idnumber" id="idnumber" class="layui-input input-200" value="<!--{$partybm.idnumber}-->" />
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 手&#12288;&#12288;机：</th>
          <td>
            <input type="text" name="mobile" id="mobile" class="layui-input input-200" maxlength="11" value="<!--{$partybm.mobile}-->" />
          </td>
          <th><font color="red">*</font> 性&#12288;&#12288;别：</th>
          <td>
            <div class="input-200">
            <select name="gender" id="gender">
              <option value="">请选择</option>
              <option value="1"<!--{if $partybm.gender == '1'}--> selected<!--{/if}-->>男</option>
              <option value="2"<!--{if $partybm.gender == '2'}--> selected<!--{/if}-->>女</option>
            </select>
            </div>
          </td>
        </tr>
        <tr>
          <th>微&nbsp;信&nbsp;号：</th>
          <td colspan="3">
            <input type="text" name="weixin" id="weixin" class="layui-input input-200" value="<!--{$partybm.weixin}-->" />
          </td>
        </tr>
        <tr>
          <th>地&#12288;&#12288;区：</th>
          <td colspan="3">         
            <div class="layui-input-inline input-120">
              <!--{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 $partybm.dist1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                <!--{/foreach}-->
              </select>
            </div>
            <div class="layui-input-inline input-120" id="json_dist2">
              <!--{if $partybm.dist1 > 0}-->
              <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$partybm.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 $partybm.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-120" id="json_dist3">
              <!--{if $partybm.dist2 > 0}-->
              <!--{assign var="distlist3" value=vo_list("mod={area} where={v.parentid='<!--{$partybm.dist2}-->'}")}-->
              <select name="dist3" id="dist3" lay-filter="area" data-depth="3" data-name="area" data-text="=请选择=">
                <option value="">=请选择=</option>
                <!--{foreach $distlist3 as $val}-->
                <option value="<!--{$val.areaid}-->"<!--{if $partybm.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-120" id="json_dist4">
              <!--{if $partybm.dist3 > 0}-->
              <!--{assign var="distlist4" value=vo_list("mod={area} where={v.parentid='<!--{$partybm.area3}-->'}")}-->
              <select name="dist4" id="dist4" lay-filter="area" data-depth="4" data-name="dist" data-text="=请选择=">
                <option value="">=请选择=</option>
                <!--{foreach $distlist4 as $val}-->
                <option value="<!--{$val.areaid}-->"<!--{if $partybm.dist4 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
                <!--{/foreach}-->
              </select>
              <!--{else}-->
              <select name="dist4" id="dist4" lay-filter="area">
                <option value="">=请选择=</option>
              </select>
              <!--{/if}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>婚&#12288;&#12288;况：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="marry" name="marry" type="select" text="=请选择=" value=$partybm.marry}-->
            </div>
          </td>
          <th>学&#12288;&#12288;历：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="education" name="education" type="select" text="=请选择=" value=$partybm.education}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>出生年月：</th>
          <td>
            <input type="text" name="data" id="data" readonly="only" class="layui-input input-200" value="<!--{$partybm.ageyear}-->-<!--{$partybm.agemonth}-->-<!--{$partybm.ageday}-->" />
            <script type="text/javascript">
            $(function(){
                layui.use('laydate', function(){
                    $laydate = layui.laydate;
                    $laydate.render({
                        elem: "#data"
                    });
                    
                });
            });
            </script>

          </td>
          <th>交友类型：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="sort" name="sort" type="select" text="=请选择=" value=$partybm.sort}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>身&#12288;&#12288;高：</th>
          <td>
            <div class="layui-input-inline input-200">
            <!--{hook mod="height" name="height" type="select" text="=请选择=" value=$partybm.height}-->
            </div>
            CM
          </td>
          <th>体&#12288;&#12288;重：</th>
          <td>
            <div class="layui-input-inline input-200">
            <!--{hook mod="weight" name="weight" type="select" text="=请选择=" value=$partybm.weight}-->
            </div>
             KG
          </td>
        </tr>
        <tr>
          <th>职&#12288;&#12288;业：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="job" name="job" type="select" text="=请选择=" value=$partybm.job}-->
            </div>
          </td>
          <th>收&#12288;&#12288;入：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="salary" name="salary" type="select" text="=请选择=" value=$partybm.salary}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>住房情况：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="house" name="house" type="select" text="=请选择=" value=$partybm.house}-->
            </div>
          </td>
          <th>购车情况：</th>
          <td>
            <div class="input-200">
            <!--{hook mod="var" item="car" name="car" type="select" text="=请选择=" value=$partybm.car}-->
            </div>
          </td>
        </tr>
        <tr>
          <th>信息来源：</th>
          <td>
            <input type="text" name="sources" id="sources" class="layui-input input-200" value="<!--{$partybm.sources}-->" />
          </td>
          <th>活动目的：</th>
          <td>
            <input type="text" name="target" id="target" class="layui-input input-200" value="<!--{$partybm.target}-->" />
          </td>
        </tr>
        <tr>
          <th>备注说明：</th>
          <td colspan="3">
            <textarea name="remark" id="remark" class="layui-textarea" style="width:40%;height:80px;"><!--{$partybm.remark}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  
  <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('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
            
                if ($("#partyid").val().length == 0) {
                    layer.msg("请选择所属活动", "partyid");
                    return false;
                }
                if ($("#truename").val().length == 0) {
                    layer.msg("请填写姓名", "truename");
                    return false;
                }
                if ($("#mobile").val().length == 0) {
                    layer.msg("请填写手机号", "mobile");
                    return false;
                }
                if ($("#gender").val().length == 0) {
                    layer.msg("请选择性别", "gender");
                    return false;
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
               
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == 'view'}-->
<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 href="javascript:;">相亲活动</a><span lay-separator="">/</span>
      <a><cite>查看报名信息</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius">
        <a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回上一页</a>
      </span>
    </div> 
  </div>
      
  <div class="layui-card">
  
    <div class="layui-card-header">查看报名信息</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th>报名会员：</th>
          <td colspan="3">
            <!--{if $partybm.userid == 0}-->
            --(游客)
            <!--{else}-->
            <img src="<!--{$partybm.user.headimg}-->" width="20px" height="20px" /> uid:<!--{$partybm.userid}-->/<!--{$partybm.user.username}-->
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th width="15%">姓&#12288;&#12288;名：</th>
          <td width="35%">
            <!--{if !empty($partybm.truename)}-->
            <!--{$partybm.truename}-->
            <!--{else if !empty($partybm.user.truename)}-->
            <!--{$partybm.user.truename}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th width="15%">身份证号：</th>
          <td width="35%">
            <!--{if !empty($partybm.idnumber)}-->
            <!--{$partybm.idnumber}-->
            <!--{else if !empty($partybm.user.idnumber)}-->
            <!--{$partybm.user.idnumber}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>手&#12288;&#12288;机：</th>
          <td>
            <!--{if !empty($partybm.mobile)}-->
            <!--{$partybm.mobile}-->
            <!--{else if !empty($partybm.user.mobile)}-->
            <!--{$partybm.user.mobile}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>性&#12288;&#12288;别：</th>
          <td>
            <!--{if $partybm.gender== 1}-->男<!--{else}-->女<!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>微信号：</th>
          <td>
            <!--{if !empty($partybm.weixin)}-->
            <!--{$partybm.weixin}-->
            <!--{else if !empty($partybm.user.weixin)}-->
            <!--{$partybm.user.weixin}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>地&#12288;&#12288;区：</th>
          <td>
            <!--{if $partybm.dist1 > 0}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.dist1}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.dist2}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.dist3}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.dist4}-->}-->
            <!--{else if $partybm.user.dist1 > 0}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.user.dist1}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.user.dist2}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.user.dist3}-->}-->
            <!--{area type='text' name='dist' value=<!--{$partybm.user.dist4}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>婚&#12288;&#12288;况：</th>
          <td>
            <!--{if $partybm.marry > 0}-->
            <!--{hook mod="var" item="marry" name="marry" type="text" value=<!--{$partybm.marry}-->}-->
            <!--{else if $partybm.user.marry > 0}-->
            <!--{hook mod="var" item="marry" name="marry" type="text" value=<!--{$partybm.user.marry}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>学&#12288;&#12288;历：</th>
          <td>
            <!--{if $partybm.education > 0}-->
            <!--{hook mod="var" item="education" name="education" type="text" value=<!--{$partybm.education}-->}-->
            <!--{else if $partybm.user.education > 0}-->
            <!--{hook mod="var" item="education" name="education" type="text" value=<!--{$partybm.user.education}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>出生年月：</th>
          <td>
            <!--{if $partybm.ageyear > 0}-->
            <!--{$partybm.ageyear}--> - <!--{$partybm.agemonth}--> - <!--{$partybm.ageday}-->
            <!--{else if $partybm.user.ageyear > 0}-->
            <!--{$partybm.user.ageyear}--> - <!--{$partybm.user.agemonth}--> - <!--{$partybm.user.ageday}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>交友类型：</th>
          <td>
            <!--{if $partybm.sort > 0}-->
            <!--{hook mod="var" item="sort" name="sort" type="text" value=<!--{$partybm.sort}-->}-->
            <!--{else if $partybm.user.sort > 0}-->
            <!--{hook mod="var" item="sort" name="sort" type="text" value=<!--{$partybm.user.sort}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>身&#12288;&#12288;高：</th>
          <td>
            <!--{if $partybm.height > 0}-->
            <!--{$partybm.height}-->CM
            <!--{else if $partybm.user.height > 0}-->
            <!--{$partybm.user.height}-->CM
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>体&#12288;&#12288;重：</th>
          <td>
            <!--{if $partybm.weight > 0}-->
            <!--{$partybm.weight}-->KG
            <!--{else if $partybm.user.weight > 0}-->
            <!--{$partybm.user.weight}-->KG
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>职&#12288;&#12288;业：</th>
          <td>
            <!--{if $partybm.job > 0}-->
            <!--{hook mod="var" item="job" name="job" type="text" value=<!--{$partybm.job}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>收&#12288;&#12288;入：</th>
          <td>
            <!--{if $partybm.salary > 0}-->
            <!--{hook mod="var" item="salary" name="salary" type="text" value=<!--{$partybm.salary}-->}-->
            <!--{else if $partybm.user.salary > 0}-->
            <!--{hook mod="var" item="salary" name="salary" type="text" value=<!--{$partybm.user.salary}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>住房情况：</th>
          <td>
            <!--{if $partybm.house > 0}-->
            <!--{hook mod="var" item="house" name="house" type="text" value=<!--{$partybm.house}-->}-->
            <!--{else if $partybm.user.house > 0}-->
            <!--{hook mod="var" item="house" name="house" type="text" value=<!--{$partybm.user.house}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>购车情况：</th>
          <td>
            <!--{if $partybm.car > 0}-->
            <!--{hook mod="var" item="car" name="car" type="text" value=<!--{$partybm.car}-->}-->
            <!--{else if $partybm.user.car > 0}-->
            <!--{hook mod="var" item="car" name="car" type="text" value=<!--{$partybm.user.car}-->}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>信息来源：</th>
          <td>
            <!--{$partybm.sources}-->
          </td>
          <th>活动目的：</th>
          <td>
            <!--{$partybm.target}-->
          </td>
        </tr>
        <tr>
          <th>备注说明：</th>
          <td colspan="3">
            <!--{if !empty($partybm.remark)}-->
            <!--{$partybm.remark}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
      </table>
    </div>
    
    
    <div class="layui-card-header">报名情况</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
      
        <tr>
          <th width="15%">LoveID：</th>
          <td width="35%"><!--{$partybm.loveid}--></td>
          <th width="15%">报名时间：</th>
          <td width="35%">
            <!--{$partybm.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
          </td>
        </tr>
        <tr>
          <th>报名费用：</th>
          <td>
            <!--{if $partybm.amount == 0}-->
            <font color="red">¥0</font>
            <!--{else}-->
            ¥ <!--{doubleval($partybm.amount)}-->
            <!--{/if}-->
          </td>
          <th>报名状态：</th>
          <td>
            <!--{if $partybm.status == '1'}-->
            <font color="green">已成功报名</font>
            <!--{elseif $partybm.status == '2'}-->
            <font color="red">已取消报名</font>
            <!--{else}-->
            <font color="gray">待确认报名</font>
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>备注说明：</th>
          <td>
            <!--{if !empty($partybm.remark)}-->
            <!--{$partybm.remark}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>取消原因：</th>
          <td>
            <!--{if !empty($partybm.reason)}-->
            <!--{$partybm.reason}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>

        <tr>
          <th>签到状态：</th>
          <td>
            <!--{if $partybm.signin == '1'}-->
            <font color="green">已签到</font>
            <!--{else}-->
            <font color="gray">未签到</font>
            <!--{/if}-->
          </td>
          <th>签到方式：</th>
          <td>
            <!--{if $partybm.signtype == '1'}-->
            身份证签到
            <!--{elseif $partybm.signtype == '2'}-->
            微信扫码签到
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>签到时间：</th>
          <td colspan="3">
            <!--{if $partybm.signtime > 0}-->
            <!--{$partybm.signtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
      </table>
    </div>

    <div class="layui-card-header">付款状态</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">付款状态：<span class="f_red"></span></th>
          <td width="35%">
            <!--{if $partybm.amount > 0}-->
            <!--{if $partybm.payflag == '1'}-->
            <font color="blue">已支付</font>
            <!--{else}-->
            <font color="gray">待支付</font>
            <!--{/if}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th width="15%">已付金额：</th>
          <td width="35%">
            <!--{if $partybm.paymoney == 0}-->
            <font color="red">¥0</font>
            <!--{else}-->
            ¥ <!--{doubleval($partybm.paymoney)}-->
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>付款时间：</th>
          <td>
            <!--{if $partybm.amount > 0}-->
            <!--{if $partybm.paytime > 0}-->
            <!--{$partybm.paytime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>付款单号：</th>
          <td>
            <!--{if !empty($partybm.paynum)}-->
            <!--{$partybm.paynum}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
      </table>
    </div>
    
    <div class="layui-card-header">退款状态</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">退款状态：</th>
          <td width="35%">
            <!--{if $partybm.refundflag == '1'}-->
            退款中
            <!--{elseif $partybm.refundflag == '2'}-->
            已退款
            <!--{elseif $partybm.refundflag == '3'}-->
            拒绝退款
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th width="15%">已退金额：</th>
          <td width="35%">
            <!--{if $partybm.refundmoney > 0}-->
            <!--{$partybm.refundmoney}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>退款时间：</th>
          <td>
            <!--{if $partybm.refundtime > 0}-->
            <!--{$partybm.refundtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
          <th>退款人：</th>
          <td>
            <!--{if !empty($partybm.refunduse)}-->
            <!--{$partybm.refunduse}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>退款说明：</th>
          <td colspan="3">
            <!--{if !empty($partybm.refremark)}-->
            <!--{$partybm.refremark}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
      </table>
    </div>
       
       
  </div>
  
</div>

<div class="oe_menu_inner">
  <div class="menu_head">
    操作
    <a href="javascript:;" class="enlarge layui-layer-ico" f="enlarge"></a>
    <a href="javascript:;" class="narrow" f="narrow">
      <span></span>
    </a>
  </div>
  <div class="menu_body">
    <ul>
    
      <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$partybm.bmid}-->&<!--{$comeurl}-->&from=view" >编辑报名</a></li>
      <li><a href="javascript:;" f="pop_send_sms" data-uid="<!--{$partybm.userid}-->" data-mobile="<!--{$partybm.mobile}-->">发送短信</a></li>
      
      <li><a href="javascript:;" f="pop_send_email" data-uid="<!--{$partybm.userid}-->" data-email="<!--{$partybm.email}-->">发送邮件</a></li>
      
      <!--{if $partybm.userid > 0}-->
      <li><a href="javascript:;" f="pop_send_msg" data-uid="<!--{$partybm.userid}-->">发送站内通知</a></li>
      <!--{else}-->
      <li><a href="javascript:;" style="color:gray;">发送站内通知</a></li>
      <!--{/if}-->
      
      <!--{if $partybm.status == '0'}-->
      
      <!--
      <li><a href="javascript:;" f="handle-one" data-type="ajax" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=savepass&id=<!--{$partybm.bmid}-->" data-reload="1">报名成功</a></li>
      -->
      <li><a href="javascript:;" f="pop_partybm_pass" data-id="<!--{$partybm.bmid}-->">报名成功</a></li>
      
      
      
      <li><a href="javascript:;" f="pop_partybm_cancel" data-id="<!--{$partybm.bmid}-->">取消报名</a></li>
      <!--{elseif $partybm.status == '1'}-->
      <li><a href="javascript:;" f="pop_partybm_cancel" data-id="<!--{$partybm.bmid}-->">取消报名</a></li>
      <!--{/if}-->

    </ul>
  </div>
</div>
<!--//oe_menu_inner End -->
<script type="text/javascript">
$(function(){
    //渲染...
    layui.use(['element', 'form'], function(){
        
    });
    $(document).on("click", "[f='narrow']", function(){
        $(this).closest('.oe_menu_inner').find('.menu_body').hide();
        $(this).closest('.oe_menu_inner').css({'top': '70px'});
        $(this).hide().siblings('.enlarge').show();
    });
    $(document).on("click", "[f='enlarge']", function(){
        $(this).closest('.oe_menu_inner').find('.menu_body').show();
        $(this).closest('.oe_menu_inner').css({'top': '120px'});
        $(this).hide().siblings('.narrow').show();
    });
});
</script>
<!--{/if}-->


<!--{if $a == "cancel"}-->
<div class="layui-fluid oe_fluid" style="padding-top:5px;">

  
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">取消活动报名</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th>报名会员：</th>
          <td colspan="3">
            <!--{if $partybm.userid > 0}-->
            <img src="<!--{$partybm.user.headimg}-->" width="25px" height="25px" />
            uid:<!--{$partybm.userid}--> / <!--{$partybm.user.username}--> / <!--{$partybm.user.truename}-->
            <!--{else}-->
            匿名游客 
            <!--{if !empty($partybm.truename)}-->
            （<!--{$partybm.truename}-->）
            <!--{/if}-->
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th width="15%">LoveID：</th>
          <td width="35%"><!--{$partybm.loveid}--></td>
          <th width="15%">报名时间：</th>
          <td width="35%">
            <!--{$partybm.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
          </td>
        </tr>
        <tr>
          <th>报名费用：</th>
          <td>
            <!--{if $partybm.amount == 0}-->
            <font color="red">免费</font>
            <!--{else}-->
            <!--{$partybm.amount}--> 元
            <!--{/if}-->
          </td>
          <th>付款状态：</th>
          <td>
            <!--{if $partybm.amount > 0}-->
            <!--{if $partybm.payflag == '1'}-->
            <font color="orange">已支付</font>
            <!--{else}-->
            <font color="blue">待支付</font>
            <!--{/if}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <!--{if $partybm.amount > 0 && $partybm.payflag == '1' && $partybm.userid > 0}-->
        <tr>
          <th><font color="red">*</font> 退款金额：</th>
          <td colspan="3">
            <input type="text" name="refundmoney" id="refundmoney" class="layui-input input-100"><font color="red">（退款金额不能大于用户所支付金额，不填为0）</font>
          </td>
        </tr>
        <!--{else}-->
        <input type="hidden" name="refundmoney" id="refundmoney" value="0" />
        <!--{/if}-->
        <tr>
          <th><font color="red">*</font> 取消原因：</th>
          <td colspan="3">
            <textarea name="reason" id="reason" class="layui-textarea" style="width:50%;height:60px;"><!--{$partybm.reason}--></textarea>
          </td>
        </tr>
        <tr>
          <th>备注说明：</th>
          <td colspan="3">
            <textarea name="remark" id="remark" class="layui-textarea" style="width:50%;height:60px;"><!--{$partybm.remark}--></textarea>
          </td>
        </tr>
        <tr>
          <td></td>
          <td colspan="3">
            <span class="text_tip_inline">
            （填写了退回报名费的，取消成功之后，费用直接退款至用户在平台上的账户）
            </span>
          </td>
        </tr>
      </table>
    </div>
  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="cancelform">
      点击取消
      <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('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(cancelform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
            
                $reason = $("#reason").val();
                $remark = $("#remark").val();
                $refundmoney = $("#refundmoney").val();
                if ($reason.length == 0) {
                    layer.msg("请填写取消原因");
                    return false;
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                
                $_url = "<!--{$oefile}-->&c=<!--{$c}-->&a=savecancel&id=<!--{$partybm.bmid}-->"+
                        "&reason="+encodeURIComponent($reason)+
                        "&remark="+encodeURIComponent($remark)+
                        "&refundmoney="+$refundmoney;
                        
                oelove_do_ajax($_url, function(){
                    layer.msg("取消成功");
                    setTimeout(function(){
                        window.parent.location.reload();
                    }, 500);
                });
                
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "underbm"}-->
<div class="layui-fluid oe_fluid" style="padding-top:10px;">

  <div class="layui-card">
    <div class="layui-card-header">批量生成线下报名</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="25%"><font color="red"></font>所属活动：</th>
          <td width="75%">
            <!--{$party.title}-->
            <br />
            女士上限：
            <!--{if $party.limitlady > 0}-->
            <!--{$party.limitlady}--> 人  
            <!--{else}-->
            不限
            <!--{/if}-->
            <br />
            男士上限：
            <!--{if $party.limitman > 0}-->
            <!--{$party.limitman}--> 人  
            <!--{else}-->
            不限
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font>生成男士数量：</th>
          <td>
            <input type="text" name="man_nums" id="man_nums" class="layui-input input-150" placeholder="请填写生成数量" /> 人(0表示不生成)
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font>生成女士数量：</th>
          <td>
            <input type="text" name="lady_nums" id="lady_nums" class="layui-input input-150" placeholder="请填写生成数量" /> 人(0表示不生成)
          </td>
        </tr>
      </table>
    </div>
  </div>

  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="postform">
      确定生成
      <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('form', function(){
        $form = layui.form;
        //发送...
        $form.on('submit(postform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $man_nums = $("#man_nums").val();
                $lady_nums = $("#lady_nums").val();
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                
                $.ajax({
                    type: "POST",
                    url: "<!--{$oefile}-->&c=<!--{$c}-->",
                    cache: false,
                    data: {
                        a:"saveunderbm", man_nums:$man_nums, lady_nums:$lady_nums, 
                        partyid:"<!--{$partyid}-->", r:get_rndnum(8)
                    },
                    dataType: "json",
                    success: function($data) {
                        $json = eval($data);
                        $response = $json.response;
                        $result = $json.result;
                        if ($response == '1') {
                            layer.msg("保存成功");
                            setTimeout(function(){
                                window.parent.location.reload();
                            }, 600);
                        }
                        else {
                            if ($result.length == 0) {
                                $result = "生成失败，请检查";
                            }
                            layer.msg($result);
                        }
                        $("#"+$obj_id).removeClass("forbid_submit");
                        if ($("#"+$obj_id).find("span").length > 0) {
                            $("#"+$obj_id).find("span").hide();
                        }
                
                    },
                    error: function() {
                        layer.msg("系统繁忙，请稍后再试");
                        $("#"+$obj_id).removeClass("forbid_submit");
                        if ($("#"+$obj_id).find("span").length > 0) {
                            $("#"+$obj_id).find("span").hide();
                        }
                    }
                });
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "pass"}-->
<div class="layui-fluid oe_fluid" style="padding-top:5px;">

  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">报名成功</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th>报名会员：</th>
          <td colspan="3">
            <!--{if $partybm.userid > 0}-->
            <img src="<!--{$partybm.user.headimg}-->" width="25px" height="25px" />
            uid:<!--{$partybm.userid}--> / <!--{$partybm.user.username}--> / <!--{$partybm.user.truename}-->
            <!--{else}-->
            匿名游客 
            <!--{if !empty($partybm.truename)}-->
            （<!--{$partybm.truename}-->）
            <!--{/if}-->
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th width="15%">LoveID：</th>
          <td width="35%"><!--{$partybm.loveid}--></td>
          <th width="15%">报名时间：</th>
          <td width="35%">
            <!--{$partybm.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
          </td>
        </tr>
        <tr>
          <th>报名费用：</th>
          <td>
            <!--{if $partybm.amount == 0}-->
            <font color="red">免费</font>
            <!--{else}-->
            <!--{$partybm.amount}--> 元
            <!--{/if}-->
          </td>
          <th>付款状态：</th>
          <td>
            <!--{if $partybm.amount > 0}-->
            <div class="layui-input-inline input-150">
            <select name="payflag" id="payflag">
              <option value="0">待支付</option>
              <option value="1"<!--{if $partybm.payflag == '1'}--> selected<!--{/if}-->>已支付</option>
            </select>
            </div>
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        <tr>
          <th>备注说明：</th>
          <td colspan="3">
            <textarea name="remark" id="remark" class="layui-textarea" placeholder="可填写付款等备注说明" style="width:95%;height:100px;"><!--{$partybm.remark}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="passform">
      报名成功
      <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('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(passform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
                $payflag = $("#payflag").val();
                if (typeof($payflag) == "undefined") {
                    $payflag = "";
                }
                $remark = $("#remark").val();
                if (typeof($remark) == "undefined") {
                    $remark = "";
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                
                $_url = "<!--{$oefile}-->&c=<!--{$c}-->&a=savepass&id=<!--{$partybm.bmid}-->"+
                        "&payflag="+encodeURIComponent($payflag)+
                        "&remark="+encodeURIComponent($remark);
                        
                oelove_do_ajax($_url, function(){
                    layer.msg("操作成功");
                    setTimeout(function(){
                        window.parent.location.reload();
                    }, 500);
                });
                
            }
        });   
    });
    
});
</script>
<!--{/if}-->

</body>
</html>