<div class="layui-tab-content ct-tab-content">

	<div class="layui-tab-item layui-show">

		<!-- layui-form -->
		<div class="layui-form">
			
			<div class="layui-form-item">

				<!-- 应用 -->
				<div class="layui-inline">
					<div class="layui-input-inline">
						<select name="ctspider-log-seletc" lay-filter="ctspider-log-seletc">
							<option value="">批量操作</option>
							<option value="1">只删除日志记录</option>
							<optgroup label="提示：谨慎操作 ↓">
								<option value="2">日志和文章一并删除</option>
							</optgroup>
						</select>
					</div>
					<button class="layui-btn" id="ctspider-appation">应用</button>
				</div>

				<!-- 筛选 -->
				<div class="layui-inline">
					<div class="layui-input-inline">
						<select name="ctspider-log-filter" lay-filter="ctspider-log-filter">
							<option value="all">查看所有任务</option>
							<?php $tasklist = $data->TaskList();?>							
							<?php if (!empty($tasklist)) : foreach ($tasklist as $key => $value) :?>
							<?php echo '<option value="'.$value['id'].'">'.$value['basic']['task_name'].'</option>'; ?>
							<?php endforeach; endif;?>							
						</select>
					</div>
					<button class="layui-btn" id="ctspider-filter">筛选</button>
				</div>

				<!-- 删除 -->
				<div class="layui-inline" style="float:right;" >
					<label class="layui-form-label"><strong class="logCount"><em>0</em></strong> 个项目</label>
					<div class="layui-input-inline">
						<select name="ctspider-log-timefind" lay-filter="ctspider-log-timefind">
							<option value="">删除数据时间选项</option>
							<option value="90">保留最近90天的数据</option>
							<option value="60">保留最近60天的数据</option>
							<option value="30">保留最近30天的数据</option>
						</select>
					</div>
					<div class="layui-input-inline">
						<select name="ctspider-log-deleteaction" lay-filter="ctspider-log-deleteaction">
							<option value="">删除操作</option>
							<option value="deletelog">只删除日志记录</option>
							<optgroup label="提示：谨慎操作 ↓">
								<option value="deletelogall">日志和文章一并删除</option>
							</optgroup>
						</select>
					</div>					
					<button class="layui-btn layui-btn-danger" id="ctspider-log-remove">删除</button>
					<button class="layui-btn layui-btn layui-btn-warm" id="ctspider-log-reset"><i class="layui-icon layui-icon-refresh-1"></i> 刷新</button>
				</div>		

				<div class="layui-inline" style="float:right;" >				
					
				</div>						

			</div>		

		</div><!-- END layui-form -->


		<table class="layui-hide" id="ctspider-log" lay-filter="ctspider-log"></table>
	</div>	

</div>	
