require_once DEDEINC . "/typeunit.class.menu.php"; AjaxHead(); PutCookie('lastCidMenu', $cid, 3600 * 24, "/"); $tu = new TypeUnit($userChannel); $tu->LogicListAllSunType($cid, " "); } else { if ($dopost == "GetSunLists") { require_once DEDEINC . "/typeunit.class.admin.php"; AjaxHead(); PutCookie('lastCid', $cid, 3600 * 24, "/"); $tu = new TypeUnit(); $tu->dsql = $dsql; echo " <table width='100%' border='0' cellspacing='0' cellpadding='0'>\r\n"; $tu->LogicListAllSunType($cid, " "); echo " </table>\r\n"; $tu->Close(); } else { if ($dopost == 'unitCatalog') { CheckPurview('t_Move'); require_once DEDEINC . '/oxwindow.class.php'; require_once DEDEINC . '/typelink.class.php'; require_once DEDEINC . '/channelunit.func.php'; if (empty($nextjob)) { $typeid = isset($typeid) ? intval($typeid) : 0; $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctype` WHERE reid='{$typeid}' "); $tl = new TypeLink($typeid); $typename = $tl->TypeInfos['typename']; $reid = $tl->TypeInfos['reid']; $channelid = $tl->TypeInfos['channeltype']; if (!empty($row['dd'])) { ShowMsg("栏目: {$typename}({$typeid}) 有子栏目,不能进行合并操作!", '-1');
require_once(dirname(__FILE__)."/config.php"); require_once(dirname(__FILE__)."/../include/inc_typeunit_admin.php"); $ID = trim(ereg_replace("[^0-9]","",$ID)); //检查权限许可 CheckPurview('t_Del,t_AccDel'); //检查栏目操作许可 CheckCatalog($ID,"你无权删除本栏目!"); if(empty($dopost)) $dopost=""; if($dopost=="ok"){ $ut = new TypeUnit(); $ut->DelType($ID,$delfile); //更新缓存 UpDateCatCache($dsql); $ut->Close(); //更新树形菜单 $rndtime = time(); $uptree = "<script language='javascript'> if(window.navigator.userAgent.indexOf('MSIE')>=1){ if(top.document.frames.menu.location.href.indexOf('catalog_menu.php')>=1) { top.document.frames.menu.location = 'catalog_menu.php?$rndtime'; } }else{ if(top.document.getElementById('menu').src.indexOf('catalog_menu.php')>=1) { top.document.getElementById('menu').src = 'catalog_menu.php?$rndtime'; } } </script>"; echo $uptree; ShowMsg("成功删除一个栏目!","catalog_main.php"); exit(); }