create.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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."/static/plug-in/ueditor/1.4.3/ueditor.config.js");
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/ueditor.all.min.js");
  11. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/ueditor/1.4.3/lang/zh-cn/zh-cn.js");
  12. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/routine/video.js");
  13. ?>
  14. <style>
  15. .layui_box {width:60%;margin:0 auto;margin-top:25px;}
  16. .layui-code, .layui-upload-list {margin-top:0;}
  17. hr {width:100%;margin:0 auto;}
  18. .mt {text-align:center;margin-top:15px;}
  19. .The_house {background:#FBFBFB;color:#333;}
  20. .The_house:hover {border:1px solid #a9a9a9;color:#333;}
  21. </style>
  22. <form class="layui-form layui-form-pane">
  23. <div class="layui_box">
  24. <!-- <div class="layui-form-item">-->
  25. <!-- <label class="layui-form-label">所属分类:</label>-->
  26. <!-- <div class="layui-input-block" style="width:32%">-->
  27. <!-- <select name="video_category" lay-filter="aihao">-->
  28. <!-- <option value="">请选择</option>-->
  29. <!-- --><?php //foreach ($video as $val) { ?>
  30. <!-- <option value="--><?php // echo $val['id']?><!--">--><?php //echo $val['type_name'] ?><!--</option>-->
  31. <!-- --><?php //}?>
  32. <!-- </select>-->
  33. <!-- </div>-->
  34. <!-- </div>-->
  35. <!---->
  36. <!-- <div class="layui-form-item">-->
  37. <!-- <label class="layui-form-label">所属区域:</label>-->
  38. <!-- <div class="layui-input-block" style="width:32%">-->
  39. <!-- <select name="city" lay-filter="aihao">-->
  40. <!-- <option value="">请选择</option>-->
  41. <!-- --><?php //foreach ($city as $val) { ?>
  42. <!-- <option value="--><?php //echo $val['id']?><!--">--><?php //echo $val['city_name'] ?><!--</option>-->
  43. <!-- --><?php //}?>
  44. <!-- </select>-->
  45. <!-- </div>-->
  46. <!-- </div>-->
  47. <!-- <div class="layui-form-item">-->
  48. <!-- <label class="layui-form-label ">所属楼盘:</label>-->
  49. <!-- <div class="layui-input-inline">-->
  50. <!-- <input type="text" id="house_name" name="house_name" disabled placeholder="请输入分类名称" autocomplete="off" class="layui-input">-->
  51. <!-- </div>-->
  52. <!-- <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>-->
  53. <!-- </div>-->
  54. <div class="layui-form-item">
  55. <label class="layui-form-label">标题:</label>
  56. <div class="layui-input-inline" style="width:32%">
  57. <input type="text" name="title" lay-verify="required" placeholder="请输入视频标题" autocomplete="off" class="layui-input">
  58. </div>
  59. </div>
  60. <!---->
  61. <!-- <div class="layui-form-item">-->
  62. <!-- <label class="layui-form-label">视频来源:</label>-->
  63. <!-- <div class="layui-input-inline" style="width:32%">-->
  64. <!-- <input type="text" name="source" placeholder="请输入视频来源" autocomplete="off" class="layui-input">-->
  65. <!-- </div>-->
  66. <!-- </div>-->
  67. <!---->
  68. <!---->
  69. <div class="layui-form-item">
  70. <label class="layui-form-label"><span style="color:red">*</span>作者:</label>
  71. <div class="layui-input-inline" style="width:32%">
  72. <input type="text" name="author" lay-verify="required" value="<?= Yii::$app->session['user_info']['name'] ?>" autocomplete="off" class="layui-input">
  73. </div>
  74. </div>
  75. <div class="layui-form-item xm_pr">
  76. <div class="layui-inline">
  77. <label class="layui-form-label">封面图:</label>
  78. <!-- <div class="layui-input-inline" style="width:270px;">
  79. <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
  80. </div> -->
  81. <div class="layui-inline">
  82. <div class="layui-upload">
  83. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  84. <img class="layui-upload-img layui_magnify" name="img" src="" id="breviary_img" style="width:100px;height:80px;margin-left:10px;">
  85. <p id="demoText"></p>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  91. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  92. </div>
  93. <div class="layui-form-item">
  94. <label class="layui-form-label">描述:</label>
  95. <input type="hidden" name="port" value="1">
  96. <textarea name="describe" cols="30" rows="10" style="width:100%;height:400px;float:left;"></textarea>
  97. </div>
  98. <div class="layui-form-item mt">
  99. <button class="layui-btn" lay-submit="" lay-filter="add_video_type_name">提交</button>
  100. </div>
  101. </div>
  102. </form>