chengkun
2025-05-12 b6bc92ec11e1e280185ce7682d17589cb45c20f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <title>后台管理</title>
    </head>
 
    <body class="body_ifm">
        <div class="infoboxp">
            <div class="admin_new_tip">
                <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                <div class="admin_new_tip_list_cont">
                    <div class="admin_new_tip_list">该页面可配置云平台同步秘钥。</div>
                </div>
            </div>
            <div class="clear"></div>
            <div class="main_tag">
                <div class="clear"></div>
                <div class="admin_table_border">
                    <table width="100%" class="table_form">
                        <tr>
                            <th colspan="2" bgcolor="#f0f6fb"><span class="admin_bold">同步设置</span></th>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th width="220">appid:</th>
                            <td><input class="input-text tips_class" type="text" name="yptappid" id="yptappid" value="{yun:}$config.yptappid{/yun}" style="width: 250px;"/> <span class="admin_web_tip">提示:云平台同步接口appid</span></td>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th width="220">secret:</th>
                            <td><input class="input-text tips_class" type="text" name="yptsecret" id="yptsecret" value="{yun:}$config.yptsecret{/yun}" style="width: 250px;"/> <span class="admin_web_tip">提示:云平台同步接口secret。请在站长管理中心查看</span></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center" style="border-bottom:none;">
                                <input class="admin_button" id="config" type="button" name="config" value="提交" />&nbsp;&nbsp;
                                <input class="admin_button" type="reset" value="重置" />
                            </td>
                        </tr>
                    </table>
 
 
                </div>
            </div>
        </div>
        <input type="hidden" id='pytoken' value="{yun:}$pytoken{/yun}">
        <script>
            $(function() {
                $("#config").click(function() {
                    loadlayer();
                    $.post("index.php?m=admin_sync_config&c=save", {
                        config: $("#config").val(),
                        yptsecret: $("#yptsecret").val(),
                        yptappid: $("#yptappid").val(),
                        pytoken: $("#pytoken").val()
                    }, function(data, textStatus) {
                        parent.layer.closeAll('loading');
                        config_msg(data);
                    });
                });
            })
 
    
        </script>
    </body>
 
</html>