index_search.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {if session('user.username') eq 'admin'}
  2. <fieldset class="margin-bottom-15">
  3. <legend class="notselect">守护状态</legend>
  4. <div class="layui-code border-0 margin-top-0">
  5. <h4 class="color-desc margin-top-10 notselect">守护进程运行状态</h4>
  6. {if $listen}
  7. <span class="color-green">{$message|raw|default='--'}</span>
  8. {else}
  9. <span class="color-red">{$message|raw|default='--'}</span>
  10. {/if}
  11. <h4 class="color-desc margin-top-10 notselect">配置定时任务来检查并启动进程(建议每分钟执行)</h4>
  12. <p>{$command|default='--'}</p>
  13. </div>
  14. </fieldset>
  15. {/if}
  16. <fieldset>
  17. <legend>条件搜索</legend>
  18. <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
  19. <div class="layui-form-item layui-inline">
  20. <label class="layui-form-label">任务名称</label>
  21. <div class="layui-input-inline">
  22. <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入任务名称" class="layui-input">
  23. </div>
  24. </div>
  25. <div class="layui-form-item layui-inline">
  26. <label class="layui-form-label">任务指令</label>
  27. <div class="layui-input-inline">
  28. <input name="preload" value="{$Think.get.preload|default=''}" placeholder="请输入任务指令" class="layui-input">
  29. </div>
  30. </div>
  31. <div class="layui-form-item layui-inline">
  32. <label class="layui-form-label">任务状态</label>
  33. <div class="layui-input-inline">
  34. <select name="status" class="layui-select">
  35. {foreach [''=>'-- 全部状态 --','1'=>'待处理','2'=>'处理中','3'=>'处理完成','4'=>'处理失败'] as $k=>$v}
  36. <!--{if $Think.get.status eq $k}-->
  37. <option selected value="{$k}">{$v}</option>
  38. <!--{else}-->
  39. <option value="{$k}">{$v}</option>
  40. <!--{/if}-->
  41. {/foreach}
  42. </select>
  43. </div>
  44. </div>
  45. <div class="layui-form-item layui-inline">
  46. <label class="layui-form-label">创建时间</label>
  47. <div class="layui-input-inline">
  48. <input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择创建时间" class="layui-input">
  49. </div>
  50. </div>
  51. <div class="layui-form-item layui-inline">
  52. <label class="layui-form-label">开始时间</label>
  53. <div class="layui-input-inline">
  54. <input data-date-range name="start_at" value="{$Think.get.start_at|default=''}" placeholder="请选择开始时间" class="layui-input">
  55. </div>
  56. </div>
  57. <div class="layui-form-item layui-inline">
  58. <label class="layui-form-label">结束时间</label>
  59. <div class="layui-input-inline">
  60. <input data-date-range name="end_at" value="{$Think.get.end_at|default=''}" placeholder="请选择结束时间" class="layui-input">
  61. </div>
  62. </div>
  63. <div class="layui-form-item layui-inline">
  64. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  65. </div>
  66. </form>
  67. </fieldset>
  68. <script>form.render()</script>