home.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午2:30
  7. */
  8. use backend\assets\AppAsset;
  9. //AppAsset::addScript($this,Yii::$app->request->baseUrl."/company/ceshi.js");
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/user.js");
  11. ?>
  12. <style>
  13. body {
  14. padding: 15px;
  15. }
  16. .layui-elem-quote {
  17. margin-bottom: 0;
  18. border-left: none;
  19. padding: 10px;
  20. }
  21. .layui-table-page .layui-laypage {float:right;margin-right:1%;}
  22. </style>
  23. <blockquote class="layui-elem-quote quoteBox demoTable">
  24. <div class="layui-btn-group">
  25. <button class="layui-btn" data-type="addData">新增</button>
  26. <!-- <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>-->
  27. <!-- <button class="layui-btn" data-type="isAll">验证是否全选</button>-->
  28. </div>
  29. </blockquote>
  30. <table id="userlist" lay-filter="userlist"></table>
  31. <script type="text/html" id="operate">
  32. <a class="layui-btn layui-btn-xs" lay-event="userrole">添加角色</a>
  33. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  34. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  35. </script>