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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!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="../js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <div class="infoboxp">
            <div class="tty-tishi_top">
            <div class="admin_new_tip">
                <a href="javascript:;" class="admin_new_tip_close"></a>
                <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                <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="tag_box">
                    <div>
                        <form class="layui-form">
                            <table width="100%" class="table_form">
                                <tr class="admin_table_trbg">
                                    <th width="160" class="t_fr">开启分站:</th>
                                    <td>
                                        <div class="layui-input-block t_w480">
                                            <input name="sy_web_site" lay-filter="sy_web_site" lay-skin="switch" {yun:}if $config.sy_web_site=="1" {/yun}
                                             checked{yun:}/if{/yun} lay-text="开启|关闭" type="checkbox">
                                        </div>
                                        <span class="admin_web_tip">
                                            提示:开启多城市并且绑定域名不支持2级目录,本地测试如 http://localhost/weitenet 请解析测试域名
                                        </span>
                                    </td>
                                </tr>
 
                                <tr class="admin_table_trbg">
                                    <th width="160" class="t_fr">分站根据IP自动跳转:</th>
                                    <td>
                                        <div class="layui-input-block">
                                            <input name="sy_gotocity" lay-filter="sy_gotocity" lay-skin="switch" {yun:}if $config.sy_gotocity=="1" {/yun}
                                             checked{yun:}/if{/yun} lay-text="开启|关闭" type="checkbox">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="160" class="t_fr">设定默认城市:</th>
                                    <td>
                                        <div class="layui-input-block t_w480">
                                            <input class="layui-input" type="text" name="sy_indexcity" id="sy_indexcity" size="40" maxlength="255" value="{yun:}$config.sy_indexcity{/yun}" />
                                        </div>
                                        <span class="admin_web_tip">提示:开启分站后默认城市 如:全国、总站</span></td>
 
                                </tr>
                                <tr class="admin_table_trbg">
                                    <th width="160" class="t_fr">一级域名:</th>
                                    <td>
                                        <div class="layui-input-block t_w480">
                                            <input class="layui-input" type="text" name="sy_onedomain" id="sy_onedomain" size="40" maxlength="255" value="{yun:}$config.sy_onedomain{/yun}" />
                                        </div>
                                        <span class="admin_web_tip">提示:如果默认域名为二级域名,则请填写一级域名</span>
                                    </td>
 
                                </tr>
 
                                <tr>
                                    <th width="160" class="t_fr">默认域名:</th>
                                    <td>
                                        <div class="layui-input-block t_w480">
                                        <input class="layui-input" type="text" name="sy_indexdomain" id="sy_indexdomain" size="40" maxlength="255" value="{yun:}$config.sy_indexdomain{/yun}" />
                                        </div>
                                        <span class="admin_web_tip"></span>
                                    </td>
 
                                </tr>
                                <tr>
                                    <th style="border-bottom:none;">&nbsp;</th>
                                    <td align="left" style="border-bottom:none;">
                                        <input class="tty_sub" id="config" type="button" name="config" value="提交">
                                        <input class="tty_cz" type="reset" value="重置" />
                                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
 
                </div>
            </div>
            <script>
                $(function() {
                    $("#config").click(function() {
                        loadlayer();
                        $.post("index.php?m=admin_domain&c=savecf", {
                            config: $("#config").val(),
                            sy_indexcity: $("#sy_indexcity").val(),
                            sy_gotocity: $("input[name=sy_gotocity]").is(":checked") ? 1 : 0,
                            sy_onedomain: $("#sy_onedomain").val(),
                            sy_indexdomain: $("#sy_indexdomain").val(),
                            pytoken: $("#pytoken").val(),
                            sy_web_site: $("input[name=sy_web_site]").is(":checked") ? 1 : 0
                        }, function(data, textStatus) {
                            parent.layer.closeAll('loading');
                            config_msg(data);
                        });
                    });
                });
 
                layui.use(['form'], function() {});
            </script>
        </div>
    </body>
</html>