chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:16:22
         compiled from "E:\ishangstudywebs\zhaopin\app\template\admin\admin_domain_config.htm" */ ?>
<?php /*%%SmartyHeaderCode:790067ff7566476bf5-05073180%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cc863ec85d93dc03912af0a1f91c359543ad5131' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\admin\\admin_domain_config.htm',
      1 => 1645272363,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '790067ff7566476bf5-05073180',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
    'pytoken' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff75664b0045_63996995',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff75664b0045_63996995')) {function content_67ff75664b0045_63996995($_smarty_tpl) {?><!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=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <?php echo '<script'; ?>
 src="../js/jquery-1.8.0.min.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="js/admin_public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
        <link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/css/layui.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" />
        <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/layui.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/phpyun_layer.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</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" <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_web_site']=="1") {?>
                                             checked<?php }?> 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" <?php if ($_smarty_tpl->tpl_vars['config']->value['sy_gotocity']=="1") {?>
                                             checked<?php }?> 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="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_indexcity'];?>
" />
                                        </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="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_onedomain'];?>
" />
                                        </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="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_indexdomain'];?>
" />
                                        </div>
                                        <span class="admin_web_tip">提示:默认城市对应的域名 如全站对应域名    http://www.weitenet.com 而不是 beijing.weitenet.com</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="<?php echo $_smarty_tpl->tpl_vars['pytoken']->value;?>
">
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
 
                </div>
            </div>
            <?php echo '<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() {});
            <?php echo '</script'; ?>
>
        </div>
    </body>
</html>
<?php }} ?>