$win->AddHidden("activepath", $activepath); $win->AddTitle("当前目录 {$activepathname} "); $win->AddItem("新目录:", "<input name='newpath' type='input' class='alltxt' id='newpath'>"); $winform = $win->GetWindow("ok"); $win->Display(); } else { if ($fmdo == "move") { $wintitle = " 文件管理"; $wecome_info = " 文件管理::移动文件 [<a href='file_manage_main.php?activepath={$activepath}'>文件浏览器</a>]</a>"; $win = new OxWindow(); $win->Init("file_manage_control.php", "js/blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); $win->AddTitle("新位置前面不加'/'表示相对于当前位置,加'/'表示相对于根目录。"); $win->AddItem("被移动文件:", $filename); $win->AddItem("当前位置:", $activepath); $win->AddItem("新位置:", "<input name='newpath' type='input' class='alltxt' id='newpath' size='40'>"); $winform = $win->GetWindow("ok"); $win->Display(); } else { if ($fmdo == "del") { $wintitle = " 文件管理"; $wecome_info = " 文件管理::删除文件 [<a href='file_manage_main.php?activepath={$activepath}'>文件浏览器</a>]</a>"; $win = new OxWindow(); $win->Init("file_manage_control.php", "js/blank.js", "POST"); $win->AddHidden("fmdo", $fmdo); $win->AddHidden("activepath", $activepath); $win->AddHidden("filename", $filename); if (@is_dir($cfg_basedir . $activepath . "/{$filename}")) { $wmsg = "你确信要删除目录:{$filename} 吗?";
} } ShowMsg("成功替换当前节点所有数据!", "co_view.php?aid={$aid}"); exit; } else { if ($dopost == "copy") { CheckPurview('co_AddNote'); if (empty($mynotename)) { $wintitle = "采集管理-复制节点"; $wecome_info = "<a href='co_main.php'>采集管理</a>::复制节点"; $win = new OxWindow(); $win->Init("co_do.php", "js/blank.js", "POST"); $win->AddHidden("dopost", $dopost); $win->AddHidden("nid", $nid); $win->AddTitle("请输入新节点名称:"); $win->AddItem("新节点名称:", "<input type='text' name='mynotename' value='' size='30' />"); $winform = $win->GetWindow("ok"); $win->Display(); exit; } $row = $dsql->GetOne("SELECT * FROM `#@__co_note` WHERE nid='{$nid}'"); foreach ($row as $k => $v) { if (!isset(${$k})) { ${$k} = addslashes($v); } } $usemore = empty($usemore) ? '0' : $usemore; $inQuery = " INSERT INTO `#@__co_note`(`channelid`,`notename`,`sourcelang`,`uptime`,`cotime`,`pnum`,`isok`,`listconfig`,`itemconfig`,`usemore`)\r\n VALUES ('{$channelid}','{$mynotename}','{$sourcelang}','" . time() . "','0','0','0','{$listconfig}','{$itemconfig}','{$usemore}'); "; $dsql->ExecuteNoneQuery($inQuery); ShowMsg("成功复制一个节点!", $ENV_GOBACK_URL); exit;
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']); $win->AddItem('是否删除文件:', "<input type='radio' name='delfile' class='np' value='no' checked='1' />否 <input type='radio' name='delfile' class='np' value='yes' />是"); $winform = $win->GetWindow('ok'); $win->Display();
if (empty($nextjob)) { $tl = new TypeLink($typeid); $typename = $tl->TypeInfos['typename']; $reid = $tl->TypeInfos['reid']; $channelid = $tl->TypeInfos['channeltype']; $typeOptions = $tl->GetOptionArray(0, 0, $channelid); $wintitle = "移动栏目"; $wecome_info = "<a href='catalog_main.php'>栏目管理</a> >> 移动栏目"; $win = new OxWindow(); $win->Init('catalog_do.php', 'js/blank.js', 'POST'); $win->AddHidden('dopost', 'moveCatalog'); $win->AddHidden('typeid', $typeid); $win->AddHidden('channelid', $channelid); $win->AddHidden('nextjob', 'unitok'); $win->AddTitle("移动目录时不会删除原来已创建的列表,移动后需重新对栏目创建HTML。"); $win->AddItem('你选择的栏目是:', "{$typename}({$typeid})"); $win->AddItem('你希望移动到那个栏目?', "<select name='movetype'>\r\n<option value='0'>移动为顶级栏目</option>\r\n{$typeOptions}\r\n</select>"); $win->AddItem('注意事项:', '不允许从父级移动到子级目录,只允许子级到更高级或同级或不同父级的情况。'); $winform = $win->GetWindow('ok'); $win->Display(); exit; } else { if ($typeid == $movetype) { ShowMsg('移对对象和目标位置相同!', 'catalog_main.php'); exit; } if (IsParent($movetype, $typeid)) { ShowMsg('不能从父类移动到子类!', 'catalog_main.php'); exit; } $dsql->ExecuteNoneQuery(" UPDATE `#@__arctype` SET reid='{$movetype}' WHERE id='{$typeid}' ");
foreach($MemberTypes as $k=>$v) { if($k!=$uptype) $options .= "<option value='$k'>$v</option>\r\n"; else $options .= "<option value='$k' selected>$v</option>\r\n"; } $options .= "</select>\r\n"; $wintitle = "会员管理-会员升级"; $wecome_info = "<a href='".$ENV_GOBACK_URL."'>会员管理</a>::会员升级"; $win = new OxWindow(); $win->Init("member_do.php","js/blank.js","POST"); $win->AddHidden("fmdo","yes"); $win->AddHidden("dopost",$dopost); $win->AddHidden("ID",$ID); $win->AddTitle("会员升级:"); $win->AddItem("会员目前的等级:",$MemberTypes[$mtype]); $win->AddItem("会员申请的等级:",$MemberTypes[$uptype]); $win->AddItem("开通等级:",$options); $winform = $win->GetWindow("ok"); $win->Display(); } /*---------------- function __Recommend() 推荐会员 ----------------*/ else if($dopost=="recommend") { CheckPurview('member_Edit'); $ID = ereg_replace("[^0-9]","",$ID); $dsql = new DedeSql(false); if($matt==0){