<h2><?php echo $exam->title; ?></h2>
<div class="layui-form" style="margin-top:10px;">
<div style="float: left;"><a class="layui-btn" onclick="oneKeyPigaiok(<?php echo $exam->id; ?>);">一键批改</a></div>
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/glexam/pigai/<?php echo $exam->id; ?>">
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">状态</label>
      <div class="layui-input-inline">
        <select name="se_isdone" lay-filter="changecondition">
          <option value=""></option>
      <option value="1"<?php if($search["se_isdone"]==1){echo ' selected';} ?>>未提交</option>
      <option value="2"<?php if($search["se_isdone"]==2){echo ' selected';} ?>>未批改</option>
      <option value="3"<?php if($search["se_isdone"]==3){echo ' selected';} ?>>已批改</option>
        </select>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">班级</label>
      <div class="layui-input-inline">
        <select name="se_xzclassid" lay-filter="changecondition">
          <option value=""></option>
      <?php foreach($xzclasses as $oneclass){ ?>
      <option value="<?php echo $oneclass->id; ?>"<?php if($search["se_xzclassid"]==$oneclass->id){echo ' selected';} ?>><?php echo $oneclass->name; ?></option>
      <?php } ?>
        </select>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">姓名/学号</label>
      <div class="layui-input-inline">
        <input type="text" class="layui-input" name="se_title" value="<?php echo $search["se_title"]; ?>">
      </div>
    </div>
    <div class="layui-inline">
      <button class="layui-btn" lay-submit>搜索</button>
    </div>
  </div>
</form>
</div>
<div style="clear: both;"></div>
</div>

<div class="layui-form">
<form id="list_form" method="post">
<table class="layui-table" lay-skin="line">
  <thead>
    <tr>
      <th>姓名</th>
      <th>学号</th>
      <th>班级</th>
      <th>状态</th>
      <th>得分</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody id="pagelistbox">
    
  </tbody>
  <tfoot>
    <tr id="waitingtipsbox" style="display: none;"><td colspan="6" align="center"><i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop">&#xe63d;</i> 努力加载中......</td></tr>
  </tfoot>
</table>
</form>
</div>

<div class="layui-form">
  <div id="pagelinkbox" style="text-align: right;"></div>
  <div style="clear: both;"></div>
</div>

<form id="gotopage_form" style="display: none;">
  <input type="hidden" name="curpage">
  <input type="hidden" name="rnum">
  <input type="hidden" name="listmore" value="yes">
  <input type="hidden" name="se_title" value="<?php echo $search["se_title"]; ?>">
  <input type="hidden" name="se_xzclassid" value="<?php echo $search["se_xzclassid"]; ?>">
  <input type="hidden" name="se_isdone" value="<?php echo $search["se_isdone"]; ?>">
</form>

<script type="text/javascript">
var examid = <?php echo $exam->id; ?>;
var allsize = <?php echo $pager->allsize; ?>;
var pagesize = <?php echo $pager->pagesize; ?>;
</script>

<script src="/public/modules/glexam/pigai/index.js"></script>