liveedit.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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"
  40. value="<?php echo Yii::$app->request->get('house_name') ?>" required lay-verify="required"
  41. disabled placeholder="请选择所属楼盘" autocomplete="off" class="layui-input">
  42. </div>
  43. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a>
  44. </div>
  45. </div>
  46. <div class="layui-form-item" style="">
  47. <label class="layui-form-label"><span style="color:red">*</span>所属区域:</label>
  48. <div class="layui-inline" style="width:64%">
  49. <select name="city" lay-verify="required" lay-search="">
  50. <option value="">直接选择或搜索选择</option>
  51. <?php if (!empty($city)) foreach ($city as $val) { ?>
  52. <optgroup label="<?= $val['city_name'] ?>">
  53. <?php if (!empty($val['son'])) foreach ($val['son'] as $v) { ?>
  54. <option value="<?= $v['id'] ?>" <?php if ($v['id'] == $model['city']) echo 'selected' ?>><?= $v['city_name'] ?></option>
  55. <?php } ?>
  56. </optgroup>
  57. <?php } ?>
  58. </select>
  59. </div>
  60. </div>
  61. <div class="layui-form-item">
  62. <label class="layui-form-label"><span style="color:red">*</span>直播标题:</label>
  63. <div class="layui-input-inline" style="width:64%">
  64. <input type="text" name="title" value="<?php echo $model['title'] ?>" placeholder="请输入标题"
  65. class="layui-input">
  66. </div>
  67. </div>
  68. <div class="layui-form-item">
  69. <label class="layui-form-label">拉流地址:</label>
  70. <div class="layui-input-inline" style="width:64%">
  71. <input type="text" name="rtmp_url" value="<?php echo $model['rtmp_url'] ?>" placeholder="请输入拉流地址"
  72. autocomplete="off"
  73. class="layui-input">
  74. </div>
  75. </div>
  76. <div class="layui-form-item">
  77. <label class="layui-form-label">回放地址:</label>
  78. <div class="layui-input-inline" style="width:64%">
  79. <input type="text" name="video_url" value="<?php echo $model['video_url'] ?>" placeholder="请输入回放地址"
  80. autocomplete="off"
  81. class="layui-input">
  82. </div>
  83. </div>
  84. <div class="layui-form-item">
  85. <label class="layui-form-label"><span style="color:red">*</span>直播时间:</label>
  86. <div class="layui-input-inline" style="width:64%">
  87. <input type="text" name="time" value="<?php echo $model['time'] ?>" id="date1" placeholder="直播时间"
  88. autocomplete="off" class="layui-input">
  89. </div>
  90. </div>
  91. <div class="layui-form-item">
  92. <label class="layui-form-label"><span style="color:red">*</span>图片地址:</label>
  93. <div class="layui-input-inline" style="width:64%">
  94. <input type="text" name="img" value="<?php echo $model['img'] ?>" placeholder="请输入封面图的地址"
  95. autocomplete="off" class="layui-input">
  96. </div>
  97. </div>
  98. <!-- <div class="layui-form-item xm_pr">-->
  99. <!-- <div class="layui-inline">-->
  100. <!-- <label class="layui-form-label">封面图:</label>-->
  101. <!-- <div class="layui-inline">-->
  102. <!-- <div class="layui-upload">-->
  103. <!-- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  104. <!-- <img class="layui-upload-img layui_magnify" name="img" src="-->
  105. <?php //echo $model['img'] ?><!--"-->
  106. <!-- id="breviary_img"-->
  107. <!-- style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">-->
  108. <!-- <p id="demoText"></p>-->
  109. <!-- </div>-->
  110. <!-- </div>-->
  111. <!-- </div>-->
  112. <!-- </div>-->
  113. <!-- <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>-->
  114. <!-- </div>-->
  115. <div class="layui-form-item mt">
  116. <input type="hidden" id="hiddenBox" name="hid" value="<?php echo $model['hid'] ?>">
  117. <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
  118. <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
  119. </div>
  120. </div>
  121. </form>