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

<div id="progressbox" class="layui-progress layui-progress-big" lay-showpercent="true" style="margin: 15px 0 15px 0; display: none;">
  <div class="layui-progress-bar" lay-percent="0%" style="width: 0%;"><span class="layui-progress-text">0%</span></div>
</div>
<div class="layui-form">
<div style="float: left;"></div>
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/glquesti/myqbank/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">
        <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><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
      <th>课程名称</th>
      <th>题目数量</th>
      <th>操作</th>
      <th>对学生公开</th>
      <th>允许题目重复使用(0为不限)</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>
    <tr>
      <td><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></td>
      <td><button type="button" class="layui-btn" title="初始化题库" id="initialize_button">初始化题库</button></td>
      <td colspan="3">&nbsp;</td>
      <td><button type="button" class="layui-btn" title="保存重复使用次数" id="saveusage_button">保存重复使用次数</button></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"]; ?>">
</form>

<iframe id="calcQuestinumbox" style="display: none;"></iframe>

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

<script src="/public/modules/glquesti/myqbank/index.js"></script>