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
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:16:30
         compiled from "E:\ishangstudywebs\zhaopin\app\template\admin\admin_navmap.htm" */ ?>
<?php /*%%SmartyHeaderCode:1009667ff756e47d910-70668960%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ea66f1685e4801c2a655bb775fbd4a9e07cb7aff' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\admin\\admin_navmap.htm',
      1 => 1634883865,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1009667ff756e47d910-70668960',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
    'nav' => 0,
    'key' => 0,
    'v' => 0,
    'total' => 0,
    'pagenum' => 0,
    'pages' => 0,
    'pagenav' => 0,
    'pytoken' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff756e4b83b1_56220359',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff756e4b83b1_56220359')) {function content_67ff756e4b83b1_56220359($_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'; ?>
>
        <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'; ?>
>
        <?php echo '<script'; ?>
 src="js/admin_public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <div class="infoboxp">
 
            <div class="tty-tishi_top">
                <div class="admin_new_search_box">
                    <form action="index.php" name="myform" method="get">
                        <input name="m" value="navmap" type="hidden" />
                        <div class="admin_new_search_name">搜索类型:</div>
                        <div class="admin_Filter_text formselect" did='dtype'>
                            <input type="button" value="<?php if ($_GET['type']=='2') {?>链接地址<?php } else { ?>网站名称<?php }?>" class="admin_Filter_but"
                             id="btype">
                            <input type="hidden" id='type' value="<?php echo $_GET['type'];?>
" name='type'>
                            <div class="admin_Filter_text_box" style="display:none" id='dtype'>
                                <ul>
                                    <li><a href="javascript:void(0)" onClick="formselect('1','type','网站名称')">网站名称</a></li>
                                    <li><a href="javascript:void(0)" onClick="formselect('2','type','链接地址')">链接地址</a></li>
                                </ul>
                            </div>
                        </div>
                        <input class="admin_Filter_search" type="text" name="keyword" size="25" style="float:left" placeholder="请输入你要搜索的关键字">
                        <input class="admin_Filter_bth" type="submit" name="news_search" value="搜索" />
                        <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                        <a href="index.php?m=navmap&c=add" class="admin_new_cz_tj">添加网站地图</a>
                    </form>
 
 
 
                    <?php echo $_smarty_tpl->getSubTemplate ("admin/admin_search.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
                </div>
                <div class="clear"></div>
            </div>
 
 
            <div class="tty_table-bom">
                <div class="table-list">
                    <div class="admin_table_border">
                        <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                        <form action="index.php" name="myform" id='myform' method="get" target="supportiframe">
                            <input name="m" value="navmap" type="hidden" />
                            <input name="c" value="del" type="hidden" />
                            <table width="100%">
                                <thead>
                                    <tr class="admin_table_top">
                                        <th><label for="chkall"><input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' /></label></th>
                                        <th>编号</th>
                                        <th align="left">名称</th>
                                        <th align="left">类别</th>
                                        <th align="left">连接地址</th>
                                        <th align="left">类型</th>
                                        <th>排序</th>
                                        <th>弹出窗口</th>
                                        <th>显示</th>
                                        <th width="140">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['nav']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                                    <tr align="center" <?php if (($_smarty_tpl->tpl_vars['key']->value+1)%2=='0') {?>class="admin_com_td_bg"<?php }?> id="list<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">
                                        <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
                                        <td align="left" class="td1" style="text-align:center;"><span><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</span></td>
                                        <td class="od" align="left"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
                                        <td class="ud" align="left"><?php echo $_smarty_tpl->tpl_vars['v']->value['typename'];?>
</td>
                                        <td class="gd" align="left"><?php echo $_smarty_tpl->tpl_vars['v']->value['url'];?>
</td>
                                        <td class="td" align="left"><?php if ($_smarty_tpl->tpl_vars['v']->value['type']=='1') {?>站内链接<?php } else { ?>原链接<?php }?></td>
                                        <td class="td"><?php echo $_smarty_tpl->tpl_vars['v']->value['sort'];?>
</td>
                                        <td class="td" id="eject<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">
                                            <?php if ($_smarty_tpl->tpl_vars['v']->value['eject']=='1') {?>
                                            <a href="javascript:void(0);" onClick="tanchu('index.php?m=navmap&c=nav_xianshi','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','0','eject');">新窗口</a>
                                            <?php } else { ?>
                                            <a href="javascript:void(0);" onClick="tanchu('index.php?m=navmap&c=nav_xianshi','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','1','eject');">原窗口</a>
                                            <?php }?>
                                        </td>
                                        <td class="td" id="display<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">
                                            <?php if ($_smarty_tpl->tpl_vars['v']->value['display']=='1') {?>
                                            <a href="javascript:void(0);" onClick="rec_up('index.php?m=navmap&c=nav_xianshi','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','0','display');"><img
                                                 src="../config/ajax_img/doneico.gif"></a>
                                            <?php } else { ?>
                                            <a href="javascript:void(0);" onClick="rec_up('index.php?m=navmap&c=nav_xianshi','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','1','display');"><img
                                                 src="../config/ajax_img/errorico.gif"></a>
                                            <?php }?>
                                        </td>
 
 
                                        <td><a href="index.php?m=navmap&c=add&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_new_c_bth">修改</a>
                                            <a href="javascript:void(0)" onClick="layer_del('确定要删除?', 'index.php?m=navmap&c=del&del=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
');"
                                             class="admin_new_c_bth admin_new_c_bth_sc">删除</a></td>
                                    </tr>
                                    <?php } ?>
                                    <tr>
                                        <td align="center"><label for="chkall2"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></label></td>
                                        <td colspan="9"><label for="chkAll2">全选</label>
                                            <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" /></td>
                                    </tr>
                                    <?php if ($_smarty_tpl->tpl_vars['total']->value>$_smarty_tpl->tpl_vars['config']->value['sy_listnum']) {?>
                                    <tr>
                                        <?php if ($_smarty_tpl->tpl_vars['pagenum']->value==1) {?>
                                        <td colspan="3"> 从 1 到 <?php echo $_smarty_tpl->tpl_vars['config']->value['sy_listnum'];?>
 ,总共 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                        <?php } elseif ($_smarty_tpl->tpl_vars['pagenum']->value>1&&$_smarty_tpl->tpl_vars['pagenum']->value<$_smarty_tpl->tpl_vars['pages']->value) {?> <td colspan="3"> 从 <?php echo ($_smarty_tpl->tpl_vars['pagenum']->value-1)*$_smarty_tpl->tpl_vars['config']->value['sy_listnum']+1;?>
 到 <?php echo $_smarty_tpl->tpl_vars['pagenum']->value*$_smarty_tpl->tpl_vars['config']->value['sy_listnum'];?>
 ,总共 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                            <?php } elseif ($_smarty_tpl->tpl_vars['pagenum']->value==$_smarty_tpl->tpl_vars['pages']->value) {?>
                                            <td colspan="3"> 从 <?php echo ($_smarty_tpl->tpl_vars['pagenum']->value-1)*$_smarty_tpl->tpl_vars['config']->value['sy_listnum']+1;?>
 到 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 ,总共
                                                <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                            <?php }?>
                                            <td colspan="7" class="digg"><?php echo $_smarty_tpl->tpl_vars['pagenav']->value;?>
</td>
                                    </tr>
                                    <?php }?>
                                </tbody>
                            </table>
                            <input type="hidden" name="pytoken" id='pytoken' value="<?php echo $_smarty_tpl->tpl_vars['pytoken']->value;?>
">
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <?php echo '<script'; ?>
>
            function tanchu(url, id, rec, type) {
                var pytoken = $("#pytoken").val();
                $.get(url + "&id=" + id + "&rec=" + rec + "&type=" + type + "&pytoken=" + pytoken, function(data) {
                    if (data == 1) {
                        if (rec == "1") {
                            $("#" + type + id).html("<a href=\"javascript:void(0);\" onClick=\"tanchu('" + url + "','" + id + "','0','" +
                                type + "');\">新窗口</a>");
                        } else {
                            $("#" + type + id).html("<a href=\"javascript:void(0);\" onClick=\"tanchu('" + url + "','" + id + "','1','" +
                                type + "');\">原窗口</a>");
                        }
                    }
                });
            }
        <?php echo '</script'; ?>
>
    </body>
</html>
<?php }} ?>