pushnewsadd.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/listnav/pushnews.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. <!-- 选择楼盘 -->
  37. <div class="layui-form-item">
  38. <label class="layui-form-label"><span style="color: red">*</span>选择栏目</label>
  39. <div class="layui-input-block">
  40. <select name="news" lay-verify="required">
  41. <?php foreach ($new_list as $val) {?>
  42. <option value="<?=$val['id']?>"><?=$val['news_name']?></option>
  43. <?php }?>
  44. </select>
  45. </div>
  46. </div>
  47. <div class="layui-form-item mt">
  48. <input type="hidden" name="list_id" value="<?=$list_id?>">
  49. <button class="layui-btn" lay-submit="" lay-filter="adds">提交</button>
  50. </div>
  51. </div>
  52. </form>