facilitiessave.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午5:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/facilities.js')
  10. ?>
  11. <style>
  12. .layui-upload-img {border:1px solid #E6E6E6;}
  13. .layui_w_md3 {display:inline-block;vertical-align:top;position:relative;top:25px;}
  14. .layui-upload-list {display:inline-block;vertical-align:top;margin-top:0;}
  15. .layui_w_title {background:#F8F8F8;padding:8px 0;margin-bottom:10px;}
  16. .layui_w_title span{border-left:5px solid #FF5722;padding-left:10px;}
  17. .layui_w_i {display:inline-block;vertical-align:top;width:25%;height:210px;}
  18. .layui_w_btn {margin-left:0;text-align:center;}
  19. hr {width:95%;margin:15px auto;}
  20. </style>
  21. <form class="layui-form" action="" style="margin-top:25px" id="facilities_form">
  22. <div class="layui-form-item">
  23. <label class="layui-form-label">配套名称</label>
  24. <div class="layui-input-block" style="width: 200px;">
  25. <input type="text" name="name" value="<?php echo $model['name']?>" required lay-verify="required" placeholder="请输入配套名称" autocomplete="off" class="layui-input">
  26. </div>
  27. </div>
  28. <div class="layui-upload xm_zjzx_Picture_uploading layui-form-item layui_w_i" style="padding:0 20px;">
  29. <div class="layui_w_title"><span>PC配套图标</span></div>
  30. <div class="layui-inline">
  31. <div class="layui-upload-list">
  32. <img class="layui-upload-img layui_magnify" id="demo1" style="width:100px;height:80px;" src="<?php echo $model['img']?>">
  33. </div>
  34. <div class="layui_w_md3" >
  35. <button type="button" class="layui-btn layui-btn-primary layui_w_upload" id="test1">上传图片</button>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="layui-upload xm_zjzx_Picture_uploading layui-form-item layui_w_i" style="padding:0 20px;">
  40. <div class="layui_w_title"><span>APP配套图标</span></div>
  41. <div class="layui-inline">
  42. <div class="layui-upload-list">
  43. <img class="layui-upload-img layui_magnify" id="demo2" style="width:100px;height:80px;" src="<?php echo $model['mobile_img']?>">
  44. </div>
  45. <div class="layui_w_md3" >
  46. <button type="button" class="layui-btn layui-btn-primary layui_w_upload" id="test2">上传图片</button>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="layui-upload xm_zjzx_Picture_uploading layui-form-item layui_w_i" style="padding:0 20px;">
  51. <div class="layui_w_title"><span>APP配套图标</span></div>
  52. <div class="layui-inline">
  53. <div class="layui-upload-list">
  54. <img class="layui-upload-img layui_magnify" id="demo3" style="width:100px;height:80px;" src="<?php echo $model['map_img']?>">
  55. </div>
  56. <div class="layui_w_md3" >
  57. <button type="button" class="layui-btn layui-btn-primary layui_w_upload" id="test3">上传图片</button>
  58. </div>
  59. </div>
  60. </div>
  61. <hr>
  62. <div class="layui-form-item">
  63. <div class="layui-input-block layui_w_btn">
  64. <input type="hidden" name="id" value="<?php echo $model['id']?>">
  65. <button class="layui-btn layui-btn-normal" lay-submit lay-filter="save_form">立即提交</button>
  66. <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
  67. </div>
  68. </div>
  69. </form>