house_developers_edit.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/pushma/house_developers.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;"><span style="color:red">*</span>开发商:</label>
  24. <div class="layui-input-inline" style="width:64%">
  25. <select name="did" id="" lay-search>
  26. <?php foreach ($model as $val){ ?>
  27. <option value="<?= $val['id'] ?>" <?php if($val['id'] == $m['did']) echo 'selected'; ?> ><?= $val['name'] ?></option>
  28. <?php } ?>
  29. </select>
  30. </div>
  31. </div>
  32. <div class="layui-form-item xm_pr">
  33. <div class="layui-inline">
  34. <label class="layui-form-label" style="width: 130px;"><span style="color:red">*</span>首页缩略图:</label>
  35. <div class="layui-inline">
  36. <div class="layui-upload">
  37. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  38. <img class="layui-upload-img layui_magnify" name="advertising_img" src="<?= $m['img'] ?>" id="breviary_img" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">
  39. <p id="demoText"></p>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  45. </div>
  46. <div class="layui-form-item xm_pr">
  47. <div class="layui-inline">
  48. <label class="layui-form-label" style="width: 130px;"><span style="color:red">*</span>列表页大图:</label>
  49. <div class="layui-inline">
  50. <div class="layui-upload">
  51. <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  52. <img class="layui-upload-img layui_magnify" name="advertising_img" src="<?= $m['img_a'] ?>" id="breviary_img_a" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">
  53. <p id="demoText"></p>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test2">选择图片</button>
  59. </div>
  60. <div class="layui-form-item mt">
  61. <input type="hidden" name="type" value="1">
  62. <input type="hidden" name="id" value="<?= $id ?>">
  63. <button class="layui-btn" lay-submit="" lay-filter="edit_choice">提交</button>
  64. </div>
  65. </div>
  66. </form>