<fieldset class="layui-elem-field layui-field-title"><legend>基本设置</legend></fieldset>
<div class="layui-hide" id="public_table" table=""></div>
<form class="layui-form ct-form" table="basic" id="data-basic" basicID="<?php echo CTspider_html('ctspider_task','id') ?>">
	<div class="layui-form-item">
		<label class="layui-form-label">任务名称</label>
		<div class="layui-input-block">
			<input type="text" lay-verify="required" lay-verType="tips" name="task_name" value="<?php echo CTspider_html('ctspider_task','basic','task_name') ?>" placeholder="任务名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">更新时间</label>
		<div class="layui-input-inline">
			<input type="text" lay-verify="required|number" lay-verType="tips" value="<?php echo CTspider_html('ctspider_task', 'basic', 'task_update', 60) ?>" name="task_update" placeholder="更新时间" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux">(分钟) 多久检测一次是否有新文章可以更新</div>
	</div>	
	<div class="layui-form-item">
		<label class="layui-form-label">字符集</label>
		<div class="layui-input-block">
		<input type="radio" name="charset" value="auto_charset" title="自动检测" <?php checked( 'auto_charset', CTspider_html('ctspider_task','basic', 'charset', 'auto_charset') ) ?> >
		<input type="radio" name="charset" value="UTF-8" title="UTF-8" <?php checked( 'UTF-8', CTspider_html('ctspider_task','basic', 'charset') ) ?> >
		<input type="radio" name="charset" value="GBK" title="GBK" <?php checked( 'GBK', CTspider_html('ctspider_task','basic', 'charset') ) ?> >
		<input type="radio" name="charset" value="GB2312" title="GB2312" <?php checked( 'GB2312', CTspider_html('ctspider_task','basic', 'charset') ) ?> >
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">随机IP</label>
		<div class="layui-input-inline">
			<input type="checkbox" value="<?php echo CTspider_html('ctspider_task', 'basic', 'hide_ip', 0) ?>" name="hide_ip" lay-filter="hide_ip" lay-skin="switch" lay-text="开启|关闭" <?php checked( 1, CTspider_html('ctspider_task', 'basic', 'hide_ip') ) ?>>
		</div>
		<div class="layui-form-mid layui-word-aux">开启后减少采集时IP被封的几率</div>
	</div>	
	<div class="layui-form-item">
		<label class="layui-form-label">多线程采集</label>
		<div class="layui-input-inline">
			<input type="checkbox" value="<?php echo CTspider_html('ctspider_task', 'basic', 'multi', 0) ?>" name="multi" lay-filter="multi" lay-skin="switch" lay-text="开启|关闭" <?php checked(1, CTspider_html('ctspider_task', 'basic', 'multi') ) ?> >
		</div>
		<div class="layui-form-mid layui-word-aux">开启多线程有助于提高采集速度</div>
	</div>	
	<div class="layui-form-item">
		<label class="layui-form-label">设置多线程数量</label>
		<div class="layui-input-inline">
			<input type="text" value="<?php echo CTspider_html('ctspider_task', 'basic', 'multi_num', 10) ?>" lay-verify="required|number" lay-verType="tips" name="multi_num" placeholder="设置多线程数量" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux">根据服务器配置可设置(10-100)之间</div>
	</div>
    <br><br>
	<hr>


	<button type="button" class="layui-btn" lay-submit lay-filter="basic" >保存更改</button>
</form>	