videoadd.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <div class="layui-form-item">
  36. <label class="layui-form-label">所属区域:</label>
  37. <div class="layui-input-block" style="width:32%">
  38. <select name="city" lay-filter="aihao" lay-search="">
  39. <option value="">请选择</option>
  40. <?php foreach ($city as $val) { ?>
  41. <option value="<?php echo $val['id']?>"><?php echo $val['city_name'] ?></option>
  42. <?php }?>
  43. </select>
  44. </div>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label ">所属楼盘:</label>
  48. <div class="layui-input-inline">
  49. <input type="text" id="house_name" name="house_name" disabled placeholder="请输入分类名称" autocomplete="off" class="layui-input">
  50. </div>
  51. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label">视频标题:</label>
  55. <div class="layui-input-inline" style="width:32%">
  56. <input type="text" name="title" lay-verify="required" placeholder="请输入视频标题" autocomplete="off" class="layui-input">
  57. </div>
  58. </div>
  59. <!-- <div class="layui-form-item">-->
  60. <!-- <label class="layui-form-label">关键词:</label>-->
  61. <!-- <div class="layui-input-inline" style="width:32%">-->
  62. <!-- <input type="text" name="key_words" lay-verify="required" placeholder="请输入关键词" autocomplete="off" class="layui-input">-->
  63. <!-- </div>-->
  64. <!-- </div>-->
  65. <div class="layui-form-item">
  66. <label class="layui-form-label">描述:</label>
  67. <div class="layui-input-inline" style="width:32%">
  68. <input type="text" name="description" placeholder="请输入描述" autocomplete="off" class="layui-input">
  69. </div>
  70. </div>
  71. <div class="layui-form-item">
  72. <label class="layui-form-label">视频来源:</label>
  73. <div class="layui-input-inline" style="width:32%">
  74. <input type="text" name="source" placeholder="请输入视频来源" value="易购房" autocomplete="off" class="layui-input">
  75. </div>
  76. </div>
  77. <div class="layui-form-item">
  78. <label class="layui-form-label"><span style="color:red">*</span>视频路径:</label>
  79. <div class="layui-input-inline" style="width:32%">
  80. <input type="text" name="video_url" lay-verify="required" placeholder="请输入视频路径" autocomplete="off" class="layui-input">
  81. </div>
  82. </div>
  83. <div class="layui-form-item xm_pr">
  84. <div class="layui-inline">
  85. <label class="layui-form-label">封面图:</label>
  86. <!-- <div class="layui-input-inline" style="width:270px;">
  87. <input type="text" name="thumbnail" value="" autocomplete="off" class="layui-input">
  88. </div> -->
  89. <div class="layui-inline">
  90. <div class="layui-upload">
  91. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  92. <img class="layui-upload-img layui_magnify" name="img" src="" id="breviary_img" style="width:100px;height:80px;margin-left:10px;">
  93. <p id="demoText"></p>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  99. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  100. </div>
  101. <div class="layui-form-item">
  102. <label class="layui-form-label">是否推荐</label>
  103. <div class="layui-input-block">
  104. <input type="radio" name="allow" value="1" title="不推荐" checked>
  105. <input type="radio" name="allow" value="2" title="推荐" >
  106. </div>
  107. </div>
  108. <div class="layui-form-item">
  109. <label class="layui-form-label">简介:</label>
  110. <textarea name="content" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"></textarea>
  111. </div>
  112. <div class="layui-form-item mt">
  113. <button class="layui-btn" lay-submit="" lay-filter="add_video_type_name">提交</button>
  114. </div>
  115. </div>
  116. </form>