⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 catalog_menu.php

📁 强大的PHP内容管理系统尽量不要让站长把时间都花费在为您修正说明上。压缩包解压
💻 PHP
字号:
<?php 
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typeunit_menu.php");
$userChannel = $cuserLogin->getUserChannel();
?>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>类别管理</title>
<link href="css_menu.css" rel="stylesheet" type="text/css" />
<link href='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/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 CommonMenuWd(obj,tid,tname)
{
  var eobj,popupoptions
  popupoptions = [
    new ContextItem("增加内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
    new ContextItem("管理内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
    new ContextSeperator(),
    new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_plus_dir?>/list.php?tid="+tid); }),
    new ContextItem("增加子类",function(){top.document.frames['main'].location="catalog_add.php?ID="+tid;}),
    new ContextItem("更改栏目",function(){top.document.frames['main'].location="catalog_edit.php?ID="+tid;}),
    new ContextSeperator(),
    new ContextItem("移动栏目",function(){top.document.frames['main'].location='catalog_move.php?job=movelist&typeid='+tid}),
    new ContextItem("删除栏目",function(){top.document.frames['main'].location="catalog_del.php?ID="+tid+"&typeoldname="+tname;})
  ]
  ContextMenu.display(popupoptions)
}
//普通栏目
function CommonMenu(obj,tid,tname)
{
  var eobj,popupoptions
  popupoptions = [
    new ContextItem("增加内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
    new ContextItem("管理内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
    new ContextSeperator(),
    new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_plus_dir?>/list.php?tid="+tid); }),
    new ContextItem("更新HTML",function(){ top.document.frames['main'].location="makehtml_list.php?cid="+tid; }),
    new ContextItem("获取JS文件",function(){ top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
    new ContextSeperator(),
    new ContextItem("增加子类",function(){top.document.frames['main'].location="catalog_add.php?ID="+tid;}),
    new ContextItem("更改栏目",function(){top.document.frames['main'].location="catalog_edit.php?ID="+tid;}),
    new ContextSeperator(),
    new ContextItem("移动栏目",function(){top.document.frames['main'].location='catalog_move.php?job=movelist&typeid='+tid}),
    new ContextItem("删除栏目",function(){top.document.frames['main'].location="catalog_del.php?ID="+tid+"&typeoldname="+tname;})
  ]
  ContextMenu.display(popupoptions)
}
//封面模板
function CommonMenuPart(obj,tid,tname)
{
  var eobj,popupoptions
  popupoptions = [
    new ContextItem("增加内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
    new ContextItem("管理内容",function(){top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
    new ContextSeperator(),
    new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_plus_dir?>/list.php?tid="+tid); }),
    new ContextItem("更新HTML",function(){ top.document.frames['main'].location="makehtml_list.php?cid="+tid; }),
    new ContextItem("获取JS文件",function(){ top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
    new ContextSeperator(),
    new ContextItem("增加子类",function(){top.document.frames['main'].location="catalog_add.php?ID="+tid;}),
    new ContextItem("更改栏目",function(){top.document.frames['main'].location="catalog_edit.php?ID="+tid;}),
    new ContextSeperator(),
    new ContextItem("移动栏目",function(){top.document.frames['main'].location='catalog_move.php?job=movelist&typeid='+tid}),
    new ContextItem("删除栏目",function(){top.document.frames['main'].location="catalog_del.php?ID="+tid+"&typeoldname="+tname;})
 ]
  ContextMenu.display(popupoptions)
}
//单个页面
function SingleMenu(obj,tid,tname)
{
  var eobj,popupoptions
  popupoptions = [
    new ContextItem("预览页面",function(){ window.open("catalog_do.php?cid="+tid+"&dopost=viewSgPage"); }),
    new ContextItem("编辑页面",function(){ top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=editSgPage"; }),
    new ContextItem("编辑模板",function(){ top.document.frames['main'].location="catalog_do.php?cid="+tid+"&dopost=editSgTemplet"; }),
    new ContextSeperator(),
    new ContextItem("更改栏目",function(){top.document.frames['main'].location="catalog_edit.php?ID="+tid;}),
    new ContextSeperator(),
    new ContextItem("移动栏目",function(){top.document.frames['main'].location='catalog_move.php?job=movelist&typeid='+tid}),
    new ContextItem("删除栏目",function(){top.document.frames['main'].location="catalog_del.php?ID="+tid+"&typeoldname="+tname;})
 ]
  ContextMenu.display(popupoptions)
}
</script>
<style>
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 #3885AC;
         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: hand;}
body {
scrollbar-base-color:#bae87c;
scrollbar-arrow-color:#FFFFFF;
scrollbar-shadow-color:#c1ea8b
}
</style>
</head>
<base target="main">
<body leftmargin="0" bgcolor="#007400" topmargin="3" target="main" onLoad="ContextMenu.intializeContextMenu()">
<table width='152' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr> 
    <td height='32' colspan="2" align='center'>
	 <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>
   <input type="button" name="sb2" value="栏目管理" class="nbt" style="width:60px" onClick="document.form2.submit();">
   <input type="button" name="sb1" value="发布向导" class="nbt" style="width:60px" onClick="document.form1.submit();">
    </td>
  </tr>
  <tr> 
    <td width="23%" height='24' align='center' background='img/mtbg1.gif'  style='border-left: 1px solid #74c63f;'><a href="#" onClick="showHide('items1')" target="_self"><img src="img/mtimg1.gif" width="21" height="24" border="0"></a></td>
    <td width="77%" height='24' background='img/mtbg1.gif'  style='border-right: 1px solid #74c63f;'>站点目录树</td>
  </tr>
  <tr bgcolor='#eefef0'> 
    <td colspan='2' id='items1' align='center'> 
<?php 
if(empty($opendir)) $opendir=-1;
if($userChannel>0) $opendir=$userChannel;
$tu = new TypeUnit($userChannel);
$tu->ListAllType($userChannel,$opendir);
$tu->Close();
?>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -