<!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">
  
  <script src="/public/js/jquery-1.11.3.min.js"></script>
  <script src="/public/js/jquery.form-3.36.0.min.js"></script>

  <link rel="stylesheet" href="/plugins/layui/css/layui.css">
  <link rel="stylesheet" href="/public/css/global.css">
  
</head>
<body>

<div class="layui-layout" style="padding-right: 20px; margin-top: 30px;">
<form class="layui-form" id="detail_form" method="post" action="/glquesti/moveto/index?courseid=<?php echo $courseid; ?>&specialid=<?php echo $specialid; ?>">
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-block">将题目移动到</div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">课程</label>
    <div class="layui-input-block">
      <select name="se_courseid" lay-filter="changecourse">
      <option value=""></option>
      <?php foreach($allcourses as $onecourse){ ?>
      <option value="<?php echo $onecourse->id; ?>"<?php if($se_courseid==$onecourse->id){echo ' selected';} ?>><?php echo $onecourse->name; ?></option>
      <?php } ?>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">知识点</label>
    <div class="layui-input-block">
      <select name="se_treeid">
      <option value=""></option>
      <?php foreach($chapters as $onechapter){ ?>
      <option value="<?php echo $onechapter->id; ?>"><?php echo $onechapter->name; ?></option>
        <?php if(!empty($onechapter->sections)){ foreach($onechapter->sections as $onesection){ ?>
        <option value="<?php echo $onesection->id; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $onesection->name; ?></option>
          <?php if(!empty($onesection->knowledges)){ foreach($onesection->knowledges as $oneknowled){ ?>
          <option value="<?php echo $oneknowled->id; ?>">&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-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit id="detail_submit">提交</button>
    </div>
  </div>
  <input type="hidden" name="_csrf" value="<?php echo Yii::$app->request->getCsrfToken(); ?>">
  <input type="hidden" name="resourceids" value="">
</form>
</div>

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

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