bottomedit.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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."/js/push/bottom.js");
  10. ?>
  11. <style>
  12. .layui_box {width:80%;margin:0 auto;margin-top:25px;}
  13. .layui-code, .layui-upload-list {margin-top:0;}
  14. hr {width:100%;margin:0 auto;}
  15. .mt {text-align:center;margin-top:15px;}
  16. .The_house {background:#FBFBFB;color:#333;}
  17. .The_house:hover {border:1px solid #a9a9a9;color:#333;}
  18. .xm_xcxqTc_button {margin-top:-20px;}
  19. </style>
  20. <form class="layui-form layui-form-pane">
  21. <div class="layui_box">
  22. <div class="layui-form-item">
  23. <label class="layui-form-label " style="width: 130px">所属楼盘:</label>
  24. <div class="layui-input-inline" style="width:42.9%">
  25. <input type="text" id="house_name" name="house_name" value="<?php echo Yii::$app->request->get('house_name') ?>" disabled placeholder="请选择楼盘" autocomplete="off" class="layui-input">
  26. </div>
  27. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  28. </div>
  29. <div class="layui-form-item">
  30. <label class="layui-form-label " style="width: 130px">区域:</label>
  31. <div class="layui-input-inline" style="width:64%">
  32. <select name="city_pid" lay-search="">
  33. <option value="" selected="">请选择区域</option>
  34. <?php foreach ($city as $value) {?>
  35. <option value="<?php echo $value['id']?>" <?php if($row['city_pid'] == $value['id']) echo 'selected'?> ><?php echo $value['city_name'] ?></option>
  36. <?php } ?>
  37. </select>
  38. </div>
  39. </div>
  40. <div class="layui-form-item">
  41. <label class="layui-form-label" style="width: 130px"><span style="color:red">*</span>标题:</label>
  42. <div class="layui-input-inline" style="width:64%">
  43. <input type="text" name="title" value="<?php echo $row['title'] ?>" required lay-verify="required" placeholder="请输入标题" class="layui-input">
  44. </div>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label" style="width: 130px"><span style="color:red">*</span>报名来源:</label>
  48. <div class="layui-input-inline" style="width:64%">
  49. <input type="text" name="input" value="<?php echo $row['input'] ?>" required lay-verify="required" placeholder="请输入报名来源的ID,公共报名则为0" class="layui-input">
  50. </div>
  51. </div>
  52. <div class="layui-form-item">
  53. <label class="layui-form-label" style="width: 130px">跳转地址:</label>
  54. <div class="layui-input-inline" style="width:64%">
  55. <input type="text" name="url" value="<?php echo $row['url'] ?>" placeholder="跳转地址,不填写默认点击无效" autocomplete="off" class="layui-input">
  56. </div>
  57. </div>
  58. <div class="layui-form-item">
  59. <label class="layui-form-label" style="width: 130px">字体颜色:</label>
  60. <div class="layui-input-inline" style="width:64%">
  61. <input type="text" name="font_color" value="<?php echo $row['font_color'] ?>" placeholder="请输入颜色英文或颜色代码,例:#FF0000" autocomplete="off" class="layui-input">
  62. </div>
  63. </div>
  64. <div class="layui-form-item">
  65. <label class="layui-form-label" style="width: 130px">按钮颜色:</label>
  66. <div class="layui-input-inline" style="width:64%">
  67. <input type="text" name="button_color" value="<?php echo $row['button_color'] ?>" placeholder="请输入颜色英文或颜色代码,例:#FF0000" autocomplete="off" class="layui-input">
  68. </div>
  69. </div>
  70. <div class="layui-form-item">
  71. <label class="layui-form-label" style="width: 130px">按钮字体颜色:</label>
  72. <div class="layui-input-inline" style="width:64%">
  73. <input type="text" name="buttonfont_color" value="<?php echo $row['buttonfont_color'] ?>" placeholder="请输入颜色英文或颜色代码,例:#FF0000" autocomplete="off" class="layui-input">
  74. </div>
  75. </div>
  76. <div class="layui-form-item xm_pr">
  77. <div class="layui-inline">
  78. <label class="layui-form-label" style="width: 130px"><span style="color:red">*</span>横幅图:</label>
  79. <div class="layui-inline">
  80. <div class="layui-upload">
  81. <div class="layui-upload-list lay_p_relative">
  82. <img class="layui-upload-img layui_magnify" name="img" src="<?php echo $row['img'] ?>" id="breviary_img" style="width:269px;height:90px;margin-left:10px;border:1px solid #ccc;">
  83. <p id="demoText"></p>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  89. </div>
  90. <div class="layui-form-item xm_pr">
  91. <div class="layui-inline">
  92. <label class="layui-form-label" style="width: 130px">小图标:</label>
  93. <div class="layui-inline">
  94. <div class="layui-upload">
  95. <div class="layui-upload-list lay_p_relative">
  96. <img class="layui-upload-img layui_magnify" name="img_small" src="<?php echo $row['img_small'] ?>" id="breviary_img2" style="width:269px;height:90px;margin-left:10px;border:1px solid #ccc;">
  97. <p id="demoText"></p>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test2">选择图片</button>
  103. </div>
  104. <label class="layui-form-label" style="width: 130px"><span style="color:red">*</span>活动说明:</label>
  105. <div class="layui-input-inline" >
  106. <textarea name="explain" required lay-verify="required" style="width: 402px;height:100px;" placeholder="示例:活动时间2019/07/01(如有变动,最终以开发商公布为准)" class="layui-textarea"><?= $row['explain'] ?></textarea>
  107. </div>
  108. <br>
  109. <br>
  110. <div class="layui-input-inline" >
  111. <span>红色<span style="color:red">*</span>号为必填选项</span>
  112. </div>
  113. <div class="layui-form-item mt">
  114. <input type="hidden" name="id" value="<?php echo $row['id'] ?>">
  115. <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
  116. </div>
  117. </div>
  118. </form>