index_search.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <fieldset>
  2. <legend>条件搜索</legend>
  3. <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" 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="code" value="{:input('get.code')}" 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="title" value="{:input('get.title')}" 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. <input name="command" value="{:input('get.command')}" placeholder="请输入任务指令" class="layui-input">
  20. </div>
  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 name="status" class="layui-select">
  26. {foreach [''=>'-- 全部状态 --','1'=>'待处理','2'=>'处理中','3'=>'处理完成','4'=>'处理失败'] as $k=>$v}
  27. {if input('get.status') eq $k}
  28. <option selected value="{$k}">{$v}</option>
  29. {else}
  30. <option value="{$k}">{$v}</option>
  31. {/if}
  32. {/foreach}
  33. </select>
  34. </div>
  35. </div>
  36. <div class="layui-form-item layui-inline">
  37. <label class="layui-form-label">计划时间</label>
  38. <div class="layui-input-inline">
  39. <input data-date-range name="exec_time" value="{:input('get.exec_time')}" placeholder="请选择计划时间" class="layui-input">
  40. </div>
  41. </div>
  42. <div class="layui-form-item layui-inline">
  43. <label class="layui-form-label">执行时间</label>
  44. <div class="layui-input-inline">
  45. <input data-date-range name="enter_time" value="{:input('get.enter_time')}" placeholder="请选择执行时间" class="layui-input">
  46. </div>
  47. </div>
  48. <div class="layui-form-item layui-inline">
  49. <label class="layui-form-label">创建时间</label>
  50. <div class="layui-input-inline">
  51. <input data-date-range name="create_at" value="{:input('get.create_at')}" placeholder="请选择创建时间" class="layui-input">
  52. </div>
  53. </div>
  54. <div class="layui-form-item layui-inline">
  55. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  56. </div>
  57. </form>
  58. </fieldset>
  59. <script>form.render()</script>