<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/images/metinfo.css" />
<script type="text/javascript" src="__PUBLIC__/admin/images/jQuery1.7.2.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/common.css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/common.js" /></script>
<script>
$(document).ready(function(){
    $('#sms_form').submit(function(){
        var qq_app_key = $("input[name='qq_app_key']").val();
        var qq_app_secret = $("#qq_app_secret").val();
        $("#sms_submit").html("正在提交。。。");
        $.post("<?php echo U('Index/ajax_websetting');?>",{qq_app_key:qq_app_key,qq_app_secret:qq_app_secret},function(result){
            if(result.status=='1'){
                alert(result.info);
                window.location.reload();
            }else{
                alert(result.info);
            }
        });
        return false;
});
});
</script>
</head>
<body>
    <div class="metinfotop">
    <div class="position">简体中文：网站设置 > <a href="<?php echo U('Index/member');?>">会员接口</a></div>
    </div>
    <div class="clear"></div>
<div class="stat_list">
    <ul>
        <li class="now"><a href="<?php echo U('Index/member');?>" title="QQ登录">QQ登录</a></li>
    </ul>
</div>
<div class="fm_form">
<form class="stdform" action="" id="sms_form" method="post">
                        <p>
                            <label class="lb_left">APP_KEY：</label>
                            <span class="field"><input type="text" name="qq_app_key" value="<?php echo ($data["qq_app_key"]); ?>" class="biginput" tips="connect.qq.com 申请" />
                            <img src="__PUBLIC__/admin/images/helps.gif" class="tips_img" title="">
                            </span>
                        </p>
                        <p>
                            <label class="lb_left">APP_SECRET：</label>
                            <span class="field"><input type="text" id="qq_app_secret" name="qq_app_secret" value="<?php echo ($data["qq_app_secret"]); ?>" class="biginput" tips="connect.qq.com 申请" />
                            <img src="__PUBLIC__/admin/images/helps.gif" class="tips_img" title="">
                            </span>
                        </p>
                        <p class="stdformbutton">
                            <button class="submit radius2 fm_btn" id="sms_submit" name="dosubmit">保存</button>
                        </p>
                       
                    </form>
                    </div>
                    <div class="fm_cl"></div>

</body>
</html>