index_search.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <input name="username" value="{$Think.get.username|default=''}" placeholder="请输入用户名" class="layui-input">
  8. </div>
  9. </div>
  10. <div class="layui-form-item layui-inline">
  11. <label class="layui-form-label">联系手机</label>
  12. <div class="layui-input-inline">
  13. <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入联系手机" class="layui-input">
  14. </div>
  15. </div>
  16. <div class="layui-form-item layui-inline">
  17. <label class="layui-form-label">联系邮箱</label>
  18. <div class="layui-input-inline">
  19. <input name="mail" value="{$Think.get.mail|default=''}" placeholder="请输入联系邮箱" class="layui-input">
  20. </div>
  21. </div>
  22. <div class="layui-form-item layui-inline">
  23. <label class="layui-form-label">使用状态</label>
  24. <div class="layui-input-inline">
  25. <select class="layui-select" name="status">
  26. {foreach [''=>'-- 全部状态 --','0'=>'已禁用的账号','1'=>'使用中的账号'] as $k=>$v}
  27. {eq name='Think.get.status' value='$k.""'}
  28. <option selected value="{$k}">{$v}</option>
  29. {else}
  30. <option value="{$k}">{$v}</option>
  31. {/eq}
  32. {/foreach}
  33. </select>
  34. </div>
  35. </div>
  36. <div class="layui-form-item layui-inline">
  37. <label class="layui-form-label">登录时间</label>
  38. <div class="layui-input-inline">
  39. <input data-date-range name="login_at" value="{$Think.get.login_at|default=''}" placeholder="请选择登录时间" class="layui-input">
  40. </div>
  41. </div>
  42. <div class="layui-form-item layui-inline">
  43. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  44. </div>
  45. </form>
  46. </fieldset>
  47. <script>form.render()</script>