videoedit.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午5:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/dictionaryb/video.js");
  10. ?>
  11. <style>
  12. .layui_box {width:60%;margin:0 auto;margin-top:25px;}
  13. .layui-code, .layui-upload-list {margin-top:0;}
  14. hr {width:100%;margin:0 auto;}
  15. .mt {text-align:center;margin-top:15px;}
  16. </style>
  17. <form class="layui-form layui-form-pane" action="" >
  18. <div class="layui_box">
  19. <div class="layui-form-item">
  20. <label class="layui-form-label">分类名称:</label>
  21. <div class="layui-input-inline">
  22. <input type="text" name="type_name" value="<?php echo $model['type_name'] ?>" lay-verify="required" placeholder="请输入分类名称" autocomplete="off" class="layui-input">
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label">是否推荐</label>
  27. <div class="layui-input-block">
  28. <input type="radio" name="is_recommend" value="1" title="不推荐" <?php if($model['is_recommend'] == 1) echo 'checked' ?>>
  29. <input type="radio" name="is_recommend" value="2" title="推荐" <?php if($model['is_recommend'] == 2) echo 'checked' ?>>
  30. </div>
  31. </div>
  32. <div class="layui-form-item mt">
  33. <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
  34. <button class="layui-btn" lay-submit="" lay-filter="save_video_type_name">提交</button>
  35. </div>
  36. </div>
  37. </form>