index_search.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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="title" value="{:input('get.title')}" 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="desc" value="{:input('get.desc')}" 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. <select class="layui-select" name="status">
  20. <option value=''>-- 全部状态 --</option>
  21. {foreach ['已禁用的权限','已激活的权限'] as $k=>$v}
  22. {if input('get.status') eq $k.""}
  23. <option selected value="{$k}">{$v}</option>
  24. {else}
  25. <option value="{$k}">{$v}</option>
  26. {/if}{/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="layui-form-item layui-inline">
  31. <label class="layui-form-label">创建时间</label>
  32. <div class="layui-input-inline">
  33. <input data-date-range name="create_at" value="{:input('get.create_at')}" placeholder="请选择创建时间" class="layui-input">
  34. </div>
  35. </div>
  36. <div class="layui-form-item layui-inline">
  37. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  38. </div>
  39. </form>
  40. <script>form.render()</script>
  41. </fieldset>