housesort.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/housesort.js");
  10. ?>
  11. <style>
  12. .layui-table-view .layui-form-switch {right:15px;}
  13. .layui-form-switch {height:18px;line-height:18px;padding:0 4px;}
  14. .layui-form-switch i {top:1px;left:2px}
  15. .layui-form-onswitch i {left:32px;}
  16. .layui-table-page .layui-laypage {float:right;margin-right:1%;}
  17. .layui-table-view .layui-form-switch{right:0px}
  18. </style>
  19. <form class="layui-form">
  20. <fieldset class="layui-elem-field">
  21. <legend>搜索信息</legend>
  22. <div class="layui-field-box">
  23. <blockquote class="layui-elem-quote quoteBox demoTable">
  24. <!-- <div class="layui-inline">-->
  25. <!-- <a class="layui-btn layui-btn-normal " data-type="addData">添加楼盘</a>-->
  26. <!-- </div>-->
  27. <!---->
  28. <!-- <div class="layui-inline">-->
  29. <!-- <a class="layui-btn layui-btn-normal " data-type="saveData">批量操作</a>-->
  30. <!-- </div>-->
  31. <div class="layui-input-inline" style="width:100px">
  32. <select name="input_house" >
  33. <option value="name" selected="">楼盘名称</option>
  34. <option value="id" >文档id</option>
  35. </select>
  36. </div>
  37. <div class="layui-inline">
  38. <div class="layui-input-inline">
  39. <input type="text" name="input_house_text" class="layui-input searchVal" placeholder="请输入搜索的内容" />
  40. </div>
  41. </div>
  42. <span>区域:</span>
  43. <div class="layui-input-inline">
  44. <select name="province" lay-filter="province" class="province" lay-search="">
  45. <option value="">请选择省</option>
  46. </select>
  47. </div>
  48. <div class="layui-input-inline">
  49. <select name="city" lay-filter="city" lay-search="">
  50. <option value="">请选择市</option>
  51. </select>
  52. </div>
  53. <!-- <span>状态:</span>-->
  54. <!-- <div class="layui-input-inline">-->
  55. <!-- <select name="show" lay-filter="show" lay-search="">-->
  56. <!-- <option value="">请选择楼盘状态</option>-->
  57. <!-- --><?php // foreach (Yii::$app->params['house_view'] as $key=>$val){ ?>
  58. <!-- <option value="--><?//= $key ?><!--">--><?//= $val ?><!--</option>-->
  59. <!-- --><?php //} ?>
  60. <!-- </select>-->
  61. <!-- </div>-->
  62. <!-- <span>主推楼盘:</span>-->
  63. <!-- <div class="layui-input-inline">-->
  64. <!-- <select name="is_push" lay-search="">-->
  65. <!-- <option value="">请选择楼盘主推状态</option>-->
  66. <!---->
  67. <!-- <option value="2">是</option>-->
  68. <!-- <option value="1">否</option>-->
  69. <!-- </select>-->
  70. <!-- </div>-->
  71. <!-- <br/>-->
  72. <span>时间:</span>
  73. <div class="layui-input-inline" >
  74. <input type="text" name="start_time" id="date1" placeholder="开始时间" autocomplete="off" class="layui-input" >
  75. </div>
  76. -
  77. <div class="layui-input-inline" >
  78. <input type="text" name="end_time" id="date2" placeholder="结束时间" autocomplete="off" class="layui-input" >
  79. </div>
  80. <div class="layui-input-inline">
  81. <select name="input_sort">
  82. <option value="" selected="">排序方式</option>
  83. <option value="sort" >市列表页</option>
  84. <option value="regionsort" >省列表页</option>
  85. <option value="allsort" >全国列表页</option>
  86. </select>
  87. </div>
  88. <div class="layui-inline">
  89. <a class="layui-btn search_btn wu_search_btn" data-type="reload">搜索</a>
  90. </div>
  91. <!-- <div class="layui-input-inline">-->
  92. <!-- <select name="input_sort">-->
  93. <!-- <option value="" selected="">排序方式</option>-->
  94. <!-- <option value="click" >按点击数</option>-->
  95. <!-- </select>-->
  96. <!-- </div>-->
  97. <div class="layui-form-item" style="padding-right: 220px;">
  98. <div class="layui-inline">
  99. <label class="layui-form-label">清零排序</label>
  100. <div class="layui-input-inline" style="width: 300px">
  101. <a class="layui-btn layui-btn-normal search_btn wu_search_btn" data-type="qing_1">市列表</a>
  102. <a class="layui-btn layui-btn-normal search_btn wu_search_btn" data-type="qing_2">省列表</a>
  103. <a class="layui-btn layui-btn-normal search_btn wu_search_btn" data-type="qing_3">国列表</a>
  104. </div>
  105. </div>
  106. </div>
  107. </blockquote>
  108. </div></fieldset>
  109. <table id="housesList" lay-filter="housesList"></table>
  110. <!--操作-->
  111. <!-- <script type="text/html" id="housesListBar">-->
  112. <!-- -->
  113. <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
  114. <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="house_price">价格</a>-->
  115. <!-- <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="house_presell">预售证</a>-->
  116. <!-- </script>-->
  117. <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="house_price">价格</a>-->
  118. <!-- </script>-->
  119. </form>
  120. <!-- 判断数据 -->
  121. <script type="text/html" id="Toexamine">
  122. {{# if(d.is_view === 'N'){ }}
  123. <span style="color: #ff5722;">{{ d.is_view }}</span>
  124. {{# } else { }}
  125. {{ d.is_view }}
  126. {{# } }}
  127. </script>
  128. <!-- 排序 -->
  129. <script type="text/html" id="sortBox">
  130. <!-- {{# if(d.sort){ }}-->
  131. <!-- <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>-->
  132. <!-- {{# } }}-->
  133. </script>