/*--------------------------//取消审核文档function checkArchives1() { }---------------------------*/else if($dopost=="checkArchives1"){ CheckPurvIEw('a_Check,a_AccCheck,sys_ArcBatch'); require_once(DEDEadmin."/inc/inc_archives_functions.PHP"); if( !empty($aID) && empty($qstr) ) { $qstr = $aID; } if($qstr=='') { ShowMsg("参数无效!",$ENV_GOBACK_URL); exit(); } $arcIDs = ereg_replace('[^0-9,]','',ereg_replace('`',',$qstr)); $query = "Select arc.ID,arc.typeID,ch.issystem,ch.maintable,ch.addtable From `dede_arctiny` arc left join `dede_arctype` tp on tp.ID=arc.typeID left join `dede_channeltype` ch on ch.ID=tp.channeltype where arc.ID in($arcIDs) "; $dsql->Setquery($query); $dsql->Execute('ckall'); while($row = $dsql->GetArray('ckall')) { $aID = $row['ID']; //print_r($row); $maintable = ( trim($row['maintable'])=='' ? 'dede_archives' : trim($row['maintable']) ); $dsql->ExecuteNonequery("Update `dede_arctiny` set arcrank='-1' where ID='$aID' "); if($row['issystem']==-1) { $dsql->ExecuteNonequery("Update `".trim($row['addtable'])."` set arcrank='-1' where aID='$aID' "); } else { $dsql->ExecuteNonequery("Update `$maintable` set arcrank='-1' where ID='$aID' "); } $pageurl = MakeArt($aID,false); } ShowMsg("成功审核指定的文档!",$ENV_GOBACK_URL); exit();} | @H_301_30@
以下为引用的内容:function checkArc(aID){ var qstr=getCheckBoxItem(); if(aID==0) aID = getoneItem(); location="archives_do.PHP?aID="+aID+"&dopost=checkArchives&qstr="+qstr;} | @H_301_30@
function checkArc1(aID){ var qstr=getCheckBoxItem(); if(aID==0) aID = getoneItem(); location="archives_do.PHP?aID="+aID+"&dopost=checkArchives1&qstr="+qstr;} | @H_301_30@
href="JavaScript:checkArc(0)" > 审核 | @H_301_30@
总结
以上是内存溢出为你收集整理的DedeCMS批量取消审核文档的实现方法全部内容,希望文章能够帮你解决DedeCMS批量取消审核文档的实现方法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)