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

<div class="layui-fluid oe_fluid" style="padding-top:5px;">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->&a=select" method="post"> 
  <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">地区：</div>
        <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="sarea1" id="sarea1" lay-filter="area" data-depth="1" data-name="sarea" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sarea1 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
        </div>
        <div class="layui-input-inline input-120" id="json_sarea2">
          <!--{if $sdist1 > 0}-->
          <!--{assign var="distlist2" value=vo_list("mod={area} where={v.parentid='<!--{$sdist1}-->'}")}-->
          <select name="sarea2" id="sarea2" lay-filter="area" data-depth="2" data-name="sarea" data-text="=请选择=">
            <option value="">=请选择=</option>
            <!--{foreach $distlist2 as $val}-->
            <option value="<!--{$val.areaid}-->"<!--{if $sarea2 == $val.areaid}--> selected<!--{/if}-->><!--{$val.areaname}--></option>
            <!--{/foreach}-->
          </select>
          <!--{else}-->
          <select name="sarea2" id="sarea2" 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 type="text" name="stitle" id="stitle" class="layui-input" value="<!--{$stitle}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
      
    </div>

  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">

    <table class="layui-table">
      <thead>
        <tr>
          <th width="10%">ID</th>
          <th width="12%">分类</th>
          <th width="22%">标题</th>
          <th width="15%">活动时间</th>
          <th width="15%">截止报名</th>
          <th width="8%">状态</th>
          <th width="10%">报名</th>
          <th>操作</th>
        </tr>
      </thead>
      
      <!--{if empty($party)}-->
      <tr>
        <td colspan="9" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $party as $volist}-->
      <tr>
        <td class="text_center" valign="top"><!--{$volist.partyid}--></td>
        <td valign="top" class="text_center">
          <!--{hook mod="var" item="partycat" type="text" value=$volist.catid}-->
        </td>
        <td valign="top">
          <!--{if !empty($volist.thumbimg)}-->
          <img src="<!--{$volist.thumbimg}-->" width="20px" height="20px" data-img="<!--{$volist.drawimg}-->" f="viewimg" />
          <!--{/if}-->
          <a href="<!--{$urlpath}-->index.php?c=party&a=detail&id=<!--{$volist.partyid}-->" target="_blank"><!--{$volist.title}--></a>
        </td>
        <td valign="top" class="text_center">
          <!--{$volist.starttime|date_format:"%Y-%m-%d %H:%M"}--><br />
          <!--{$volist.endtime|date_format:"%Y-%m-%d %H:%M"}-->
        </td>
        <td valign="top" class="text_center">
          <!--{if $volist.endbmtime > $time}-->
          <font color="green"><!--{$volist.endbmtime|date_format:"%Y-%m-%d %H:%M"}--></font>
          <!--{else}-->
          <font color="red"><!--{$volist.endbmtime|date_format:"%Y-%m-%d %H:%M"}--></font>
          <!--{/if}-->
        </td>
        <td class="text_center" valign="top">
          <!--{if $volist.flag == '1'}-->
          <font color="green">已通过</font>
          <!--{elseif $volist.flag == '2'}-->
          <font color="red">未通过</font>
          <!--{elseif $volist.flag == '3'}-->
          <font color="blue">已结束</font>
          <!--{else}-->
          <font color="gray">待审核</font>
          <!--{/if}-->
        </td>
        <td valign="top">
          男：<!--{$volist.bmmans}--><br />
          女：<!--{$volist.bmladys}-->
        </td>
        <td class="text_center" valign="top">
          <a href="javascript:;" class="layui-btn layui-btn-xs layui-btn-normal" onclick="oeSelectParty('<!--{$volist.partyid}-->', '<!--{$volist.title}-->');">选择</a>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>

<script type="text/javascript">
function oeSelectParty(partyid, title) {
    window.parent.$("#<!--{$inputid}-->").val(partyid);
    window.parent.$("#<!--{$inputid}-->_tips").html(title);
    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
    //layer.msg(index);
    parent.layer.close(index); //再执行关闭  
}
</script>
</body>
</html>