<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<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><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">标题：</div>
        <div class="layui-input-inline">
          <input type="text" name="s_title" id="s_title" class="layui-input" value="<!--{$s_title}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">状态：</div>
        <div class="layui-input-inline">
          <select name="s_flag" id="s_flag">
            <option value="">不限</option>
            <option value="1"<!--{if $s_flag == '1'}--> selected<!--{/if}-->>正常</option>
            <option value="2"<!--{if $s_flag == '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>
      
    </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=add" 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="4%">选</th>
          <th width="8%">ID</th>
          <th width="5%">封面</th>
          <th width="20%">标题</th>
          <th width="5%">状态</th>
          <th width="5%">推荐</th>
          <th width="10%">添加时间</th>
          <th width="6%">题目</th>
          <th width="7%">答案/结果</th>
          <th width="7%">累计测试</th>
          <th>操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($emtest)}-->
      <tr>
        <td colspan="11" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $emtest as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.testid}-->" />
        </td>
        <td class="text_center">
          <!--{$volist.testid}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.thumbimg)}-->
          <img src="<!--{$volist.thumbimg}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg}-->">
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td><!--{$volist.title}--></td>
        <td class="text_center">
          <input type="checkbox" name="flag" lay-skin="primary" value="1" lay-filter="updatestatus" data-id="<!--{$volist.testid}-->" data-type="flag"<!--{if $volist.flag == '1'}--> checked<!--{/if}--> />
        </td>
        <td class="text_center">
          <input type="checkbox" name="elite" lay-skin="primary" value="1" lay-filter="updatestatus" data-id="<!--{$volist.testid}-->" data-type="elite"<!--{if $volist.elite == '1'}--> checked<!--{/if}--> />
        </td>
        
        <td class="text_center" title="<!--{$volist.addtime|date_format:"%H:%M:%S"}-->">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}-->
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=emsubject&s_testid=<!--{$volist.testid}-->">
          <!--{$volist.subject_nums}-->
          </a>
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=emresult&s_testid=<!--{$volist.testid}-->">
          <!--{$volist.result_nums}-->
          </a>
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=emlogs&s_testid=<!--{$volist.testid}-->">
          <!--{$volist.test_nums}-->
          </a>
        </td>
        <td class="text_center">
          <div class="btn_box">
            
            <a href="javascript:;" f="but_normal_dialog" data-title="添加题目" data-width="900" data-url="<!--{$oefile}-->&c=emsubject&a=add&testid=<!--{$volist.testid}-->">
            添加题目
            </a>
            &nbsp;
            <a href="javascript:;" f="but_normal_dialog" data-title="添加答案/结果" data-url="<!--{$oefile}-->&c=emresult&a=add&testid=<!--{$volist.testid}-->">
            添加答案
            </a>
            &nbsp;
            
            <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.testid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
            
            <a href="javascript:;" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.tcid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-danger" data-text="确定要删除吗？">删除</a>
          </div>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    <div class="oe_page_box"><!--{$showpage}--></div>

  </div>
</div>
</body>
</html>