knowledge.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/14
  6. * Time: 下午3:24
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/news/knowledge.js");
  10. ?>
  11. <style>
  12. body {padding: 15px;}
  13. .layui-elem-quote {margin-bottom: 0;border-left: none;padding: 10px;}
  14. .layui-table-view .layui-form-switch {right:15px;}
  15. .layui-form-switch {height:18px;line-height:18px;padding:0 4px;}
  16. .layui-form-switch i {top:1px;left:2px}
  17. .layui-form-onswitch i {left:32px;}
  18. .layui-table-page .layui-laypage {float:right;margin-right:1%;}
  19. .layui-table-view .layui-form-switch{right:0px}
  20. </style>
  21. <form class="layui-form" >
  22. <fieldset class="layui-elem-field">
  23. <legend>搜索信息</legend>
  24. <div class="layui-field-box">
  25. <blockquote class="quoteBox demoTable">
  26. <div class="layui-input-inline" style="width:100px">
  27. <select name="input_house" >
  28. <option value="name" selected="">标题</option>
  29. <option value="id" >文档id</option>
  30. </select>
  31. </div>
  32. <div class="layui-inline">
  33. <div class="layui-input-inline">
  34. <input type="text" name="input_house_text" class="layui-input searchVal" placeholder="请输入搜索的内容" />
  35. </div>
  36. </div>
  37. <span>栏目</span>
  38. <div class="layui-input-inline">
  39. <select name="province" lay-filter="province" lay-search="">
  40. <option value="">请选择父类栏目</option>
  41. </select>
  42. </div>
  43. <div class="layui-input-inline">
  44. <select name="label_id" lay-filter="city" lay-search="">
  45. <option value="">请选择子类栏目</option>
  46. </select>
  47. </div>
  48. <!-- <div class="layui-inline">-->
  49. <!-- <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>-->
  50. <!-- </div>-->
  51. <div class="layui-inline">
  52. <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  53. </div>
  54. </blockquote>
  55. </div></fieldset>
  56. <blockquote class="layui-elem-quote quoteBox demoTable">
  57. <div class="layui-inline">
  58. <a class="layui-btn layui-btn-normal " data-type="addData">添加资讯</a>
  59. </div></blockquote>
  60. <table id="newsList" lay-filter="newsList"></table>
  61. <!-- <div class="layui-inline ">
  62. <a class="layui-btn search_btn" style="margin-left: 400px;margin-top:15px;" lay-submit="" lay-filter="del_alls_news">批量删除</a>
  63. </div> -->
  64. <!--操作-->
  65. <script type="text/html" id="housesListBar">
  66. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  67. <!-- <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>-->
  68. </script>
  69. </form>
  70. <!-- 排序 -->
  71. <script type="text/html" id="sortBox">
  72. {{# if(d.sort){ }}
  73. <div style="border:1px solid #E6E6E6;height:27px;line-height:27px;box-shadow:1px 1px 1px 1px rgba(224, 224, 224, 0.76);">{{ d.sort }}</div>
  74. {{# } }}
  75. </script>
  76. <!-- 点击数 -->
  77. <script type="text/html" id="clicksBox">
  78. {{# if(d.clicks){ }}
  79. <div style="border:1px solid #E6E6E6;height:27px;line-height:27px;box-shadow:1px 1px 1px 1px rgba(224, 224, 224, 0.76);">{{ d.clicks }}</div>
  80. {{# } }}
  81. </script>