index_search.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <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. <select class="layui-select" name="status">
  20. {foreach [''=>'-- 全部状态 --','1'=>'进行中','2'=>'已完成'] 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. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  32. </div>
  33. </form>
  34. </fieldset>
  35. <script>form.render()</script>