<!--{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_subname" id="s_subname" class="layui-input" value="<!--{$s_subname}-->" />
        </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-width="900" data-title="添加题目" data-url="<!--{$oefile}-->&c=emsubject&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="20%">题目</th>
          <th>选项</th>
          <th width="14%">添加时间</th>
          <th width="10%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($emsubject)}-->
      <tr>
        <td colspan="7" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $emsubject as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.subid}-->" />
        </td>
        <td class="text_center">
          <!--{$volist.subid}-->
        </td>
        <td><!--{$volist.title}--> / <!--{$volist.testid}--></td>
        <td>
          <!--{$volist.subname}-->
        </td>
        <td>
          <!--{if !empty($volist.itemlist)}-->
          <!--{foreach $volist.itemlist as $val}-->
          <!--{$val.text}--> (<!--{$val.value}-->分)<br />
          <!--{/foreach}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </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-width="900" data-url="<!--{$oefile}-->&c=emsubject&a=edit&id=<!--{$volist.subid}-->">编辑</a>
            
            <a href="javascript:;" f="handle-one" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.subid}-->&<!--{$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>