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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:16:08
         compiled from "E:\ishangstudywebs\zhaopin\app\template\admin\admin_model_config.htm" */ ?>
<?php /*%%SmartyHeaderCode:2769267ff75580b8993-36266246%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c6b248bdf4e16306c55fe3ea3e0cc660bafb9f2f' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\admin\\admin_model_config.htm',
      1 => 1634883865,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2769267ff75580b8993-36266246',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
    'newModel' => 0,
    'mconfig' => 0,
    'key' => 0,
    'pytoken' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff75580ef8a2_18918828',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff75580ef8a2_18918828')) {function content_67ff75580ef8a2_18918828($_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="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/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'];?>
" language="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"
         type="text/css" />
        <?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'];?>
"><?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>
        <?php echo '<script'; ?>
>
            function tip(id){
                layer.tips('关闭模块后请在导航设置中对相应导航作隐藏或删除处理!', '#'+id,{time:2,guide: 2,style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC']});
                $(".xubox_layer").addClass("xubox_tips_border");
            }
        <?php echo '</script'; ?>
>
    </head>
    <style>
        .table_border{
            border-collapse: separate;
            border-spacing: 0px 0px;
            margin-top: 5px;
        }
        .table_form tr{
            display: block;
            height: 56px;
            line-height: 56px;
            border-bottom: 1px solid #e8eaec;
        }
        .table_border input{
            height: 32px;
        }
        .table_form tbody td{
        }
        .navset{width: 74px;height: 22px;border: 1px solid #dcdee2;color: #515a6e;border-radius: 2px;background: #fff;}
    </style>
    <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">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form name="myform" target="supportiframe" action="index.php?m=model_config&c=save" method="post" onsubmit="return checkForm()" class="layui-form">
                        <table width="100%" class="table_form table_border">
                            <tr class="admin_table_trbg" bgcolor="#f8f8f9" style="height: 44px;line-height: 44px;color: #515a6e;">
                                <td width="160" bgcolor="#f0f6fb" align="left"><span class="">模块名称</span></td>
                                <td width="170" bgcolor="#f0f6fb" align="left"><span class="">状态</span></td>
                                <td width="450" bgcolor="#f0f6fb" align="left"><span class="">二级域名(默认HTTP,未绑定则留空)</span></td>
                                <td width="230" bgcolor="#f0f6fb" align="left"><span class="">指向目录</span></td>
                                <td width="250" bgcolor="#f0f6fb" align="left"><span class="">综合设置</span></td>
                            </tr>
                            <?php  $_smarty_tpl->tpl_vars['mconfig'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mconfig']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['newModel']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mconfig']->key => $_smarty_tpl->tpl_vars['mconfig']->value) {
$_smarty_tpl->tpl_vars['mconfig']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['mconfig']->key;
?>
                            <tr class="admin_com_td_bg">
                                <td width="160"><?php echo $_smarty_tpl->tpl_vars['mconfig']->value['value'];?>
:</td>
                                <td width="153">
                                    <div class="layui-input-inline">
                                        <input type="checkbox"  lay-skin="primary" lay-filter="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" title="开启" <?php if ($_smarty_tpl->tpl_vars['mconfig']->value['web']=="1") {?>checked<?php }?> value='1' />
                                        <input type="hidden" name="sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_web" id="sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_web" value='<?php echo $_smarty_tpl->tpl_vars['mconfig']->value['web'];?>
' />
                                    </div>
                                </td>
                                <td width="450">
 
                                    <div class="layui-input-inline">
                                        <div class="layui-input-inline" style="float:left;width: 94px;margin-right: 5px;">
                                            <select name="sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
ssl">
                                                <option value="1" <?php if ($_smarty_tpl->tpl_vars['mconfig']->value['ssl']=="1") {?>selected<?php }?>>https://</option>
                                                <option value="0" <?php if ($_smarty_tpl->tpl_vars['mconfig']->value['ssl']!="1") {?>selected<?php }?>>http://</option>
                                            </select>
                                        </div>
                                        
                                        <div class="layui-input-inline">
                                            <input name="sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
domain" autocomplete="off" class="layui-input" type="text" value="<?php echo $_smarty_tpl->tpl_vars['mconfig']->value['domain'];?>
"
                                             size="30" maxlength="255" />
                                        </div>
                                    </div>
                                </td>
 
                                <td width="230">
                                    <div class="layui-input-inline">
                                        <input name="sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
dir" autocomplete="off" class="layui-input" type="text" value="<?php echo $_smarty_tpl->tpl_vars['mconfig']->value['dir'];?>
" size="20" maxlength="255" />
                                    </div>
                                </td>
                                <td width="250">
                                    <?php if ($_smarty_tpl->tpl_vars['key']->value!='error') {?>
                                    <input type='button' value='导航设置' class='navset btn_nav' data-config='<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
' data-name='<?php echo $_smarty_tpl->tpl_vars['mconfig']->value['value'];?>
'>
                                    <input type='button' value='SEO设置' class="navset btn_seo" data-config='<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
'>
                                    <?php }?>
                                </td>
                            </tr>
                            <?php } ?>
                            <input type="hidden" value="company" name="sy_companydir">
                            <tr class="admin_com_td_bg">
                                <th>&nbsp;</th>
                                <td colspan="3" align="left">
                                    <input type="hidden" name="pytoken" id='pytoken' value="<?php echo $_smarty_tpl->tpl_vars['pytoken']->value;?>
">
                                    <input class="tty_sub" type="submit" name="config" value="保存" />&nbsp;&nbsp;
                                    <input class="tty_cz" type="reset" value="重置" />
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            
            </div>
        </div>
 
        <?php echo '<script'; ?>
>
            layui.use(['layer', 'form'], function() {
                
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$;
                
                    '<?php  $_smarty_tpl->tpl_vars['mconfig'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mconfig']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['newModel']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mconfig']->key => $_smarty_tpl->tpl_vars['mconfig']->value) {
$_smarty_tpl->tpl_vars['mconfig']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['mconfig']->key;
?>'
                        form.on('checkbox(<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
)', function(data){
                            if(data.elem.checked){
                                $("#sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_web").val('1');
                             }else{
                                $("#sy_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_web").val('2');
                            }
                        });
                    '<?php } ?>'
            });
 
            $(function() {
                $('.btn_nav').click(function() {
                    var config = $(this).attr('data-config');
                    var name = $(this).attr('data-name');
                    layer.open({
                        type: 2,
                        title: '设置导航',
                        content: 'index.php?m=model_config&c=setnav&config=' + config + '&name=' + name,
                        skin: 'layui-layer-molv',
                        maxmin: true,
                        area: ['900px', '450px']
                    });
                }); 
 
                $('.btn_seo').click(function() {
                    var config = $(this).attr('data-config');
                    layer.open({
                        type: 2,
                        title: '设置SEO',
                        content: 'index.php?m=model_config&c=setseo&config=' + config,
                        skin: 'layui-layer-lan',
                        maxmin: true,
                        area: ['900px', '450px'],
                        moveOut: true
                    });
                }); 
            });
            function checkForm(){
                loadlayer();
            }
        <?php echo '</script'; ?>
>
 
    </body>
</html>
<?php }} ?>