| @@ -4,200 +4,148 @@ | |||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
| <title>类别管理</title> | |||
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
| <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
| <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="../static/js/dedeajax2.js"></script> | |||
| <script language="javascript"> | |||
| <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="css/base.css"> | |||
| <script src="js/context_menu.js"></script> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="../static/js/dedeajax2.js"></script> | |||
| <script> | |||
| 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); } | |||
| 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 = "revert"; | |||
| else $DE(objname).style.display="none"; | |||
| return false; | |||
| if($DE(objname).style.display=="none") $DE(objname).style.display = "revert"; | |||
| else $DE(objname).style.display="none"; | |||
| return false; | |||
| } | |||
| if(moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| function JumpOneUrl(surl) | |||
| { | |||
| document.formjump.action=surl; | |||
| document.formjump.submit(); | |||
| 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) | |||
| 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) | |||
| 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) | |||
| 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) | |||
| 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:8px; | |||
| } | |||
| 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 } | |||
| #items1 | |||
| { | |||
| border-bottom: 1px solid #FBFCE2; | |||
| border-left: 1px solid #FBFCE2; | |||
| border-right: 1px solid #FBFCE2; | |||
| } | |||
| .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 #FBFCE2; | |||
| border-right: 1px solid #FBFCE2; | |||
| } | |||
| .top { cursor: pointer; } | |||
| body | |||
| { | |||
| padding:3px 0px 0px 0px; | |||
| margin:auto; | |||
| text-align:center; | |||
| background-color:#FBFCE2; | |||
| background:url(images/leftmenu_bg.gif); | |||
| } | |||
| body{margin:0;background:#f2f2f2} | |||
| dl{clear:left;margin:0;padding:0} | |||
| .dlf{float:left;margin-top:14px;margin-left:10px} | |||
| .dlr{float:left;margin-top:10px} | |||
| .sunlist{display:inline-block;margin-top:10px;width:100%} | |||
| </style> | |||
| <base target="main" /> | |||
| <base target="main"> | |||
| </head> | |||
| <body target="main" onLoad="ContextMenu.intializeContextMenu()"> | |||
| <form name="formjump" method="post" target="main" action=""></form> | |||
| <table width='98%' 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> | |||
| <button type="button" name="sb5" class="btn btn-success btn-sm" onClick="document.form5.submit();">批量增加栏目</button> | |||
| <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="document.form2.submit();">栏目管理</button> | |||
| <br /> | |||
| <button type="button" name="sb3" class="btn btn-success btn-sm mt-1" onClick="document.form3.submit();">菜单</button> | |||
| <button type="button" name="sb6" class="btn btn-success btn-sm mt-1" onClick="document.form6.submit();">文档列表</button> | |||
| <button type="button" name="sb1" class="btn btn-success btn-sm mt-1" onClick="document.form1.submit();">发布向导</button> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td width="20%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #FBFCE2;'> | |||
| <a href="javascript:;" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="24" border="0" /></a> | |||
| </td> | |||
| <td width="80%" background='images/mtbg1.gif' style='border-right: 1px solid #FBFCE2;'>站点目录树</td> | |||
| </tr> | |||
| <tr> | |||
| <td colspan='2' id='items1' align='center'> | |||
| <?php | |||
| $tu = new TypeUnit($userChannel); | |||
| $tu->ListAllType($userChannel,$opendir); | |||
| ?> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <form name="formjump" method="post" target="main" action=""></form> | |||
| <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||
| <tr> | |||
| <td height="36" colspan="2" align="center" style="padding:10px 0"> | |||
| <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> | |||
| <button type="button" name="sb5" class="btn btn-success btn-sm" onClick="document.form5.submit();">批量增加栏目</button> | |||
| <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="document.form2.submit();">栏目管理</button> | |||
| <br> | |||
| <button type="button" name="sb3" class="btn btn-success btn-sm mt-2" onClick="document.form3.submit();">菜单</button> | |||
| <button type="button" name="sb6" class="btn btn-success btn-sm mt-2" onClick="document.form6.submit();">文档列表</button> | |||
| <button type="button" name="sb1" class="btn btn-success btn-sm mt-2" onClick="document.form1.submit();">发布向导</button> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td width="20%" align="center" background="images/mtbg1.gif"><a href="javascript:;" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif"></a></td> | |||
| <td width="80%" background="images/mtbg1.gif">站点目录树</td> | |||
| </tr> | |||
| <tr> | |||
| <td colspan="2" id="items1" align="center"> | |||
| <?php | |||
| $tu = new TypeUnit($userChannel); | |||
| $tu->ListAllType($userChannel,$opendir); | |||
| ?> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| </body> | |||
| </html> | |||