<?php
	$this->display(tpl('head',true));
	$is_record_images_down[C('wechat.is_record_images_down')]='checked';

?>
<style>
	.layui-form-label {
	    float: left;
	    display: block;
	    padding: 9px 15px;
	    width: 10%;
	    font-weight: 400;
	    text-align: right;
	}
	.layui-input, .layui-textarea {
	    display:  inline;
	    width: 80%;
	    padding-left: 10px;
	}
</style>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
	  	<legend>微信聊天记录设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		
		<div class="layui-form-item">
			<label class="layui-form-label">是否将用户发送的图片下载回服务器</label>
			<div class="layui-input-block">
				<input name="wechat[is_record_images_down]" value="0" <?php echo $is_record_images_down[0] ?> title="不下载" type="radio">
				<input name="wechat[is_record_images_down]" value="1" <?php echo $is_record_images_down[1] ?> title="下载回本地" type="radio">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block my_button">
				<input type="hidden" name="step" value="post" />
				<button class="layui-btn">立即设置</button>
			</div>
		</div>
	</form>
<script>

layui.config({
	version: '<?php echo NOWTIME ?>'
});
layui.use(['form','upload'], function(){
  	var $ = layui.jquery;
	var form = layui.form;
});

</script>
<?php
	$this->display(tpl('foot',true));
?>
