index.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/pusha/discount.js");
  4. ?>
  5. <style>
  6. body {
  7. padding: 15px;
  8. }
  9. .layui-elem-quote {
  10. margin-bottom: 0;
  11. border-left: none;
  12. padding: 10px;
  13. }
  14. .layui-table-page .layui-laypage {
  15. float: right;
  16. margin-right: 1%;
  17. }
  18. .layui-table-view .layui-form-switch {
  19. right: 0px
  20. }
  21. </style>
  22. <form action="" class="layui-form">
  23. <blockquote class="layui-elem-quote quoteBox demoTable">
  24. <div class="layui-btn-group demoTable">
  25. <a class="layui-btn" data-type="addData">新增</a>
  26. </div>
  27. <input type="hidden" name="typeid" value="<?php echo $type ?>">
  28. </blockquote>
  29. </form>
  30. <table id="videolist" lay-filter="videolist"></table>
  31. <script type="text/html" id="operate">
  32. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  33. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  34. </script>