index_search.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="{$Think.get.title|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="path" value="{$Think.get.path|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. <select class="layui-select" name="status">
  20. {foreach [''=>'-- 全部状态 --','0'=>'已禁用的权限','1'=>'使用中的权限'] as $k=>$v}
  21. {eq name='Think.get.status' value='$k.""'}
  22. <option selected value="{$k}">{$v}</option>
  23. {else}
  24. <option value="{$k}">{$v}</option>
  25. {/eq}
  26. {/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="{$Think.get.create_at|default=''}" 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. </fieldset>
  41. <script>form.render()</script>