index_search.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <select class="layui-select" name="status">
  14. {foreach [''=>'- 全部状态 -','1'=>'使用中的商品分类','0'=>'已禁用的商品分类'] 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. <label class="layui-form-label">标签</label>
  26. <div class="layui-input-inline">
  27. <select class="layui-select" name="label_id">
  28. <option selected value="">全部</option>
  29. <!--{foreach $label as $k=>$v}-->
  30. <!--{eq name='Think.get.label_id' value='$v.id.""'}-->
  31. <option selected value='{$v.id}'>{$v.name}</option>
  32. <!--{else}-->
  33. <option value='{$v.id}'>{$v.name}</option>
  34. <!--{/eq}-->
  35. <!--{/foreach}-->
  36. </select>
  37. </div>
  38. </div>
  39. <div class="layui-form-item layui-inline">
  40. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  41. </div>
  42. </form>
  43. <script>form.render()</script>
  44. </fieldset>