<style type="text/css">
.layui-form-item{margin-bottom: 0;}
</style>

<div class="layui-form">
<div style="float: left; height: 38px; line-height: 38px;">总共考试：<span class="layui-badge"><?php echo $pager->allsize; ?></span>&nbsp;&nbsp;参与人次：<span class="layui-badge"><?php echo $totalpersons; ?></span></div>
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/gltongji/default/index">
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">院系专业</label>
      <div class="layui-input-inline">
        <select name="se_specialid" lay-filter="changecondition">
          <option value=""></option>
      <?php foreach($colleges as $onechapter){ ?>
      <option value="<?php echo $onechapter->id; ?>"<?php if($search["se_specialid"]==$onechapter->id){echo ' selected';} ?>><?php echo $onechapter->name; ?></option>
        <?php if(!empty($onechapter->children)){ foreach($onechapter->children as $onesection){ ?>
        <option value="<?php echo $onesection->id; ?>"<?php if($search["se_specialid"]==$onesection->id){echo ' selected';} ?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $onesection->name; ?></option>
        <?php if(!empty($onesection->children)){ foreach($onesection->children as $oneknowled){ ?>
        <option value="<?php echo $oneknowled->id; ?>"<?php if($search["se_specialid"]==$oneknowled->id){echo ' selected';} ?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $oneknowled->name; ?></option>
        <?php } } ?>
      <?php } } ?>
      <?php } ?>
        </select>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">所属课程</label>
      <div class="layui-input-inline">
        <select name="se_courseid" lay-filter="changecondition">
          <option value=""></option>
      <?php foreach($courses as $onecourse){ ?>
      <option value="<?php echo $onecourse->id; ?>"<?php if($search["se_courseid"]==$onecourse->id){echo ' selected';} ?>><?php echo $onecourse->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_specialid" value="<?php echo $search["se_specialid"]; ?>">
  <input type="hidden" name="se_courseid" value="<?php echo $search["se_courseid"]; ?>">
</form>

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

<script src="/public/modules/gltongji/default/index.js"></script>