catalog_menu.htm
7.91 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>类别管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script language="javascript">
function LoadSuns(ctid,tid)
{
if($DE(ctid).innerHTML.length < 10){
var myajax = new DedeAjax($DE(ctid),true,true,'','x','...');
myajax.SendGet('catalog_do.php?dopost=GetSunListsMenu&cid='+tid);
}
else{ if(document.all) showHide(ctid); }
}
function showHide(objname)
{
if($DE(objname).style.display=="none") $DE(objname).style.display = "block";
else $DE(objname).style.display="none";
return false;
}
if(moz) {
extendEventObject();
extendElementModel();
emulateAttachEvent();
}
function JumpOneUrl(surl)
{
document.formjump.action=surl;
document.formjump.submit();
}
//普通栏目
function CommonMenu(eobj,obj,tid,tname)
{
var popupoptions
popupoptions = [
new ContextItem("增加内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=addArchives"); }),
new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
new ContextSeperator(),
new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
new ContextSeperator(),
new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
new ContextItem("更改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
new ContextSeperator(),
new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
new ContextSeperator(),
new ContextItem("关闭菜单",function(){})
]
ContextMenu.display(eobj,popupoptions)
}
//封面模板
function CommonMenuPart(eobj,obj,tid,tname)
{
var popupoptions
popupoptions = [
new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
new ContextSeperator(),
new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
new ContextSeperator(),
new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
new ContextItem("更改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
new ContextSeperator(),
new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
new ContextSeperator(),
new ContextItem("向上排前一级",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=upRank"); }),
new ContextSeperator(),
new ContextItem("关闭菜单",function(){})
]
ContextMenu.display(eobj,popupoptions)
}
//单个页面
function SingleMenu(eobj,obj,tid,tname)
{
var popupoptions
popupoptions = [
new ContextItem("更改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
new ContextSeperator(),
new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
new ContextSeperator(),
new ContextItem("关闭菜单",function(){})
]
ContextMenu.display(eobj,popupoptions)
}
//跳转网址
function JumpMenu(eobj,obj,tid,tname)
{
var popupoptions
popupoptions = [
new ContextItem("更改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
new ContextSeperator(),
new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
new ContextSeperator(),
new ContextItem("关闭菜单",function(){})
]
ContextMenu.display(eobj,popupoptions)
}
</script>
<style>
.nbt{
font:12px 宋体; padding: 1px 1px 0 1px ;
vertical-align:middle ;
margin:2px 0 2px 0;
border-left:1px solid #DADF9D;
border-top:1px solid #DADF9D;
border-right:1px solid #666666;
border-bottom:1px solid #666666;
background:#eff6b6; height:21px ;
float:left;
margin-left:3px;
}
div,dd{ margin:0px; padding:0px }
.dlf { margin-right:3px; margin-left:6px; margin-top:2px; float:left }
.dlr { float:left }
.topcc { margin-top:5px }
.suncc { margin-bottom:3px }
dl { clear:left; margin:0px; padding:0px }
.sunct{ }
#items1
{
border-bottom: 1px solid #74c63f;
border-left: 1px solid #74c63f;
border-right: 1px solid #74c63f;
}
.sunlist { width:100%; padding-left:0px; margin:0px; clear:left }
.tdborder {
border-left: 1px solid #43938B;
border-right: 1px solid #43938B;
border-bottom: 1px solid #43938B;
}
.tdline-left {
border-bottom: 1px solid #656363;
border-left: 1px solid #788C47;
}
.tdline-right {
border-bottom: 1px solid #656363;
border-right: 1px solid #788C47;
}
.tdrl {
border-left: 1px solid #788C47;
border-right: 1px solid #788C47;
}
.top { cursor: pointer; }
body
{
padding:3px 0px 0px 0px;
margin:auto;
text-align:center;
background-color:#9ad075;
}
</style>
<base target="main" />
</head>
<body target="main" onLoad="ContextMenu.intializeContextMenu()">
<form name="formjump" method="post" target="main" action=""></form>
<table width='160' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td height='32' colspan="2" align='center' style='padding-bottom:3px'>
<form name="form1" target="main" action="public_guide.php"><input type='hidden' name='action' value='edit' /></form>
<form name="form2" target="main" action="catalog_main.php"></form>
<form name="form3" target="menu" action="index_menu.php"></form>
<form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick" /></form>
<form name="form6" target="main" action="content_list.php"></form>
<input type="button" name="sb5" value="批量增加栏目" class="nbt" style="width:80px" onClick="document.form5.submit();" />
<input type="button" name="sb2" value="栏目管理" class="nbt" style="width:71px" onClick="document.form2.submit();" />
<br />
<input type="button" name="sb3" value="菜单" class="nbt" style="width:36px" onClick="document.form3.submit();" />
<input type="button" name="sb6" value="文档列表" class="nbt" style="width:56px" onClick="document.form6.submit();" />
<input type="button" name="sb1" value="发布向导" class="nbt" style="width:56px" onClick="document.form1.submit();" />
</td>
</tr>
<tr>
<td width="23%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #74c63f;'>
<a href="#" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="24" border="0" /></a>
</td>
<td width="77%" background='images/mtbg1.gif' style='border-right: 1px solid #74c63f;'>站点目录树</td>
</tr>
<tr>
<td colspan='2' id='items1' align='left' style="background:#ffffff url(images/mmenubg2.gif) no-repeat;padding-left:8px;">
<?php
$tu = new TypeUnit($userChannel);
$tu->ListAllType($userChannel,$opendir);
?>
</td>
</tr>
</table>
</body>
</html>