videoadd.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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."/static/plug-in/jquery-3.2.1.min.js");
  13. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/video.js");
  14. ?>
  15. <style>
  16. .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
  17. .xm_xcxqTc_img{margin:0;}
  18. .xm_xcxqTc_img #demoText{position:relative;top:12px;right:14px;}
  19. .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
  20. .xm_pr{position:relative;}
  21. /*.ml{margin-left:18px}*/
  22. .xm_tgqcTc_qy{width:240px;}
  23. .xm_tgqcTc_qy .layui-form-select dl{text-align:center;}
  24. .xm_tgqcTc_qy .layui-form-select .layui-input{text-align:center;}
  25. .xm_layui-elem-quote{background-color:#d3d3d3;}
  26. </style>
  27. <div class="xm_qytc_box">
  28. <blockquote class="layui-elem-quote xm_layui-elem-quote">
  29. 新房团购 - 详情
  30. </blockquote>
  31. <form class="layui-form layui-form-pane" action="">
  32. <div class="layui-form-item xm_tgqcTc_qy">
  33. <label class="layui-form-label">所属城市:</label>
  34. <div class="layui-input-block">
  35. <select name="address" lay-filter="aihao">
  36. <option value="" selected=""></option>
  37. <!-- <option value="0">海口</option>
  38. <option value="1">三亚</option>
  39. <option value="2">万宁</option>
  40. <option value="3">陵水</option>
  41. <option value="4">琼海</option> -->
  42. </select>
  43. </div>
  44. </div>
  45. <div class="layui-form-item xm_tgqcTc_qy">
  46. <label class="layui-form-label">所属分类:</label>
  47. <div class="layui-input-block">
  48. <select name="Category" lay-filter="aihao">
  49. <option value="" selected=""></option>
  50. <!-- <option value="0">精彩推荐</option>
  51. <option value="1">楼盘视频</option>
  52. <option value="2">资讯视频</option>
  53. <option value="3">其他视频</option> -->
  54. </select>
  55. </div>
  56. </div>
  57. <div class="layui-form-item">
  58. <label class="layui-form-label">视频标题:</label>
  59. <div class="layui-input-inline" style="width:270px;">
  60. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_bt">
  61. </div>
  62. <!--
  63. <div class="layui-input-inline">
  64. <button class="layui-btn ml" lay-submit="demo1" lay-filter="demo1">检查重名</button>
  65. </div> -->
  66. </div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label">关键词</label>
  69. <div class="layui-input-inline" style="width:270px;">
  70. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
  71. </div>
  72. </div>
  73. <div class="layui-form-item layui-form-text">
  74. <label class="layui-form-label">描述</label>
  75. <div class="layui-input-block">
  76. <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
  77. </div>
  78. </div>
  79. <div class="layui-form-item">
  80. <label class="layui-form-label">视频来源:</label>
  81. <div class="layui-input-inline" style="width:270px;">
  82. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_xmdz">
  83. </div>
  84. </div>
  85. <div class="layui-form-item">
  86. <label class="layui-form-label">视频路径:</label>
  87. <div class="layui-input-inline" style="width:270px;">
  88. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_xmdz">
  89. </div>
  90. </div>
  91. <div class="layui-form-item">
  92. <label class="layui-form-label">楼盘链接:</label>
  93. <div class="layui-input-inline" style="width:270px;">
  94. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_xmdz">
  95. </div>
  96. </div>
  97. <div class="layui-form-item xm_pr">
  98. <div class="layui-inline">
  99. <label class="layui-form-label" style="width:135px">视频封面图:</label>
  100. <div class="layui-input-inline" style="width:550px;">
  101. <input type="text" name="number" autocomplete="off" class="layui-input">
  102. </div>
  103. <div class="layui-inline">
  104. <div class="layui-upload">
  105. <div class="layui-upload-list xm_xcxqTc_img">
  106. <img class="layui-upload-img" id="demo1" style="width:100px;height:80px;margin-left:10px;">
  107. <p id="demoText"></p>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <button type="button" class="layui-btn xm_xcxqTc_button" id="test1">上传图片</button>
  113. </div>
  114. <div class="layui-form-item">
  115. <label class="layui-form-label">联系电话:</label>
  116. <div class="layui-input-inline" style="width:270px;">
  117. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_tglx">
  118. </div>
  119. </div>
  120. <div class="layui-form-item">
  121. <label class="layui-form-label">价格:</label>
  122. <div class="layui-input-inline" style="width:270px;">
  123. <input type="text" name="username" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input xm_xqtc_zxqk">
  124. </div>
  125. </div>
  126. <div class="layui-form-item">
  127. <div class="layui-inline">
  128. <label class="layui-form-label">视频时间:</label>
  129. <div class="layui-input-block">
  130. <input type="text" name="date" id="date1" autocomplete="off" class="layui-input">
  131. <!-- <span style="line-height:30px;color:#919090;">不限结束时间请留空</span> -->
  132. </div>
  133. </div>
  134. </div>
  135. <div class="layui-form-item">
  136. <label class="layui-form-label">是否推荐:</label>
  137. <div class="layui-input-block">
  138. <input type="checkbox" name="like[read]" title="不推荐" checked="">
  139. <input type="checkbox" name="like[game]" title="推荐">
  140. </div>
  141. </div>
  142. <span>内容</span>
  143. <hr class="layui-bg-blue">
  144. <div class="layui-bg-gray" style="padding:3px 15px;">文章内容:</div>
  145. <div class="editor_box">
  146. <textarea name="content" id="editor" cols="30" rows="10" style="width:100%;height:400px;float:left;"></textarea>
  147. </div>
  148. <div class="layui-form-item">
  149. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  150. <button class="layui-btn" lay-submit="" lay-filter="demo1" style="margin:35px 0 12px 0;">提交</button>
  151. </div>
  152. </div>
  153. </form>
  154. </div>