<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/system/schedule" method="post">
        <input type="hidden" name="pageSize" value="${model.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
        <div class="bjui-searchBar">
            <label> 任务名称：</label><input type="text"  value="${pojo.jobName!}" name="jobName" class="form-control" size="12">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            &nbsp;
            <a   href="${ctxPath}/system/schedule/input" class="btn btn-green" data-icon="plus" data-toggle="dialog" data-maxable="false" data-resizable="true"  data-width="550" data-height="450" data-id="add-schedule"  data-title="添加任务">添加任务</a>
            <div class="pull-right">
                <!--<button type="button" class="btn-blue" data-url="ajaxDone2.html?id={#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选中项吗？" data-icon="remove" title="可以在控制台(network)查看被删除ID">删除选中行</button>&nbsp;-->
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <!--<li><a href="book1.xlsx" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？">导出<span style="color: green;">当前</span></a></li>-->
                        <!--<li class="divider"></li>-->
                        <li><a href="${ctxPath}/system/schedule/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="id" data-group="ids">删除选中</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">

        <thead>
            <tr>
                <th align="center"  width="25">编号</th>
                <th align="center"  width="80">名称</th>
                <th align="center"  width="80">分组</th>
                <th align="center"  width="100">cron表达式</th>
                <th align="center" width="200">类名</th>
                <th align="center"  width="80">方法名</th>
                <th align="center"  width="50">SpringBean</th>
                <th align="center"  width="120">创建时间</th>
                <th align="center"  width="50">状态</th>
                <th  align="center"  width="20"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th  align="center" width="100">操作</th>
            </tr>
        </thead>
        <tbody>
        @for(schedule in model.list){
            <tr data-id="${scheduleLP.index}">
                <td align="center">${schedule.id!}</td>
                <td align="center">${schedule.jobName!}</td>
                <td align="center">${schedule.jobGroup!}</td>
                <td align="center">${schedule.cronExpression!}</td>
                <td align="center">${schedule.beanClass!}</td>
                <td align="center">${schedule.methodName!}</td>
                <td align="center">${schedule.springBean!"N/A"}</td>
                <td align="center">${schedule.createDate!,dateFormat="yyyy/MM/dd HH:mm:ss"}</td>
                <td align="center">${schedule.jobStatus=="1"?"<span STYLE='color:green'>运行中</span>":"<span STYLE='color: red'>已停止</span>"}</td>
                <td align="center" ><input type="checkbox" name="ids" data-toggle="icheck" value="${schedule.id!}"></td>
                <td align="center">
                    @if(schedule.jobStatus!="1"){
                    <a href="${ctxPath}/system/schedule/change?id=${schedule.id!}&status=start" class="btn btn-green" title="启动任务" data-icon="play" data-toggle="doajax" data-confirm-msg="确定启动当前任务？"></a>
                    <a href="${ctxPath}/system/schedule/input?id=${schedule.id!}" class="btn btn-blue" data-toggle="dialog" data-maxable="false" data-resizable="true"  data-width="550" data-height="450" data-id="edit-schedule"  data-title="编辑任务">编</a>
                    <a href="${ctxPath}/system/schedule/delete?ids=${schedule.id!}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                    @}else{
                    <a href="${ctxPath}/system/schedule/change?id=${schedule.id!}&status=stop" class="btn btn-red"  	data-icon="stop" data-toggle="doajax" data-confirm-msg="确定停止当前任务？">停止</a>
                    @}
                </td>
            </tr>
        @}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 ${model.total!} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="${model.total!}" data-page-size="30" data-page-current="1">
    </div>
</div>