<table width="100%" class="topmenu">
	<tr><td>
		<a href="oauth.php"><em>登陆管理</em></a><span>|</span>
		<a href="?action=setting" class="on"><em>接口设置</em></a>
	</td></tr>
</table>
<table class="sgrid" width="100%" align="center">
    <tr>
        <td>
		获取授权后立即绑定：登录后跳转到主动绑定页面，用户选择绑定已有帐号或注册新账号绑定<br>
		用户选择绑定：登录后没有绑定操作，需用户自己主动选择去绑定<br>
		自动创建用户并绑定：被动绑定方式，登录后系统自动生成帐号并绑定，在设置密码前只能通过快捷登录方式登录<br>
		<font color="blue">任何绑定方式只针对未登录网站会员帐号用户，已登录网站会员帐号用户会绑定当前登录帐号</font><br>
		<font color="red">由于审核标准限制，“QQ登录接口”请不要选择“获取授权后立即绑定”</font>
		</td>
    </tr>
</table><br>
<table width="100%" cellspacing="0" align="center"><tr><td>
<form method="post">
<input type="hidden" name="dosubmit" value="1">
<table width="100%" class="grid" cellspacing="1" align="center">
	<tr><td colspan="2" class="head"><a name="catorder1">QQ登录接口设置</a></td></tr>
	<tr>
		<td class="tdleft" width="100">是否开启：</td>
		<td>
			<input type="radio" class="radio" name="oauth_cfg[qq][open]" value="1" onclick="$('#qq').show()" {?if $oauth_cfg['qq']['open']==1?}checked="checked"{?/if?} />是&nbsp;&nbsp;
			<input type="radio" class="radio" name="oauth_cfg[qq][open]" value="0" onclick="$('#qq').hide()" {?if $oauth_cfg['qq']['open']==0?}checked="checked"{?/if?} />否
		</td>
	</tr>
	<tbody id="qq"{?if $oauth_cfg['qq']['open']==0?} style="display:none;"{?/if?}>
	<tr>
		<td class="tdleft">接口名称：</td>
		<td><input type="text" class="text" name="oauth_cfg[qq][name]" size="25" maxlength="100" value="{?$oauth_cfg['qq']['name']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">Appid：</td>
		<td><input type="text" class="text" name="oauth_cfg[qq][appid]" size="50" maxlength="100" value="{?$oauth_cfg['qq']['appid']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">Appkey：</td>
		<td><input type="text" class="text" name="oauth_cfg[qq][appkey]" size="50" maxlength="100" value="{?$oauth_cfg['qq']['appkey']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">绑定方式：</td>
		<td>
			<input type="radio" class="radio" name="oauth_cfg[qq][bindtype]" value="1" {?if $oauth_cfg['qq']['bindtype']==1?}checked="checked"{?/if?} />获取授权后立即绑定&nbsp;&nbsp;
			<input type="radio" class="radio" name="oauth_cfg[qq][bindtype]" value="0" {?if $oauth_cfg['qq']['bindtype']==0?}checked="checked"{?/if?} />用户选择绑定
		</td>
	</tr>
	</tbody>
	<tr><td colspan="2" class="head"><a name="catorder2">新浪微博接口设置</a></td></tr>
	<tr>
		<td class="tdleft">是否开启：</td>
		<td>
			<input type="radio" class="radio" name="oauth_cfg[weibo][open]" value="1" onclick="$('#weibo').show()" {?if $oauth_cfg['weibo']['open']==1?}checked="checked"{?/if?} />是
			<input type="radio" class="radio" name="oauth_cfg[weibo][open]" value="0" onclick="$('#weibo').hide()" {?if $oauth_cfg['weibo']['open']==0?}checked="checked"{?/if?} />否
		</td>
	</tr>
	<tbody id="weibo"{?if $oauth_cfg['weibo']['open']==0?} style="display:none;"{?/if?}>
	<tr>
		<td class="tdleft">接口名称：</td>
		<td><input type="text" class="text" name="oauth_cfg[weibo][name]" size="25" maxlength="100" value="{?$oauth_cfg['weibo']['name']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">Appkey：</td>
		<td><input type="text" class="text" name="oauth_cfg[weibo][appkey]" size="50" maxlength="100" value="{?$oauth_cfg['weibo']['appkey']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">Appsercet：</td>
		<td><input type="text" class="text" name="oauth_cfg[weibo][appsercet]" size="50" maxlength="100" value="{?$oauth_cfg['weibo']['appsercet']?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">绑定方式：</td>
		<td>
			<input type="radio" class="radio" name="oauth_cfg[weibo][bindtype]" value="1" {?if $oauth_cfg['weibo']['bindtype']==1?}checked="checked"{?/if?} />获取授权后立即绑定&nbsp;&nbsp;
			<input type="radio" class="radio" name="oauth_cfg[weibo][bindtype]" value="0" {?if $oauth_cfg['weibo']['bindtype']==0?}checked="checked"{?/if?} />用户选择绑定
		</td>
	</tr>
	</tbody>
	<tr>
		<td class="tdleft">&nbsp;</td>
		<td><input type="submit" class="button" name="submit"  id="submit" value="保存设置" /></td>
	</tr>
</table>
</form>
</td></tr></table>