mansionedit.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/4/19
  6. * Time: 上午11:01
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/pushm/mansion.js");
  10. ?>
  11. <style>
  12. .layui-upload-img img{display: block;height: 100%;width: 100%;}
  13. .layui-upload-img{display: inline-block;height:120px;width: 120px;border: 1px solid #999;margin-right: 10px;position: absolute;position: relative;
  14. overflow: hidden;}
  15. .xm_qytc_box {width:80%;margin:20px auto 0;}
  16. </style>
  17. <div class="xm_qytc_box">
  18. <form class="layui-form layui-form-pane" id="citysignupForm">
  19. <div class="layui-form-item">
  20. <label class="layui-form-label ">所属楼盘:</label>
  21. <div class="layui-input-inline" style="width:270px;">
  22. <input type="text" id="house_name" name="house_name" value="<?= $house['name'] ?>" disabled placeholder="选择所属楼盘" autocomplete="off" class="layui-input">
  23. </div>
  24. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  25. </div>
  26. <div class="layui-form-item">
  27. <label class="layui-form-label ">开发商:</label>
  28. <div class="layui-input-inline" style="width:42%">
  29. <select name="did" lay-search="">
  30. <option value="" >请选择开发商</option>
  31. <?php foreach ($developers as $val){?>
  32. <option value="<?php echo $val['id']?>" <?= $val['checked']?> ><?php echo $val['name']?></option>
  33. <?php }?>
  34. </select>
  35. </div>
  36. </div>
  37. <style>
  38. .w_up_degree_con {display:inline-block;vertical-align:top;width:75%;margin-top:10px;margin-left:10px}
  39. .w_up_degree_con dl + dl {margin-top:8px;}
  40. .w_up_degree_con dl dt {display:inline-block;font-size:0.875rem;color:#424E5F;margin-right:10px;}
  41. .w_up_degree_con dl dd {display:inline-block;width:15px;height:14px;background:url(/img/house/w_star_1.png) no-repeat center/15px 14px;}
  42. .w_up_degree_con dl dd + dd {margin-left:8px;}
  43. .w_up_degree_con dl dd.in {background:url(/img/house/w_star_2.png) no-repeat center/15px 14px;}
  44. </style>
  45. <div class="layui-form-item">
  46. <label class="layui-form-label">豪气值:</label>
  47. <div class="layui-input-inline" style="width:270px;">
  48. <div class="w_up_degree_con">
  49. <dl data-title="豪气值">
  50. <?php for($i=1;$i<=5;$i++){ ?>
  51. <?php if($i <= $model['haoqi']){ ?>
  52. <dd class="in"></dd>
  53. <?php }else{ ?>
  54. <dd></dd>
  55. <?php } ?>
  56. <?php } ?>
  57. </dl>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="layui-form-item">
  62. <label class="layui-form-label">静密值:</label>
  63. <div class="layui-input-inline" style="width:270px;">
  64. <div class="w_up_degree_con">
  65. <dl data-title="静密值">
  66. <?php for($i=1;$i<=5;$i++){ ?>
  67. <?php if($i <= $model['jingmi']){ ?>
  68. <dd class="in"></dd>
  69. <?php }else{ ?>
  70. <dd></dd>
  71. <?php } ?>
  72. <?php } ?>
  73. </dl>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="layui-form-item xm_pr">
  78. <div class="layui-inline">
  79. <label class="layui-form-label">上传图片:</label>
  80. <div class="layui-inline">
  81. <div class="layui-upload">
  82. <div class="layui-upload-list lay_p_relative">
  83. <img class="layui-upload-img layui_magnify" name="img" src="<?php echo $model['img'] ?>" id="breviary_img" style="width:260px;height:90px;margin-left:10px;border:1px solid #ccc;">
  84. <p id="demoText"></p>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>
  90. </div>
  91. <label class="layui-form-label">推荐理由:</label>
  92. <div class="layui-input-inline" >
  93. <textarea name="reason" style="width: 400px;height:100px;" placeholder="请输入推荐理由,最多20个字" class="layui-textarea" maxlength="20"><?= $model['reason'] ?></textarea>
  94. </div>
  95. <div class="layui-form-item">
  96. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  97. <input type="hidden" name="haoqi" id="haoqi" value="<?php echo $model['haoqi'] ?>">
  98. <input type="hidden" name="jingmi" id="jingmi" value="<?php echo $model['jingmi'] ?>">
  99. <input type="hidden" id="hiddenBox" name="hid" value="<?= $house['id'] ?>">
  100. <input type="hidden" name="id" value="<?= $model['id'] ?>">
  101. <button class="layui-btn" lay-submit="" lay-filter="editform">提交</button>
  102. </div>
  103. </div>
  104. </form>
  105. </div>