<?php 
	$this->display(tpl('head',true));
	$is_open[$row['is_open']]='checked';
	$oicq_bind[$setting['bind']]='checked';

?>
	<style>
		.layui-form-checkbox {
		    margin-top: 10px;
		}
	</style>
	<fieldset class="layui-elem-field layui-field-title">
	  	<legend>QQ登陆插件参数设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table my-tabel">
			<tbody>
				<tr>
					<td>QQ登陆状态</td>
					<td>
						<input type="radio" name="is_open" value="1" <?php echo $is_open[1] ?> title="使用" />
						<input type="radio" name="is_open" value="0" <?php echo $is_open[0] ?> title="关闭" />
					</td>
				</tr>
				<tr>
					<td>QQ登陆appid</td>
					<td>
						<input type="text" name="setting[appid]" value="<?php echo $setting['appid'] ?>" class="layui-input my-input" />
					</td>
				</tr>
				<tr>
					<td>QQ登陆appkey</td>
					<td>
						<input type="text" name="setting[appkey]" value="<?php echo $setting['appkey'] ?>" class="layui-input my-input" />
					</td>
				</tr>
				<tr>
					<td>QQ登陆COOKIE保存时间</td>
					<td>
						<input type="text" name="setting[cookietime]" value="<?php echo  $setting['cookietime'] ?>" class="layui-input w100" /><span class="layui-span">天</span>
					</td>
				</tr>
				<tr>
					<td>新用户QQ登录是否引导注册或绑定旧帐号</td>
					<td>
						<input type="radio" name="setting[bind]" value="1" <?php echo $oicq_bind[1] ?> title="引导注册或绑定" />
						<input type="radio" name="setting[bind]" value="0" <?php echo $oicq_bind[0] ?> title="无需引导" />
					</td>
				</tr>
				<tr>
					<td colspan="2" class="my_button">
						<input type="hidden" name="id" value="<?php echo $_GET['id']?>" />
						<input type="hidden" name="step" id="step" value="post" />
						<button class="layui-btn">立即设置</button>
					</td>
				</tr>
			</tbody>
		</table>
	</from>
	<script>
		
		layui.config({
			version: '<?php echo NOWTIME ?>'
		});
		layui.use(['form'], function(){
		  	var $ = layui.jquery
			var form = layui.form;
		});
	</script>
<?php $this->display(tpl('foot',true)); ?>
