<!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-fluid" style="padding-right: 20px; margin-top: 50px;">
<form class="layui-form" id="detail_form" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">班级名称</label>
    <div class="layui-input-block">
      <input type="text" name="title" placeholder="请输入" class="layui-input" value="<?php echo $schoolclass->name; ?>">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">所属专业</label>
    <div class="layui-input-block">
    <select name="specialid">
    <option value=""></option>
    <?php foreach($colleges as $onechapter){ ?>
    <option disabled value="<?php echo $onechapter->id; ?>"<?php if($specialid==$onechapter->id){echo ' selected';} ?>><?php echo $onechapter->name; ?></option>
      <?php if(!empty($onechapter->children)){ foreach($onechapter->children as $onesection){ ?>
      <option disabled value="<?php echo $onesection->id; ?>"<?php if($specialid==$onesection->id){echo ' selected';} ?>>&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($specialid==$oneknowled->id){echo ' selected';} ?>>&nbsp;&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">
    <label class="layui-form-label">年级</label>
    <div class="layui-input-block">
      <input type="text" name="grade" placeholder="<?php echo date("Y"); ?>" class="layui-input" value="<?php echo $schoolclass->grade; ?>">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit id="detail_submit">提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
  <input type="hidden" name="_csrf" value="<?php echo Yii::$app->request->getCsrfToken(); ?>">
  <input type="hidden" name="xzclassid" value="<?php echo $schoolclass->id; ?>">
</form>
</div>

<script src="/public/modules/glxzclass/basic/index.js"></script>

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