rotation.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/18
  6. * Time: 下午3:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/push/rotation.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. .layui-table-page .layui-laypage {
  21. float: right;
  22. margin-right: 1%;
  23. }
  24. .layui-table-view .layui-form-switch {
  25. right: 0px
  26. }
  27. </style>
  28. <form action="" class="layui-form">
  29. <fieldset class="layui-elem-field">
  30. <legend>搜索信息</legend>
  31. <div class="layui-field-box">
  32. <blockquote class="quoteBox demoTable">
  33. <div class="layui-input-inline">
  34. <?php if (!empty($city)) { ?>
  35. <select name="input_city" lay-search>
  36. <option value="">请选择区域</option>
  37. <?php foreach ($city as $k => $v) { ?>
  38. <option value="<?php echo $v['id'] ?>"><?php echo $v['city_name'] ?></option>
  39. <?php } ?>
  40. </select>
  41. <?php } ?>
  42. </div>
  43. <div class="layui-inline">
  44. <div class="layui-input-inline">
  45. <input type="text" name="input_house_text" class="layui-input searchVal"
  46. placeholder="请输入搜索的内容"/>
  47. </div>
  48. </div>
  49. <div class="layui-inline">
  50. <a class="layui-btn search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  51. </div>
  52. <div class="layui-inline">
  53. <a class="layui-btn layui-btn-danger search_btn layui_w_btn" lay-submit=""
  54. lay-filter="del_alls_push">批量删除</a>
  55. </div>
  56. </blockquote>
  57. </div>
  58. </fieldset>
  59. </form>
  60. <blockquote class="layui-elem-quote quoteBox demoTable">
  61. <div class="layui-btn-group demoTable">
  62. <a class="layui-btn" data-type="addData">新增</a>
  63. </div>
  64. </blockquote>
  65. <table id="videolist" lay-filter="videolist"></table>
  66. <script type="text/html" id="operate">
  67. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  68. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  69. </script>