index_search.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <fieldset>
  2. <legend>条件搜索</legend>
  3. <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
  4. <div class="layui-form-item layui-inline">
  5. <label class="layui-form-label">用户手机</label>
  6. <label class="layui-input-inline">
  7. <input class="layui-input" name="phone" placeholder="请输入用户手机" value="{:input('phone')}">
  8. </label>
  9. </div>
  10. <div class="layui-form-item layui-inline">
  11. <label class="layui-form-label">用户昵称</label>
  12. <label class="layui-input-inline">
  13. <input class="layui-input" name="username" placeholder="请输入用户昵称" value="{:input('username')}">
  14. </label>
  15. </div>
  16. <!--{notempty name='upgrades'}-->
  17. <div class="layui-form-item layui-inline">
  18. <label class="layui-form-label">用户等级</label>
  19. <div class="layui-input-inline">
  20. <select class="layui-select" name="vip_code">
  21. <option value="">-- 全部 --</option>
  22. {foreach $upgrades as $upgrade}{if input('vip_code') eq $upgrade.number.''}
  23. <option selected value="{$upgrade.number|default=0}">[ VIP{$upgrade.number|default='0'} ] {$upgrade.name|default=''}</option>
  24. {else}
  25. <option value="{$upgrade.number|default=0}">[ VIP{$upgrade.number|default='0'} ] {$upgrade.name|default=''}</option>
  26. {/if}{/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <!--{/notempty}-->
  31. <div class="layui-form-item layui-inline">
  32. <label class="layui-form-label">代理手机</label>
  33. <label class="layui-input-inline">
  34. <input class="layui-input" name="from_phone" placeholder="请输入代理手机" value="{:input('from_phone')}">
  35. </label>
  36. </div>
  37. <div class="layui-form-item layui-inline">
  38. <label class="layui-form-label">代理昵称</label>
  39. <label class="layui-input-inline">
  40. <input class="layui-input" name="from_username" placeholder="请输入代理昵称" value="{:input('from_username')}">
  41. </label>
  42. </div>
  43. <!--{notempty name='upgrades'}-->
  44. <div class="layui-form-item layui-inline">
  45. <label class="layui-form-label">代理等级</label>
  46. <div class="layui-input-inline">
  47. <select class="layui-select" name="from_vipcode">
  48. <option value="">-- 全部 --</option>
  49. {foreach $upgrades as $upgrade}{if input('from_vipcode') eq $upgrade.number.''}
  50. <option selected value="{$upgrade.number|default=0}">[ VIP{$upgrade.number|default='0'} ] {$upgrade.name|default=''}</option>
  51. {else}
  52. <option value="{$upgrade.number|default=0}">[ VIP{$upgrade.number|default='0'} ] {$upgrade.name|default=''}</option>
  53. {/if}{/foreach}
  54. </select>
  55. </div>
  56. </div>
  57. <!--{/notempty}-->
  58. <div class="layui-form-item layui-inline">
  59. <label class="layui-form-label">使用状态</label>
  60. <div class="layui-input-inline">
  61. <select class="layui-select" name="status">
  62. <option value="">-- 全部 --</option>
  63. {foreach ['已冻结的用户', '已激活的用户'] as $k=>$v}
  64. {if $k.'' eq input('status')}
  65. <option selected value="{$k}">{$v}</option>
  66. {else}
  67. <option value="{$k}">{$v}</option>
  68. {/if}{/foreach}
  69. </select>
  70. </div>
  71. </div>
  72. <div class="layui-form-item layui-inline">
  73. <label class="layui-form-label">注册时间</label>
  74. <div class="layui-input-inline">
  75. <input class="layui-input" data-date-range name="create_at" placeholder="请选择注册时间" value="{:input('create_at','')}">
  76. </div>
  77. </div>
  78. <div class="layui-form-item layui-inline">
  79. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  80. <button class="layui-btn layui-btn-primary layui-hide" data-export-list type="button"><i class="layui-icon layui-icon-export"></i> 导 出</button>
  81. </div>
  82. </form>
  83. <script>form.render()</script>
  84. </fieldset>