index_search.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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" 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. <select class="layui-select" name="status">
  14. {foreach [''=>'-- 全部状态 --','0'=>'已禁用的','1'=>'使用中的'] as $k=>$v}
  15. {eq name='Think.get.status' value='$k.""'}
  16. <option selected value="{$k}">{$v}</option>
  17. {else}
  18. <option value="{$k}">{$v}</option>
  19. {/eq}
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="layui-form-item layui-inline">
  25. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  26. </div>
  27. </form>
  28. </fieldset>
  29. <script>form.render()</script>