$win->AddHidden("aid", $aid); $win->AddTitle("你确实要删除“ {$qstr} 和 {$aid} ”这些文档?"); $winform = $win->GetWindow("ok"); $win->Display(); } } else { if ($dopost == 'moveArchives') { CheckPurview('sys_ArcBatch'); if (empty($totype)) { require_once DEDEINC . '/typelink.class.php'; if (!empty($aid) && empty($qstr)) { $qstr = $aid; } AjaxHead(); $channelid = empty($channelid) ? 0 : $channelid; $tl = new TypeLink($aid); $typeOptions = $tl->GetOptionArray(0, $admin_catalogs, $channelid); $typeOptions = "<select name='totype' style='width:90%'>\n <option value='0'>请选择移动到的位置...</option>\r\n\n {$typeOptions}\n </select>"; //输出AJAX可移动窗体 $divname = 'moveArchives'; echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">\r\n"; echo " <div class='titLeft'>移动文档</div>\r\n"; echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n"; echo "</div>\r\n"; echo "<form name='quickeditform' action='archives_do.php' method='post'>\r\n"; echo "<input type='hidden' name='dopost' value='{$dopost}' />\r\n"; echo "<input type='hidden' name='qstr' value='{$qstr}' />\r\n"; echo "<table width='100%' style='margin-top:6px;z-index:9000;'>\r\n"; ?> <tr height='28'> <td width="80" class='bline'> 目标栏目:</td>
$forms .= "结束时间:<input type=\"text\" name=\"enddate\" value=\"\" /><br />"; } } } } } } } $addonstring = ''; $intarr = array('int', 'float'); $textarr = array('textdata', 'textchar', 'text', 'htmltext', 'multitext'); if ($channel['issystem'] < 0) { foreach ($addonfields as $addonfield) { if ($addonfield == 'typeid') { require_once dirname(__FILE__) . "/../include/typelink.class.php"; $tl = new TypeLink(0); $typeOptions = $tl->GetOptionArray(0, 0, $mid); $forms .= "<br />栏目:<select name='typeid' style='width:200'>\r\n"; $forms .= "<option value='0' selected>--不限栏目--</option>\r\n"; $forms .= $typeOptions; $forms .= "</select>"; $forms .= "<label><input type=\"checkbox\" name=\"includesons\" value=\"1\" />包含子栏目</label><br />"; $addonstring .= 'typeid:int,'; } elseif ($addonfield == 'senddate') { $forms .= "开始时间:<input type=\"text\" name=\"startdate\" value=\"\" /><br />"; $forms .= "结束时间:<input type=\"text\" name=\"enddate\" value=\"\" /><br />"; $addonstring .= 'senddate:datetime,'; } } } if (is_array($addonfields) && !empty($addonfields)) {
$win->AddHidden("channelid",$channelid); $win->AddHidden("qstr",$qstr); $win->AddHidden("aid",$aid); $win->AddTitle("你确实要删除“ $qstr 和 $aid ”这些文档?"); $winform = $win->GetWindow("ok"); $win->Display(); } /*----------------------------- function moveArchives() ------------------------------*/ else if($dopost=='moveArchives'){ CheckPurview('sys_ArcBatch'); require_once(dirname(__FILE__)."/../include/pub_oxwindow.php"); require_once(dirname(__FILE__)."/../include/inc_typelink.php"); if(empty($targetTypeid)){ $tl = new TypeLink(0); $typeOptions = $tl->GetOptionArray(0,$tl->TypeInfos['channeltype'],0); $tl->Close(); $typeOptions = " <select name='targetTypeid' style='width:350'> <option value='0'>请选择移动到的位置...</option>\r\n $typeOptions </select> "; $wintitle = "文档管理-移动文档"; $wecome_info = "<a href='".$ENV_GOBACK_URL."'>文档管理</a>::移动文档"; $win = new OxWindow(); $win->Init("archives_do.php","js/blank.js","POST"); $win->AddHidden("fmdo","yes"); $win->AddHidden("dopost",$dopost); $win->AddHidden("qstr",$qstr);
require_once DEDEINC . "/typelink.class.php"; require_once DEDEINC . "/datalistcp.class.php"; require_once DEDEMEMBER . "/inc/inc_list_functions.php"; setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); $cid = isset($cid) && is_numeric($cid) ? $cid : 0; $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0; $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; if (!isset($keyword)) { $keyword = ''; } if (!isset($arcrank)) { $arcrank = ''; } $positionname = ''; $mid = $cfg_ml->M_ID; $tl = new TypeLink($cid); $cInfos = $tl->dsql->GetOne("Select arcsta,issend,issystem,usertype,typename,addtable From `#@__channeltype` where id='{$channelid}'; "); if (!is_array($cInfos)) { ShowMsg('模型不存在', '-1'); exit; } $arcsta = $cInfos['arcsta']; //禁止访问无权限的模型 if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { ShowMsg('你无权限访问该部分', '-1'); exit; } if ($cid == 0) { $positionname = $cInfos['typename'] . " >> "; } else { $positionname = str_replace($cfg_list_symbol, " >> ", $tl->GetPositionName()) . " >> ";
} ShowMsg("成功删除指定相同IP的所有评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500); exit; } else { if ($job == 'check') { $query = "Update `#@__feedback` set ischeck=1 where id in({$ids}) "; $dsql->ExecuteNoneQuery($query); ShowMsg("成功审核指定评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500); exit; } else { $bgcolor = ''; $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; $aid = isset($aid) && is_numeric($aid) ? $aid : 0; $keyword = !isset($keyword) ? '' : $keyword; $ip = !isset($ip) ? '' : $ip; $tl = new TypeLink($typeid); $openarray = $tl->GetOptionArray($typeid, $admin_catalogs, 0); $addsql = $typeid != 0 ? " And typeid in (" . GetSonIds($typeid) . ")" : ''; $addsql .= $aid != 0 ? " And aid={$aid} " : ''; $addsql .= $ip != '' ? " And ip like '{$ip}' " : ''; $querystring = "select * from `#@__feedback` where msg like '%{$keyword}%' {$addsql} order by dtime desc"; $dlist = new DataListCP(); $dlist->pageSize = 15; $dlist->SetParameter('aid', $aid); $dlist->SetParameter('ip', $ip); $dlist->SetParameter('typeid', $typeid); $dlist->SetParameter('keyword', $keyword); $dlist->SetTemplate(DEDEADMIN . '/templets/feedback_main.htm'); $dlist->SetSource($querystring); $dlist->Display(); }
CheckCatalog($cid,"你无权浏览非指定栏目的内容!"); } }else { $adminid = $cuserLogin->getUserID(); } require_once(dirname(__FILE__)."/../include/inc_typelink.php"); require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php"); require_once(dirname(__FILE__)."/inc/inc_list_functions.php"); setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); //初始化频道信息 //------------------------------------ $seltypeids = 0; //if(empty($cid) && empty($channelid)) $channelid = 1; $tl = new TypeLink($cid); if($cid>0) $channelid = $tl->TypeInfos['channeltype']; $tables = GetChannelTable($tl->dsql,$channelid,'channel'); if($cid>0){ $positionname = str_replace($cfg_list_symbol,">",$tl->GetPositionName()).">"; $seltypeids = $tl->dsql->GetOne("Select ID,typename,channeltype From #@__arctype where ID='$cid' ",MYSQL_ASSOC); } else if($channelid>0){ $row = $tl->dsql->GetOne(" Select typename From #@__channeltype where ID='$channelid' "); $positionname = '所有'.$row[0].">"; }else{ $positionname = ''; } //--------------------------------------- $opall=1;
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET typeid2='{$unittype}' WHERE typeid2='{$typeid}' "); $dsql->ExecuteNoneQuery("UPDATE `#@__addonspec` SET typeid='{$unittype}' WHERE typeid='{$typeid}' "); $dsql->ExecuteNoneQuery("UPDATE `{$addtable}` SET typeid='{$unittype}' WHERE typeid='{$typeid}' "); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctype` WHERE id='{$typeid}' "); UpDateCatCache(); ShowMsg('成功合并指定栏目!', 'catalog_main.php'); exit; } } else { if ($dopost == 'moveCatalog') { CheckPurview('t_Move'); require_once DEDEINC . '/oxwindow.class.php'; require_once DEDEINC . '/typelink.class.php'; require_once DEDEINC . '/channelunit.func.php'; 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>");
} else { if (TestPurview('a_AccList')) { if ($cid == 0) { $ucid = $cid = $cuserLogin->getUserChannel(); } else { CheckCatalog($cid, "你无权浏览非指定栏目的内容!"); } } } $adminid = $cuserLogin->getUserID(); $maintable = '#@__archives'; require_once DEDEINC . "/typelink.class.php"; require_once DEDEINC . "/datalistcp.class.php"; require_once DEDEADMIN . "/inc/inc_list_functions.php"; setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); $tl = new TypeLink($cid); $listtable = trim($tl->TypeInfos['addtable']); if (!empty($channelid) && !empty($ucid) && $tl->TypeInfos['channeltype'] != $channelid) { ShowMsg('你没权限访问此页!', 'javascript:;'); exit; } if ($cid == 0) { $row = $tl->dsql->GetOne("SELECT typename,addtable FROM `#@__channeltype` WHERE id='{$channelid}'"); $positionname = $row['typename'] . " > "; $listtable = $row['addtable']; } else { $positionname = str_replace($cfg_list_symbol, " > ", $tl->GetPositionName()) . " > "; } $optionarr = $tl->GetOptionArray($cid, $admin_catalogs, $channelid); $whereSql = $channelid == 0 ? " WHERE arc.channel < -1 " : " WHERE arc.channel = '{$channelid}' "; if (!empty($mid)) {
{ 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> "; //"------------------------------- //更改子栏目属性 if(!empty($upnext)) { require_once(dirname(__FILE__)."/../include/inc_typelink.php"); $tl = new TypeLink($ID); $slinks = $tl->GetSunID($ID,'###',0); $slinks = str_replace("###.typeid","ID",$slinks); $upquery = " Update #@__arctype set issend='$issend', defaultname='$defaultname', channeltype='$channeltype', tempindex='$tempindex', templist='$templist', temparticle='$temparticle', namerule='$namerule', namerule2='$namerule2', moresite='$moresite', siterefer='$siterefer', sitepath='$sitepath',
CheckCatalog($cid,"你无权浏览非指定栏目的内容!"); } }else { $adminid = $cuserLogin->getUserID(); } require_once(dirname(__FILE__)."/../include/inc_typelink.php"); require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php"); require_once(dirname(__FILE__)."/inc/inc_list_functions.php"); setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); //初始化频道信息 //------------------------------------ $seltypeids = 0; if(empty($cid) && empty($channelid)) $channelid = 1; $tl = new TypeLink($cid); if($cid>0) $channelid = $tl->TypeInfos['channeltype']; $tables = GetChannelTable($tl->dsql,$channelid,'channel'); if($cid==0){ $row = $tl->dsql->GetOne(" Select typename From #@__channeltype where ID='$channelid' "); $positionname = '所有'.$row[0].">"; }else{ $positionname = str_replace($cfg_list_symbol,">",$tl->GetPositionName()).">"; $seltypeids = $tl->dsql->GetOne("Select ID,typename,channeltype From #@__arctype where ID='$cid' ",MYSQL_ASSOC); } //--------------------------------------- if($channelid<-1) $USEListStyle='infos'; $opall=1; if(is_array($seltypeids)){
<?php require_once(dirname(__FILE__)."/config.php"); require_once(dirname(__FILE__)."/../include/inc_typelink.php"); require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php"); require_once(dirname(__FILE__)."/inc/inc_list_functions.php"); setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); if(!isset($cid)) $cid = 0; if(!isset($keyword)) $keyword = ""; if(!isset($channelid)) $channelid = 0; if(!isset($arcrank)) $arcrank = ""; $typeid = $cid; $tl = new TypeLink($cid); $seltypeids = 0; if(!empty($cid)){ $seltypeids = $tl->dsql->GetOne("Select ID,typename,channeltype From #@__arctype where ID='$cid' "); } $opall=1; if(is_array($seltypeids)){ $optionarr = GetTypeidSel('form3','cid','selbt1',$channelid,$seltypeids['ID'],$seltypeids['typename']); }else{ $optionarr = GetTypeidSel('form3','cid','selbt1',$channelid,0,'请选择...'); } if(empty($channelid)) $whereSql = " where arc.channelid != -1 "; else $whereSql = " where arc.channelid = '$channelid' "; if($keyword!=""){
require_once(dirname(__FILE__)."/config.php"); CheckPurview('spec_List'); require_once(dirname(__FILE__)."/../include/inc_typelink.php"); require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php"); require_once(dirname(__FILE__)."/inc/inc_list_functions.php"); setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); if(!isset($cid)) $cid = 0; if(!isset($keyword)) $keyword = ""; if(!isset($channelid)) $channelid = 0; if(!isset($arcrank)) $arcrank = ""; $typeid = $cid; if($cuserLogin->getUserRank()<5) $arcrank = -1; $tl = new TypeLink($cid); $seltypeids = 0; if(!empty($cid)){ $seltypeids = $tl->dsql->GetOne("Select ID,typename,channeltype From #@__arctype where ID='$cid' "); } $opall=1; if(is_array($seltypeids)){ $optionarr = GetTypeidSel('form3','cid','selbt1',0,$seltypeids['ID'],$seltypeids['typename']); }else{ $optionarr = GetTypeidSel('form3','cid','selbt1',0,0,'请选择...'); } $whereSql = " where arcs.channel = -1 "; if($keyword!=""){ $whereSql .= " And (arcs.title like '%$keyword%' Or arcs.writer like '%$keyword%' Or arcs.source like '%$keyword%') ";