edit.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/routine/morecomment.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" name="author" value="<?= $model['author'] ?>" placeholder="" autocomplete="off" class="layui-input" readonly>
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label ">所属楼盘:</label>
  27. <div class="layui-input-inline" style="width:270px;">
  28. <input type="text" id="house_name" name="house_name" value="<?= $house['name'] ?>" disabled placeholder="选择所属楼盘" autocomplete="off" class="layui-input">
  29. </div>
  30. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  31. </div>
  32. <div class="layui-form-item" style="margin-bottom:-5px">
  33. <div class="layui-inline">
  34. <label class="layui-form-label">购房需求:</label>
  35. <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
  36. <?php foreach($label as $key=>$val){ ?>
  37. <input type="radio" name="demand" value="<?php echo $key ?>" <?php if($key == $model['demand']) echo 'checked' ?> lay-skin="primary" title="<?php echo $val ?>">
  38. <?php }?>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="layui-form-item" style="<?php if($model['initiator']== 2)echo 'display:none;'; ?>" >
  43. <label class="layui-form-label">手机号码:</label>
  44. <div class="layui-input-inline" style="width:270px; ">
  45. <input type="text" name="mobile" lay-verify="required" value="<?= $model['mobile'] ?>" placeholder="请输入手机号码" autocomplete="off" class="layui-input">
  46. </div>
  47. </div>
  48. <style>
  49. .w_up_degree_con {display:inline-block;vertical-align:top;width:75%;margin-top:10px;margin-left:10px}
  50. .w_up_degree_con dl + dl {margin-top:8px;}
  51. .w_up_degree_con dl dt {display:inline-block;font-size:0.875rem;color:#424E5F;margin-right:10px;}
  52. .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;}
  53. .w_up_degree_con dl dd + dd {margin-left:8px;}
  54. .w_up_degree_con dl dd.in {background:url(/img/house/w_star_2.png) no-repeat center/15px 14px;}
  55. </style>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label">地段:</label>
  58. <div class="layui-input-inline" style="width:270px;">
  59. <div class="w_up_degree_con">
  60. <dl data-title="地段">
  61. <?php for($i=1;$i<=5;$i++){ ?>
  62. <?php if($i <= $model['diduan']){ ?>
  63. <dd class="in"></dd>
  64. <?php }else{ ?>
  65. <dd></dd>
  66. <?php } ?>
  67. <?php } ?>
  68. </dl>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="layui-form-item">
  73. <label class="layui-form-label">交通:</label>
  74. <div class="layui-input-inline" style="width:270px;">
  75. <div class="w_up_degree_con">
  76. <dl data-title="交通">
  77. <?php for($i=1;$i<=5;$i++){ ?>
  78. <?php if($i <= $model['jiaotong']){ ?>
  79. <dd class="in"></dd>
  80. <?php }else{ ?>
  81. <dd></dd>
  82. <?php } ?>
  83. <?php } ?>
  84. </dl>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="layui-form-item">
  89. <label class="layui-form-label">配套:</label>
  90. <div class="layui-input-inline" style="width:270px;">
  91. <div class="w_up_degree_con">
  92. <dl data-title="配套">
  93. <?php for($i=1;$i<=5;$i++){ ?>
  94. <?php if($i <= $model['peitao']){ ?>
  95. <dd class="in"></dd>
  96. <?php }else{ ?>
  97. <dd></dd>
  98. <?php } ?>
  99. <?php } ?>
  100. </dl>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="layui-form-item">
  105. <label class="layui-form-label">环境:</label>
  106. <div class="layui-input-inline" style="width:270px;">
  107. <div class="w_up_degree_con">
  108. <dl data-title="环境">
  109. <?php for($i=1;$i<=5;$i++){ ?>
  110. <?php if($i <= $model['huanjing']){ ?>
  111. <dd class="in"></dd>
  112. <?php }else{ ?>
  113. <dd></dd>
  114. <?php } ?>
  115. <?php } ?>
  116. </dl>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="layui-form-item">
  121. <label class="layui-form-label">性价比:</label>
  122. <div class="layui-input-inline" style="width:270px;">
  123. <div class="w_up_degree_con">
  124. <dl data-title="性价比">
  125. <?php for($i=1;$i<=5;$i++){ ?>
  126. <?php if($i <= $model['xingjiabi']){ ?>
  127. <dd class="in"></dd>
  128. <?php }else{ ?>
  129. <dd></dd>
  130. <?php } ?>
  131. <?php } ?>
  132. </dl>
  133. </div>
  134. </div>
  135. </div>
  136. <label class="layui-form-label">内容:</label>
  137. <div class="layui-input-inline" >
  138. <textarea name="content" style="width: 400px;height:200px;" placeholder="请输入点评内容" class="layui-textarea"><?= $model['content'] ?></textarea>
  139. </div>
  140. <div class="layui-form-item">
  141. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  142. <input type="hidden" name="diduan" id="diduan" value="<?php echo $model['diduan'] ?>">
  143. <input type="hidden" name="jiaotong" id="jiaotong" value="<?php echo $model['jiaotong'] ?>">
  144. <input type="hidden" name="peitao" id="peitao" value="<?php echo $model['peitao'] ?>">
  145. <input type="hidden" name="huanjing" id="huanjing" value="<?php echo $model['huanjing'] ?>">
  146. <input type="hidden" name="xingjiabi" id="xingjiabi" value="<?php echo $model['xingjiabi'] ?>">
  147. <input type="hidden" id="hiddenBox" name="hid" value="<?= $house['id'] ?>">
  148. <input type="hidden" name="id" value="<?= $model['id'] ?>">
  149. <button class="layui-btn" lay-submit="" lay-filter="editform">提交</button>
  150. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  151. </div>
  152. </div>
  153. </form>
  154. </div>