<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: 0 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">
<?php if($userobj->roleid==1){ ?>
<div style="float: left;"><a class="layui-btn" onclick="javascript:return calcQuestinumAgain(0, 0);"><i class="fa fa-refresh"></i> 重新统计题目数量</a></div>
<?php } ?>
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/glquesti/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_cateid" lay-filter="changecondition">
          <option value=""></option>
          <?php foreach($colleges as $onecollege){ ?>
          <option value="<?php echo $onecollege->id; ?>"<?php if($search["se_cateid"]==$onecollege->id){echo ' selected';} ?>><?php echo $onecollege->name; ?></option>
          <?php foreach($onecollege->children as $onedepart){ ?>
          <option value="<?php echo $onedepart->id; ?>"<?php if($search["se_cateid"]==$onedepart->id){echo ' selected';} ?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $onedepart->name; ?></option>
          <?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>专业名称</th>
      <th>题目数量</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody id="pagelistbox">
    
  </tbody>
  <tfoot>
    <tr id="waitingtipsbox" style="display: none;"><td colspan="3" 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_cateid" value="<?php echo $search["se_cateid"]; ?>">
</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/default/index.js"></script>