index_search.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <fieldset>
  2. <legend>条件搜索</legend>
  3. <form class="layui-form layui-form-pane form-search" id="form" action="{:request()->url()}"style="display: inline;" 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="name" value="{$Think.get.name|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="create_at" value="{$Think.get.create_at|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="type">
  26. <option value="-1">全部</option>
  27. {foreach $dep_type as $k=>$v}
  28. {if $v}
  29. {if $Think.get.type eq $k}
  30. <option selected value="{$k}">{$v}</option>
  31. {else}
  32. <option value="{$k}">{$v}</option>
  33. {/if}
  34. {/if}
  35. {/foreach}
  36. </select>
  37. </div>
  38. </div>
  39. <div class="layui-form-item layui-inline">
  40. <label class="layui-form-label">状态</label>
  41. <div class="layui-input-inline">
  42. <select class="layui-select" name="sel_sh">
  43. <option value="-1">全部</option>
  44. {foreach $sh_arr as $sk=>$sv}
  45. {if $sel_sh eq $sk}
  46. <option selected value="{$sk}">{$sv}</option>
  47. {else}
  48. <option value="{$sk}">{$sv}</option>
  49. {/if}
  50. {/foreach}
  51. </select>
  52. </div>
  53. </div>
  54. <div class="layui-form-item layui-inline">
  55. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  56. </div>
  57. </form>
  58. <form action="" id="exportForm" method="post" style="display: inline;" >
  59. <button class="layui-btn layui-btn-primary layui-btn-sm" id="exportButton" type="submit" style="height: 32px;width: 73.69px;margin-left:3px; margin-bottom: 15px">
  60. <i class="layui-icon">&#xe608;</i>导 出
  61. </button>
  62. </form>
  63. <script>
  64. form.render();
  65. laydate.render({range: true, elem: '[name="create_at"]'})
  66. $('#exportButton').click(function () {
  67. $("#exportForm").attr('action', '/user/deposit/get_excl?' + $('#form').serialize())
  68. });
  69. </script>
  70. </fieldset>