header("location:makehtml_js.php"); exit; } else { if ($dopost == "GetSunListsMenu") { $userChannel = $cuserLogin->getUserChannel(); 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);
<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>
* @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecms.com */ require_once dirname(__FILE__) . '/config.php'; //检查权限许可 CheckPurview('t_Del,t_AccDel'); require_once DEDEINC . '/typeunit.class.admin.php'; require_once DEDEINC . '/oxwindow.class.php'; $id = trim(preg_replace("#[^0-9]#", '', $id)); //检查栏目操作许可 CheckCatalog($id, "你无权删除本栏目!"); if (empty($dopost)) { $dopost = ''; } if ($dopost == 'ok') { $ut = new TypeUnit(); $ut->DelType($id, $delfile); UpDateCatCache(); ShowMsg("成功删除一个栏目!", "catalog_main.php"); exit; } $dsql->SetQuery("SELECT typename,typedir FROM #@__arctype WHERE id=" . $id); $row = $dsql->GetOne(); $wintitle = "删除栏目确认"; $wecome_info = "<a href='catalog_main.php'>栏目管理</a> >> 删除栏目确认"; $win = new OxWindow(); $win->Init('catalog_del.php', 'js/blank.js', 'POST'); $win->AddHidden('id', $id); $win->AddHidden('dopost', 'ok'); $win->AddTitle("你要确实要删除栏目: [{$row['typename']}] 吗?"); $win->AddItem('栏目的文件保存目录:', $row['typedir']);
<?php 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();