<!--{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">测试ID：</div>
        <div class="layui-input-inline">
          <input type="text" name="s_testid" id="s_testid" class="layui-input" value="<!--{if $s_testid > 0}--><!--{$s_testid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">结果描述：</div>
        <div class="layui-input-inline">
          <input type="text" name="s_result" id="s_result" class="layui-input" value="<!--{$s_result}-->" />
        </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="javascript:;" class="btn add fl" f="but_normal_dialog" data-title="添加答案/结果" data-url="<!--{$oefile}-->&c=emresult&a=add&testid=<!--{if $s_testid > 0}--><!--{$s_testid}--><!--{/if}-->">
          <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}-->&<!--{$comeurl}-->" 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="20%">标题</th>
          <th width="8%">分值范围</th>
          <th>答案/结果</th>
          <th width="14%">添加时间</th>
          <th width="10%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($emresult)}-->
      <tr>
        <td colspan="7" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $emresult as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.resultid}-->" />
        </td>
        <td class="text_center">
          <!--{$volist.resultid}-->
        </td>
        <td><!--{$volist.title}--> / <!--{$volist.testid}--></td>
        <td class="text_center">
          <!--{if $volist.minscore == $volist.maxscore}-->
          <!--{doubleval($volist.minscore)}-->分
          <!--{else}-->
          <!--{doubleval($volist.minscore)}-->-<!--{doubleval($volist.maxscore)}-->分
          <!--{/if}-->
        </td>
        
        <td>
          <!--{$volist.result|nl2br}-->
        </td>
        <td class="text_center">
          <!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
        </td>
        <td class="text_center">
          <div class="btn_box">
            
            <a href="javascript:;" class="layui-btn layui-btn-xs layui-btn-normal" f="but_normal_dialog" data-title="编辑结果/答案" data-url="<!--{$oefile}-->&c=emresult&a=edit&id=<!--{$volist.resultid}-->">编辑</a>
            
            <a href="javascript:;" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.resultid}-->&<!--{$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>