cont.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/24
  6. * Time: 上午9:34
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/routine/decorationcont.js");
  10. ?>
  11. <style>
  12. body {
  13. padding: 15px;
  14. }
  15. .layui-elem-quote {
  16. margin-bottom: 0;
  17. border-left: none;
  18. padding: 10px;
  19. }
  20. #Images li{background: #f2f2f2;width:19%;}
  21. </style>
  22. <form class="layui-form">
  23. <blockquote class="layui-elem-quote quoteBox">
  24. <div class="layui-inline">
  25. <a class="layui-btn " id="add-album">添加内容</a>
  26. </div>
  27. </blockquote>
  28. <!-- <ul class="layer-photos-demo" id="Images"></ul>-->
  29. <input type="hidden" name="hid" value="<?php echo $post['id']?>">
  30. <input type="hidden" name="name" value="<?php echo $post['name']?>">
  31. </form>
  32. <table id="housealbumlist" lay-filter="housealbumlist"></table>
  33. <!--操作-->
  34. <script type="text/html" id="housesalbumListBar">
  35. <!-- {{# if(d.state === 'N'){ }}-->
  36. <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="examine"> <span style="">审核</span></a>-->
  37. <!-- {{# } else { }}-->
  38. <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="examine">-->
  39. <!-- <span style="color: #ff5722;">解审</span>-->
  40. <!-- </a>-->
  41. <!-- {{# } }}-->
  42. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  43. <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
  44. <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="look">预览</a>-->
  45. </script>
  46. <!-- 判断数据 -->
  47. <script type="text/html" id="examineTpl">
  48. {{# if(d.state === 'N'){ }}
  49. <span style="color: #ff5722;">{{ d.state }}</span>
  50. {{# } else { }}
  51. {{ d.state }}
  52. {{# } }}
  53. </script>
  54. <!-- 排序 -->
  55. <script type="text/html" id="sortBox">
  56. {{# if(d.sort){ }}
  57. <div style="border:1px solid #E6E6E6;height:27px;line-height:27px;box-shadow:1px 1px 1px 1px rgba(224, 224, 224, 0.76);">{{ d.sort }}</div>
  58. {{# } }}
  59. </script>