housealbum.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/other/syncOperate.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:155px;width: 120px;border: 1px solid #dbdbdb;margin-right: 10px;position: absolute;position: relative;bottom:14px;margin-top:14px;overflow:hidden;}
  19. .layui-upload-img img{display: block;height:120px;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. </style>
  25. <div class="xm_qytc_box">
  26. <?php foreach ($model as $key=>$v){?>
  27. <div>
  28. <p><span>所属栏目:<?= $key ?></span></p>
  29. <div class="layui-form-item xm_pr">
  30. <div class="layui-upload">
  31. <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
  32. 预览图:
  33. <div class="layui-upload-list xm_tgqcTc_dztpsc" id="demo2">
  34. <?php foreach($model[$key] as $val){?>
  35. <?php
  36. if(!empty($val['img'])){?>
  37. <div class="layui-upload-img layer-photos-demo" id="layer-photos-demo">
  38. <img src="<?php echo $url,$val['img'],'/',$style?>">
  39. <div class="close-input">
  40. <input type="text" name="title" value="<?php echo $val['title']?>" placeholder="请输入" autocomplete="off" class="layui-input">
  41. </div>
  42. </div>
  43. <?php }} ?>
  44. </div>
  45. </blockquote>
  46. </div>
  47. </div>
  48. </div>
  49. <?php } ?>
  50. <form class="layui-form" action="" id="album_forms" >
  51. <input type="hidden" name="hid" value="<?= $hid ?>">
  52. <div class="layui-form-item">
  53. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  54. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="edit_Album">提交</button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>