<?php 
	$this->display(tpl('head'));
	$ArticleTimeDir[$setting['articletimedir']]="checked";
	$ArticleDirclass[$setting['articledirclass']]="checked";
	$Images_Get_Down[$setting['images_get_down']]="checked";
	$Content_Del_link[$setting['content_del_link']]="checked";
	$function_m[$setting['function_m']]="checked";
?>
	<fieldset class="layui-elem-field layui-field-title">
	  	<legend>内容参数设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table  my-tabel">
			<tbody>
				<tr>
					<td>内容附件目录设置</td>
					<td>
						<input name="web[articletimedir]" value="0" 	type="radio" title="不划分" <?php echo $ArticleTimeDir['0'] ?>>
					    <input name="web[articletimedir]" value="Y/" 	type="radio" title="按年"   <?php echo $ArticleTimeDir['Y/'] ?>>
					    <input name="web[articletimedir]" value="m/" 	type="radio" title="按月"	<?php echo $ArticleTimeDir['m/'] ?>>
					    <input name="web[articletimedir]" value="d/" 	type="radio" title="按日"	<?php echo $ArticleTimeDir['d/'] ?>>
					    <input name="web[articletimedir]" value="Y/m/" 	type="radio" title="年/月"	<?php echo $ArticleTimeDir['Y/m/'] ?>>
					    <input name="web[articletimedir]" value="Y/m/d/" type="radio"title="年/月/日"	<?php echo $ArticleTimeDir['Y/m/d/'] ?>>
					</td>
				</tr>
				<tr>
					<td>内容附件是否自动归类</td>
					<td>
						<input name="web[articledirclass]" value="0" 	type="radio" title="不归类" <?php echo $ArticleDirclass['0'] ?>>
			   			<input name="web[articledirclass]" value="1" 	type="radio" title="归类"   <?php echo $ArticleDirclass['1'] ?>>
						<p>比如jpg的放到一个文件夹，png的放另一个文件夹</p>
					</td>
				</tr>
				<tr>
					<td>是否启用M函数缓存</td>
					<td>
						<input name="web[function_m]" value="0" 	type="radio" title="不缓存" <?php echo $function_m['0'] ?>>
			    		<input name="web[function_m]" value="1" 	type="radio" title="缓存"   <?php echo $function_m['1'] ?>>
					</td>
				</tr>
				<tr>
					<td>附件存放目录</td>
					<td>
						<input name="web[upfiles_catalog]" value="<?php echo $setting['upfiles_catalog'] ?>"  class="layui-input my-input" type="text">
					</td>
				</tr>
				<tr>
					<td>发布内容时是否本地化图片</td>
					<td>
						<input name="web[images_get_down]" value="0" 	type="radio" title="不下载" <?php echo $Images_Get_Down['0'] ?>>
			    		<input name="web[images_get_down]" value="1" 	type="radio" title="下载到本地"   <?php echo $Images_Get_Down['1'] ?>></td>
				</tr>
				<tr>
					<td>发布内容时是否删除外链</td>
					<td>
						<input name="web[content_del_link]" value="0" 	type="radio" title="不删除" <?php echo $Content_Del_link['0'] ?>>
			    		<input name="web[content_del_link]" value="1" 	type="radio" title="删除"   <?php echo $Content_Del_link['1'] ?>>
					</td>
				</tr>
				<tr>
					<td>外链白名单</td>
					<td>
						<textarea name="web[content_link_white_list]" placeholder="不输入则只保存本站的链接，其它链接全部删除" class="layui-textarea my-input"><?php echo $setting['content_link_white_list'] ?></textarea>
						<p>一行一个,如：www.temmoku.cn</p>
					</td>
				</tr>
				<tr>
					<input type="hidden" name="step" id="step" value="post" />
					<td colspan="2" class="my_button"><button class="layui-btn">立即设置</button></td>
				</tr>
			</tbody>
		</table>

	</form>
<script>

layui.config({
	version: '<?php echo NOWTIME ?>'
});
layui.use(['form'], function(){
  	var $ = layui.jquery
	var form = layui.form;
});
	  
</script>
<?php $this->display(tpl('foot')); 
