index_search.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <fieldset>
  2. <legend>条件搜索</legend>
  3. <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
  4. <div class="layui-form-item layui-inline">
  5. <label class="layui-form-label">当前微信</label>
  6. <div class="layui-input-inline">
  7. <select class="layui-select" name="appid" lay-filter="appid" lay-search>
  8. <!--{foreach $wechats as $k=>$v}-->
  9. <!--{if $k eq $appid}-->
  10. <option selected value="{$k}">{$v}</option>
  11. <!--{else}-->
  12. <option value="{$k}">{$v}</option>
  13. <!--{/if}-->
  14. <!--{/foreach}-->
  15. </select>
  16. </div>
  17. </div>
  18. <div class="layui-form-item layui-inline">
  19. <label class="layui-form-label">微信昵称</label>
  20. <div class="layui-input-inline">
  21. <input name="nickname" value="{$Think.get.nickname|default=''}" placeholder="请输入微信昵称" class="layui-input">
  22. </div>
  23. </div>
  24. <div class="layui-form-item layui-inline">
  25. <label class="layui-form-label">关注状态</label>
  26. <div class="layui-input-inline">
  27. <select class="layui-select" name="subscribe">
  28. {foreach [''=>'-- 全部 --','0'=>'显示未关注的粉丝','1'=>'显示已关注的粉丝'] as $k=>$v}
  29. {eq name='Think.get.subscribe' value='$k.""'}
  30. <option selected value="{$k}">{$v}</option>
  31. {else}
  32. <option value="{$k}">{$v}</option>
  33. {/eq}
  34. {/foreach}
  35. </select>
  36. </div>
  37. </div>
  38. <div class="layui-form-item layui-inline">
  39. <label class="layui-form-label">拉黑状态</label>
  40. <div class="layui-input-inline">
  41. <select class="layui-select" name="is_black">
  42. {foreach [''=>'-- 全部 --','0'=>'显示未拉黑的粉丝','1'=>'显示已拉黑的粉丝'] as $k=>$v}
  43. {eq name='Think.get.is_black' value='$k.""'}
  44. <option selected value="{$k}">{$v}</option>
  45. {else}
  46. <option value="{$k}">{$v}</option>
  47. {/eq}
  48. {/foreach}
  49. </select>
  50. </div>
  51. </div>
  52. <div class="layui-form-item layui-inline">
  53. <label class="layui-form-label">关注时间</label>
  54. <div class="layui-input-inline">
  55. <input data-date-range name="subscribe_at" value="{$Think.get.subscribe_at|default=''}" placeholder="请选择关注时间" class="layui-input">
  56. </div>
  57. </div>
  58. <div class="layui-form-item layui-inline">
  59. <button id="SearchButton" class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  60. </div>
  61. </form>
  62. </fieldset>
  63. <script>
  64. form.render();
  65. form.on('select(appid)', function () {
  66. $('#SearchButton').trigger('click');
  67. });
  68. </script>