homediscountedit.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/homediscount.js");
  10. ?>
  11. <style>
  12. .layui_box {
  13. width: 80%;
  14. margin: 0 auto;
  15. margin-top: 25px;
  16. }
  17. .layui-code, .layui-upload-list {
  18. margin-top: 0;
  19. }
  20. hr {
  21. width: 100%;
  22. margin: 0 auto;
  23. }
  24. .mt {
  25. text-align: center;
  26. margin-top: 15px;
  27. }
  28. .The_house {
  29. background: #FBFBFB;
  30. color: #333;
  31. }
  32. .The_house:hover {
  33. border: 1px solid #a9a9a9;
  34. color: #333;
  35. }
  36. .xm_xcxqTc_button {
  37. margin-top: -20px;
  38. }
  39. </style>
  40. <form class="layui-form layui-form-pane">
  41. <div class="layui_box">
  42. <div class="layui-form-item">
  43. <label class="layui-form-label "><span style="color:red">*</span>所属楼盘:</label>
  44. <div class="layui-input-inline" style="width:43%">
  45. <input type="text" id="house_name" name="house_name"
  46. value="<?php echo Yii::$app->request->get('house_name') ?>" required lay-verify="required"
  47. disabled placeholder="请选择所属楼盘" autocomplete="off" class="layui-input">
  48. </div>
  49. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a>
  50. </div>
  51. </div>
  52. <div class="layui-form-item">
  53. <label class="layui-form-label"><span style="color:red">*</span>优惠信息:</label>
  54. <div class="layui-input-inline" style="width:64%">
  55. <input type="text" name="title" value="<?php echo $model['title'] ?>" placeholder="请输入优惠信息"
  56. class="layui-input">
  57. </div>
  58. </div>
  59. <div class="layui-form-item mt">
  60. <input type="hidden" id="hiddenBox" name="hid" value="<?php echo $model['hid'] ?>">
  61. <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
  62. <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
  63. </div>
  64. </div>
  65. </form>