liveadd.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/live.js");
  4. ?>
  5. <style>
  6. .layui_box {
  7. width: 80%;
  8. margin: 0 auto;
  9. margin-top: 25px;
  10. }
  11. .layui-code, .layui-upload-list {
  12. margin-top: 0;
  13. }
  14. hr {
  15. width: 100%;
  16. margin: 0 auto;
  17. }
  18. .mt {
  19. text-align: center;
  20. margin-top: 15px;
  21. }
  22. .The_house {
  23. background: #FBFBFB;
  24. color: #333;
  25. }
  26. .The_house:hover {
  27. border: 1px solid #a9a9a9;
  28. color: #333;
  29. }
  30. .xm_xcxqTc_button {
  31. margin-top: -20px;
  32. }
  33. </style>
  34. <form class="layui-form layui-form-pane">
  35. <div class="layui_box">
  36. <div class="layui-form-item">
  37. <label class="layui-form-label "><span style="color:red">*</span>所属楼盘:</label>
  38. <div class="layui-input-inline" style="width:44.75%">
  39. <input type="text" id="house_name" name="house_name" required lay-verify="required" disabled
  40. placeholder="请选择所属楼盘" autocomplete="off" class="layui-input">
  41. </div>
  42. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a>
  43. </div>
  44. </div>
  45. <div class="layui-form-item" style="">
  46. <label class="layui-form-label"><span style="color:red">*</span>所属区域:</label>
  47. <div class="layui-inline" style="width:64%">
  48. <select name="city" lay-verify="required" lay-search="">
  49. <option value="">直接选择或搜索选择</option>
  50. <?php if (!empty($city)) foreach ($city as $val) { ?>
  51. <optgroup label="<?= $val['city_name'] ?>">
  52. <?php if (!empty($val['son'])) foreach ($val['son'] as $v) { ?>
  53. <option value="<?= $v['id'] ?>"><?= $v['city_name'] ?></option>
  54. <?php } ?>
  55. </optgroup>
  56. <?php } ?>
  57. </select>
  58. </div>
  59. </div>
  60. <div class="layui-form-item">
  61. <label class="layui-form-label"><span style="color:red">*</span>直播标题:</label>
  62. <div class="layui-input-inline" style="width:64%">
  63. <input type="text" name="title" required lay-verify="required" placeholder="请输入直播标题"
  64. class="layui-input">
  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:64%">
  70. <input type="text" name="rtmp_url" placeholder="请输入拉流地址" autocomplete="off"
  71. class="layui-input">
  72. </div>
  73. </div>
  74. <div class="layui-form-item">
  75. <label class="layui-form-label">回放地址:</label>
  76. <div class="layui-input-inline" style="width:64%">
  77. <input type="text" name="video_url" placeholder="请输入回放地址" autocomplete="off"
  78. class="layui-input">
  79. </div>
  80. </div>
  81. <div class="layui-form-item">
  82. <label class="layui-form-label"><span style="color:red">*</span>直播时间:</label>
  83. <div class="layui-input-inline" style="width:64%">
  84. <input type="text" required lay-verify="required" name="time" id="date1" placeholder="精确到秒,点击后左下角可选时分秒"
  85. autocomplete="off" class="layui-input">
  86. </div>
  87. </div>
  88. <div class="layui-form-item">
  89. <label class="layui-form-label"><span style="color:red">*</span>图片地址:</label>
  90. <div class="layui-input-inline" style="width:64%">
  91. <input type="text" required lay-verify="required" name="img" placeholder="请输入封面图的地址"
  92. autocomplete="off" class="layui-input">
  93. </div>
  94. </div>
  95. <!-- <div class="layui-form-item xm_pr">-->
  96. <!-- <div class="layui-inline">-->
  97. <!-- <label class="layui-form-label"><span style="color:red">*</span>封面图:</label>-->
  98. <!-- <div class="layui-inline">-->
  99. <!-- <div class="layui-upload">-->
  100. <!-- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  101. <!-- <img class="layui-upload-img layui_magnify" name="img" src="" id="breviary_img"-->
  102. <!-- style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">-->
  103. <!-- <p id="demoText"></p>-->
  104. <!-- </div>-->
  105. <!-- </div>-->
  106. <!-- </div>-->
  107. <!-- </div>-->
  108. <!-- <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>-->
  109. <!-- </div>-->
  110. <div class="layui-form-item mt">
  111. <button class="layui-btn" lay-submit="" lay-filter="adds">提交</button>
  112. </div>
  113. </div>
  114. </form>