|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!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 rel="stylesheet" href="../static/web/css/admin.css">
- <script language="javascript" src="js/context_menu.js"></script>
- <script language="javascript" src="js/ieemu.js"></script>
- <script language="javascript" src="../static/web/js/webajax.js"></script>
- <script language="javascript">
- function LoadSuns(ctid,tid)
- {
- if($DE(ctid).innerHTML.length < 10){
- fetch('catalog_do.php?dopost=GetSunListsMenu&cid='+tid).then(resp=>resp.text()).then((d)=>{
- $DE(ctid).innerHTML = d;
- });
- } 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>
- body{padding:6px 0px 0px 0px;margin:auto;text-align:center;background:#9ad075}
- .nbt{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 #424b51;border-bottom:1px solid #424b51;background:#eff6b6;height:21px;float:left;margin-left:3px}
- div,dd{margin:0;padding:0}
- .dlf{margin-right:3px;margin-left:6px;margin-top:2px;float:left}
- .dlr{float:left}
- .topcc{margin-top:5px}
- .suncc{margin-bottom:10px}
- dl{clear:left;margin:0;padding:0}
- #items1{border-bottom:1px solid #74c63f;border-left:1px solid #74c63f;border-right:1px solid #74c63f}
- .sunlist{width:100%;padding-left:0;margin:0;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}
- </style>
- <base target="main">
- </head>
- <body onLoad="ContextMenu.intializeContextMenu()">
- <form name="formjump" method="post" target="main" action=""></form>
- <table width='260' align='center' cellpadding='0' cellspacing='0'>
- <tr>
- <td height='26' 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='../static/web/img/mtbg1.gif' style='border-left:1px solid #74c63f'>
- <a href="javascript:;" onClick="showHide('items1')" target="_self"><img src="../static/web/img/mtimg1.gif"></a>
- </td>
- <td width="77%" background='../static/web/img/mtbg1.gif' style='border-right:1px solid #74c63f'>站点目录树</td>
- </tr>
- <tr>
- <td colspan='2' id='items1' align='left'>
- <?php
- $tu = new TypeUnit($userChannel);
- $tu->ListAllType($userChannel,$opendir);
- ?>
- </td>
- </tr>
- </table>
- </body>
- </html>
|