housetypeadd.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <form class="layui-form layui-form-pane" action="" id="album_form">
  34. <div class="layui-form-item">
  35. <label class="layui-form-label">所属-楼盘</label>
  36. <a href="javascript:;" style="display: inline-block;line-height:38px;padding-left: 10px;"><?php echo $post['name']?></a>
  37. <input type="hidden" name="hid" value="<?php echo $post['id']?>">
  38. </div>
  39. <div class="layui-form-item">
  40. <label class="layui-form-label"><span style="color:red;">* </span>所属户型</label>
  41. <div class="layui-input-inline">
  42. <select name="type_id">
  43. <option value="" selected="">请选择</option>
  44. <?php foreach($typemodel as $val){?>
  45. <option value="<?php echo $val['id']?>" ><?php echo $val['huxing_name'] ?></option>
  46. <?php }?>
  47. </select>
  48. </div>
  49. </div>
  50. <!-- <div class="layui-form-item">
  51. <label class="layui-form-label">好户型</label>
  52. <div class="layui-input-inline">
  53. <input type="radio" name="hot" value="1" title="否" checked>
  54. <input type="radio" name="hot" value="2" title="是" >
  55. </div>
  56. </div> -->
  57. <div class="layui-form-item xm_pr">
  58. <div class="layui-upload">
  59. <button type="button" class="layui-btn" id="upload_edit">多图片上传</button>
  60. <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">
  61. <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
  62. 预览图:
  63. <div class="layui-upload-list xm_tgqcTc_dztpsc" id="demo2"></div>
  64. </blockquote>
  65. </div>
  66. </div>
  67. <!-- <hr class="layui-bg-blue">-->
  68. <div class="layui-form-item">
  69. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  70. <button class="layui-btn" lay-submit="" lay-filter="tijiao">提交</button>
  71. </div>
  72. </div>
  73. </form>
  74. </div>