housetypeedit.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/24
  6. * Time: 上午10:01
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/housetypebinding.js");
  10. ?>
  11. <style>
  12. .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
  13. .xm_xcxqTc_img{margin:0;}
  14. .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
  15. .xm_pr{position:relative;}
  16. .ml{margin-left:18px}
  17. /*.layui-form-pane .layui-form-checkbox{position:absolute;bottom:0;left:100px;}*/
  18. .layui-upload-img{display: inline-block;height:120px;width:245px;/*border: 1px solid #dbdbdb;*/margin-right: 10px;position: absolute;position: relative;bottom:14px;margin-top:14px;}
  19. .layui-upload-img img{display: block;height:100%;width: 100%;}
  20. .close-icon{position: absolute;right:0px;top: 1px;cursor: pointer;font-weight:600;}
  21. .close-input{cursor: pointer;width:121px}
  22. .close-input input{height:35px;}
  23. .xm_tgqcTc_dztpsc{position:relative;}
  24. .picture_box {display:inline-block;vertical-align:top;width:117px;height:113px;border:1px solid #E6E6E6;position: relative;overflow:hidden;}
  25. .info_box {display:inline-block;vertical-align:top;width:120px;}
  26. .info_box input {padding-right:5px;font-size:12px;}
  27. /*删除*/
  28. .delete-list {background:rgba(0,0,0,0.5);position:absolute;top:-28px;left:0;width:100%;padding:3px 0;}
  29. .delete-list i {float:right;margin-right:8px;cursor:pointer;font-size:20px !important;; color: #fff;}
  30. .picture_box:hover .delete-list {top:0;}
  31. </style>
  32. <div class="xm_qytc_box">
  33. <!-- <span>楼盘相册 - 详情</span>-->
  34. <!-- <hr class="layui-bg-blue">-->
  35. <form class="layui-form layui-form-pane" action="" id="album_form">
  36. <div class="layui-form-item">
  37. <label class="layui-form-label">所属-楼盘</label>
  38. <a href="javascript:;" style="display: inline-block;line-height:38px;padding-left: 10px;"><?php echo $post['name']?></a>
  39. <input type="hidden" name="hid" value="<?php echo $post['id']?>">
  40. </div>
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">所属栏目</label>
  43. <div class="layui-input-inline">
  44. <select name="huxing_id" >
  45. <option value="" selected="">请选择</option>
  46. <?php foreach($model as $val){?>
  47. <option value="<?php echo $val['id']?>" <?php echo $val['selected']?>><?php echo $val['huxing_name'] ?></option>
  48. <?php }?>
  49. </select>
  50. <input type="hidden" name="type_id" value="<?php echo $albumlist[0]['type_id']?>">
  51. </div>
  52. </div>
  53. <div class="layui-form-item xm_pr">
  54. <div class="layui-upload">
  55. <button type="button" class="layui-btn" id="upload_edit">多图片上传</button>
  56. <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">
  57. <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
  58. 预览图:
  59. <div class="layui-upload-list xm_tgqcTc_dztpsc" id="demo2">
  60. <?php foreach($albumlist as $val){?>
  61. <?php if(!empty($val['img'])) {?>
  62. <div class="layui-upload-img layer-photos-demo" id="layer-photos-demo">
  63. <div class="info_box">
  64. <input type="text" name="aa" value="<?php echo $val['title'] ?>" placeholder="如A户型" autocomplete="off" class="layui-input">
  65. <input type="text" name="bb" value="<?php echo $val['indoor_info'] ?>" placeholder="厅卫厨" autocomplete="off" class="layui-input">
  66. <input type="text" name="cc" value="<?php echo $val['area'] ?>" placeholder="建筑面积" autocomplete="off" class="layui-input">
  67. </div>
  68. <div class="picture_box">
  69. <div class="delete-list" id="delimg" ><i class="layui-icon fa-trash-o" >&#xe640;</i></div>
  70. <img imgname="<?php echo $val['id']?>" src="<?= $val['img']?>">
  71. </div>
  72. </div>
  73. <?php }}?>
  74. </div>
  75. </blockquote>
  76. </div>
  77. </div>
  78. <!-- <hr class="layui-bg-blue">-->
  79. <div class="layui-form-item">
  80. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  81. <button class="layui-btn" lay-submit="" lay-filter="editAlbum">提交</button>
  82. </div>
  83. </div>
  84. </form>
  85. </div>