index_search.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <label class="layui-input-inline">
  7. <input name="school_code" value="{:input('get.school_code')}" placeholder="请输入学校代码" class="layui-input">
  8. </label>
  9. </div>
  10. <div class="layui-form-item layui-inline">
  11. <label class="layui-form-label">学校名称</label>
  12. <label class="layui-input-inline">
  13. <input name="name" value="{:input('get.name')}" placeholder="请输入学校名称" class="layui-input">
  14. </label>
  15. </div>
  16. <div class="layui-form-item layui-inline">
  17. <label class="layui-form-label">办公电话</label>
  18. <label class="layui-input-inline">
  19. <input name="office_phone" value="{:input('get.office_phone')}" placeholder="请输入办公电话" class="layui-input">
  20. </label>
  21. </div>
  22. <div class="layui-form-item layui-inline">
  23. <label class="layui-form-label">学校类型</label>
  24. <div class="layui-input-inline">
  25. <select class="layui-select" name="type">
  26. <option value="">- 全部类型 -</option>
  27. {foreach $type_arr as $k=>$v}
  28. {if input('get.type') eq $k}
  29. <option selected value="{$k}">{$v}</option>
  30. {else}
  31. <option value="{$k}">{$v}</option>
  32. {/if}
  33. {/foreach}
  34. </select>
  35. </div>
  36. </div>
  37. <div class="layui-form-item layui-inline">
  38. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  39. </div>
  40. </form>
  41. </fieldset>
  42. <script>form.render()</script>