tool.php
8.15 KB
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>菜單</title>
<link href="../../../data/menu/menu.css" rel="stylesheet" type="text/css">
<script src="../../../data/menu/menu.js" type="text/javascript"></script>
<SCRIPT lanuage="JScript">
function tourl(url){
parent.main.location.href=url;
}
</SCRIPT>
</head>
<body onLoad="initialize()">
<table border='0' cellspacing='0' cellpadding='0'>
<tr height=20>
<td id="home"><img src="../../../data/images/homepage.gif" border=0></td>
<td><b>插件管理</b></td>
</tr>
</table>
<table border='0' cellspacing='0' cellpadding='0'>
<?
if($r[doad])
{
?>
<tr>
<td id="prad" class="menu1" onclick="chengstate('ad')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">廣告系統</a>
</td>
</tr>
<tr id="itemad" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class="file">
<a href="../../tool/AdClass.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理廣告分類</a>
</td>
</tr>
<tr>
<td class="file1">
<a href="../../tool/ListAd.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理廣告</a>
</td>
</tr>
</table>
</td>
</tr>
<?
}
?>
<?
if($r[dovote])
{
?>
<tr>
<td id="prvote" class="menu1" onclick="chengstate('vote')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">投票系統</a>
</td>
</tr>
<tr id="itemvote" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class="file">
<a href="../../tool/AddVote.php?enews=AddVote<?=$ecms_hashur['ehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">增加投票</a>
</td>
</tr>
<tr>
<td class="file1">
<a href="../../tool/ListVote.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理投票</a>
</td>
</tr>
</table>
</td>
</tr>
<?
}
?>
<?
if($r[dolink])
{
?>
<tr>
<td id="prlink" class="menu1" onclick="chengstate('link')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">友情鏈接管理</a>
</td>
</tr>
<tr id="itemlink" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class="file">
<a href="../../tool/LinkClass.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理友情鏈接分類</a>
</td>
</tr>
<tr>
<td class="file1">
<a href="../../tool/ListLink.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理友情鏈接</a>
</td>
</tr>
</table>
</td>
</tr>
<?
}
?>
<?
if($r[dogbook])
{
?>
<tr>
<td id="prgbook" class="menu1" onclick="chengstate('gbook')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">留言板管理</a>
</td>
</tr>
<tr id="itemgbook" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class="file">
<a href="../../tool/GbookClass.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理留言分類</a>
</td>
</tr>
<tr>
<td class="file">
<a href="../../tool/gbook.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理留言</a>
</td>
</tr>
<tr>
<td class="file1">
<a href="../../tool/DelMoreGbook.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">批量刪除留言</a>
</td>
</tr>
</table>
</td>
</tr>
<?
}
?>
<?
if($r[dofeedback]||$r[dofeedbackf])
{
?>
<tr>
<td id="prfeedback" class="menu1" onclick="chengstate('feedback')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">信息反饋管理</a>
</td>
</tr>
<tr id="itemfeedback" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<?
if($r[dofeedbackf])
{
?>
<tr>
<td class="file">
<a href="../../tool/FeedbackClass.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理反饋分類</a>
</td>
</tr>
<tr>
<td class="file">
<a href="../../tool/ListFeedbackF.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理反饋字段</a>
</td>
</tr>
<?
}
if($r[dofeedback])
{
?>
<tr>
<td class="file1">
<a href="../../tool/feedback.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理信息反饋</a>
</td>
</tr>
<?
}
?>
</table>
</td>
</tr>
<?
}
?>
<?
if($r[donotcj])
{
?>
<tr>
<td id="prnotcj" class="menu3" onclick="chengstate('notcj')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">防採集插件</a>
</td>
</tr>
<tr id="itemnotcj" style="display:none">
<td class="list1">
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class="file1">
<a href="../../template/NotCj.php<?=$ecms_hashur['whehref']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理防採集隨機字符</a>
</td>
</tr>
</table>
</td>
</tr>
<?
}
?>
<?php
$b=0;
//自定義插件菜單
$menucsql=$empire->query("select classid,classname from {$dbtbpre}enewsmenuclass where classtype=2 and (groupids='' or groupids like '%,".intval($lur[groupid]).",%') order by myorder,classid");
while($menucr=$empire->fetch($menucsql))
{
$menujsvar='diymenu'.$menucr['classid'];
$b=1;
?>
<tr>
<td id="pr<?=$menujsvar?>" class="menu1" onclick="chengstate('<?=$menujsvar?>')">
<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'"><?=$menucr['classname']?></a>
</td>
</tr>
<tr id="item<?=$menujsvar?>" style="display:none">
<td class="list">
<table border='0' cellspacing='0' cellpadding='0'>
<?php
$menusql=$empire->query("select menuid,menuname,menuurl,addhash from {$dbtbpre}enewsmenu where classid='$menucr[classid]' order by myorder,menuid");
while($menur=$empire->fetch($menusql))
{
if(!(strstr($menur['menuurl'],'://')||substr($menur['menuurl'],0,1)=='/'))
{
$menur['menuurl']='../../'.$menur['menuurl'];
}
$menu_ecmshash='';
if($menur['addhash'])
{
if(strstr($menur['menuurl'],'?'))
{
$menu_ecmshash=$menur['addhash']==2?$ecms_hashur['href']:$ecms_hashur['ehref'];
}
else
{
$menu_ecmshash=$menur['addhash']==2?$ecms_hashur['whhref']:$ecms_hashur['whehref'];
}
$menur['menuurl'].=$menu_ecmshash;
}
?>
<tr>
<td class="file">
<a href="<?=$menur['menuurl']?>" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'"><?=$menur['menuname']?></a>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>