<?php 
	$this->display(tpl('head'));
	$admin[$setting['admin_login_is_yzm']]="checked";
?>

<style>
	.layui-form-label {
	    float: left;
	    display: block;
	    padding: 9px 15px;
	    width: 10%;
	    font-weight: 400;
	    text-align: right;
	}
</style>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
	  	<legend>内容核心设置</legend>
	</fieldset>
	<form class="layui-form"  method="post">
		<table class="layui-table  my-tabel">
			<tbody>
				<tr>
					<td>后台登陆是否使用验证码</td>
					<td>
						<input name="web[admin_login_is_yzm]" value="0" 	type="radio" title="否" <?php echo $admin['0'] ?>>
			    		<input name="web[admin_login_is_yzm]" value="1" 	type="radio" title="是" <?php echo $admin['1'] ?>>
					</td>
				</tr>
				<tr>
					<td>允许后台登陆的IP</td>
					<td>
						<textarea name="web[admin_login_ip]" placeholder="" class="layui-textarea my-input"><?php echo $setting['admin_login_ip'] ?></textarea>
						<p>一行一个,不填写就是不限制登陆IP</p>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="button">
						<input type="hidden" name="step" id="step" value="post" />
						<button class="layui-btn">立即设置</button>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="layui-form-item">
			<label class="layui-form-label"></label>
			<div class="layui-input-block">
				
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block my_button">
				
			</div>
		</div>
	</form>
<script>

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