home.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 . "/js/routine/video.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. <select name="input_house">
  35. <option value="name" selected="">视频标题</option>
  36. <option value="house_name">所属楼盘</option>
  37. </select>
  38. </div>
  39. <div class="layui-inline">
  40. <div class="layui-input-inline">
  41. <input type="text" name="input_house_text" class="layui-input searchVal"
  42. placeholder="请输入搜索的内容"/>
  43. </div>
  44. </div>
  45. <div class="layui-input-inline">
  46. <select name="input_city" lay-search>
  47. <option value="">请选择区域</option>
  48. <?php foreach ($city as $val) { ?>
  49. <option value="<?php echo $val['id'] ?>"><?php echo $val['city_name'] ?></option>
  50. <?php } ?>
  51. </select>
  52. </div>
  53. <div class="layui-input-inline">
  54. <select name="type_name">
  55. <option value="">请选择分类名称</option>
  56. <?php foreach ($video as $val) { ?>
  57. <option value="<?php echo $val['id'] ?>"><?php echo $val['type_name'] ?></option>
  58. <?php } ?>
  59. </select>
  60. </div>
  61. <div class="layui-inline">
  62. <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  63. </div>
  64. </blockquote>
  65. </div>
  66. </fieldset>
  67. </form>
  68. <blockquote class="layui-elem-quote quoteBox demoTable">
  69. <div class="layui-btn-group demoTable">
  70. <a class="layui-btn" data-type="addData">新增</a>
  71. <!-- <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>-->
  72. <!-- <button class="layui-btn" data-type="isAll">验证是否全选</button>-->
  73. </div>
  74. </blockquote>
  75. <table id="videolist" lay-filter="videolist"></table>
  76. <script type="text/html" id="operate">
  77. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  78. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  79. </script>