123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午5:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/dictionaryb/video.js");
- ?>
- <style>
- .layui_box {width:60%;margin:0 auto;margin-top:25px;}
- .layui-code, .layui-upload-list {margin-top:0;}
- hr {width:100%;margin:0 auto;}
- .mt {text-align:center;margin-top:15px;}
- </style>
- <form class="layui-form layui-form-pane" action="" >
- <div class="layui_box">
- <div class="layui-form-item">
- <label class="layui-form-label">分类名称:</label>
- <div class="layui-input-inline">
- <input type="text" name="type_name" value="<?php echo $model['type_name'] ?>" lay-verify="required" placeholder="请输入分类名称" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">是否推荐</label>
- <div class="layui-input-block">
- <input type="radio" name="is_recommend" value="1" title="不推荐" <?php if($model['is_recommend'] == 1) echo 'checked' ?>>
- <input type="radio" name="is_recommend" value="2" title="推荐" <?php if($model['is_recommend'] == 2) echo 'checked' ?>>
- </div>
- </div>
- <div class="layui-form-item mt">
- <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
- <button class="layui-btn" lay-submit="" lay-filter="save_video_type_name">提交</button>
- </div>
- </div>
- </form>
|