<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>选择课程</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="/plugins/layui/css/layui.css">
  <link rel="stylesheet" href="/plugins/fontawesome/css/font-awesome.min.css" />
  <link rel="stylesheet" href="/public/css/global.css">

  <script src="/public/js/jquery-1.11.3.min.js"></script>
  <script src="/public/js/jquery.form-3.36.0.min.js"></script>
  
</head>
<body>

<div class="layui-fluid" style="padding-left: 10px; padding-right: 10px; margin-top: 10px;">

<div class="layui-form">
<div style="float: right;">
<form class="layui-form" id="search_form" method="post" action="/glexam/mycourse/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>课程名称</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_specialid" value="<?php echo $search["se_specialid"]; ?>">
	<input type="hidden" name="se_title" value="<?php echo $search["se_title"]; ?>">
</form>

</div>

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

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

<script src="/plugins/layui/layui.all.js"></script>
</body>
</html>