hotactivity.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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/hotactivity.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. </blockquote>
  53. </div>
  54. </fieldset>
  55. </form>
  56. <blockquote class="layui-elem-quote quoteBox demoTable">
  57. <div class="layui-btn-group demoTable">
  58. <a class="layui-btn" data-type="addData">新增</a>
  59. </div>
  60. </blockquote>
  61. <table id="videolist" lay-filter="videolist"></table>
  62. <script type="text/html" id="operate">
  63. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  64. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  65. </script>