<?php
	$this->display(tpl('head',true));
	$login_is_yzm[$data['login_is_yzm']]="checked";
	$login_is_state_login[$data['login_is_state_login']]="checked";
?>
<style>
	.layui-form-label {
	    float: left;
	    display: block;
	    padding: 9px 15px;
	    width: 10%;
	    font-weight: 400;
	    text-align: right;
	}
	p{
		margin-top: 10px;
	}
</style>
	<fieldset class="layui-elem-field layui-field-title">
	  	<legend>会员登陆设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table" >
			<tr>
				<td>未审核的会员是否禁止登陆</td>
				<td>
					<input name="web[login_is_state_login]" value="1" type="radio" title="禁止登陆" <?php echo $login_is_state_login['1'] ?>>
					<input name="web[login_is_state_login]" value="0" type="radio" title="可以登录" <?php echo $login_is_state_login['0'] ?>>
				</td>
			</tr>
			<tr>
				<td>禁止登陆原因</td>
				<td>
					<textarea name="web[close_why]" class="layui-textarea my-input" ><?php echo $data['close_why'] ?></textarea>
			</tr>
			<tr>
				<td>登陆cookie保存时间</td>
				<td>
					<input name="web[login_save_cookie_time]"  value="<?php echo $data['login_save_cookie_time'] ?>" type="text" class="layui-input my-input">
					天
					<p>如果不填或者默认为0则为1天</p>
				</td>
			</tr>
			<tr>
				<td>登录是否使用验证码</td>
				<td>
			    	<input name="web[login_is_yzm]" value="0" type="radio" title="停用" <?php echo $login_is_yzm['0'] ?>>
			    	<input name="web[login_is_yzm]" value="1" type="radio" title="使用" <?php echo $login_is_yzm['1'] ?>>
				</td>
			</tr>
		</table>
		<table class="layui-table" >
			<tr>
				<td>
					<div class="my_button">
						<input type="hidden" name="step" id="step" value="post" />
						<button class="layui-btn">立即设置</button>
					</div>
				</td>
			</tr>
		</table>
	</form>
<script>

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

