function AddInfoVote($classid, $id, $vote) { global $empire, $dbtbpre, $class_r, $public_r; $classid = (int) $classid; $id = (int) $id; if (empty($id) || empty($classid) || !$class_r[$classid]['tbname']) { printerror("NotVote", "history.go(-1)", 1); } $lasttime = getcvar('lastivotetime'); if ($lasttime) { if (time() - $lasttime < $public_r['revotetime']) { printerror("VoteOutTime", "history.go(-1)", 1); } } $pubid = ReturnInfoPubid($classid, $id); $r = $empire->fetch1("select id,voteip,votetext,voteclass,doip,dotime from {$dbtbpre}enewsinfovote where pubid='{$pubid}' limit 1"); if (empty($r['id']) || empty($r['votetext'])) { printerror("NotVote", "history.go(-1)", 1); } $re = DoVote($r, $vote); $sql = $empire->query("update {$dbtbpre}enewsinfovote set votetext='" . addslashes($re['votetext']) . "',voteip='{$re['voteip']}',votenum=votenum+" . $re['votetotal'] . " where pubid='{$pubid}' limit 1"); if ($sql) { esetcookie("lastivotetime", time(), time() + 3600 * 24); //设置最后发表时间 printerror("VoteSuccess", "../public/vote/?classid={$classid}&id={$id}", 1); } else { printerror("DbError", "history.go(-1)", 1); } }
//评分 $infopfennum = 0; $pinfopfen = 0; $url = ReturnZtLink($n_r['ztid']) . " > " . $fun_r[pl]; } else { if (empty($id) || empty($classid)) { printerror("ErrorUrl", "history.go(-1)", 1); } if (empty($class_r[$classid][tbname]) || InfoIsInTable($class_r[$classid][tbname])) { printerror("ErrorUrl", "history.go(-1)", 1); } $n_r = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . " where id='{$id}' limit 1"); if (!$n_r['id'] || $n_r['classid'] != $classid) { printerror("ErrorUrl", "history.go(-1)", 1); } $pubid = ReturnInfoPubid($classid, $id); $search = "&classid={$classid}&id=" . $id; //标题链接 $titleurl = sys_ReturnBqTitleLink($n_r); $title = stripSlashes($n_r[title]); $pagetitle = ehtmlspecialchars($title); //评分 $infopfennum = $n_r['infopfennum']; $pinfopfen = $infopfennum ? round($n_r['infopfen'] / $infopfennum) : 0; $url = ReturnClassLink($n_r[classid]) . " > <a href=" . $titleurl . ">" . $title . "</a> > " . $fun_r[pl]; } //使用模板 $rewritetempid = 0; if ($_GET['tempid']) { $tempid = (int) $_GET['tempid']; $tempnum = $empire->gettotal("select count(*) as total from " . GetTemptb("enewspltemp") . " where tempid='{$tempid}'");
if ($down == 0) { $r = $empire->fetch1("select onclick from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r['onclick'] + 1; if ($_GET['addclick'] == 1) { $usql = $empire->query("update {$dbtbpre}ecms_" . $cr['tbname'] . " set onclick=onclick+1 where id='{$id}' limit 1"); } } elseif ($down == 1) { $r = $empire->fetch1("select totaldown from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r['totaldown']; } elseif ($down == 2) { if ($cr['checkpl']) { $r = $empire->fetch1("select restb from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); if (!$r['restb']) { exit; } $pubid = ReturnInfoPubid(0, $id, $cr['tid']); $shownum = $empire->gettotal("select count(*) as total from {$dbtbpre}enewspl_" . $r['restb'] . " where pubid='{$pubid}' and checked=0"); } else { $r = $empire->fetch1("select plnum from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r['plnum']; } } elseif ($down == 3) { $r = $empire->fetch1("select infopfen,infopfennum from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r[infopfennum] ? round($r[infopfen] / $r[infopfennum]) : 0; } elseif ($down == 4) { $r = $empire->fetch1("select infopfennum from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r['infopfennum']; } elseif ($down == 5) { $r = $empire->fetch1("select diggtop from {$dbtbpre}ecms_" . $cr['tbname'] . " where id='{$id}' limit 1"); $shownum = $r['diggtop']; } elseif ($down == 6) {
function ChangeInfoOtherLink($start,$classid,$from,$retype,$startday,$endday,$startid,$endid,$tbname,$userid,$username){ global $empire,$public_r,$class_r,$fun_r,$dbtbpre; //验证权限 CheckLevel($userid,$username,$classid,"changedata"); $start=(int)$start; $tbname=RepPostVar($tbname); if(empty($tbname)||!eCheckTbname($tbname)) { printerror("ErrorUrl","history.go(-1)"); } //按栏目刷新 $classid=(int)$classid; if($classid) { if(empty($class_r[$classid][islast]))//父栏目 { $where=ReturnClass($class_r[$classid][sonclass]); } else//终极栏目 { $where="classid='$classid'"; } $add1=" and (".$where.")"; } //按ID刷新 if($retype) { $startid=(int)$startid; $endid=(int)$endid; if($endid) { $add1.=" and id>=$startid and id<=$endid"; } } else { $startday=RepPostVar($startday); $endday=RepPostVar($endday); if($startday&&$endday) { $add1.=" and truetime>=".to_time($startday." 00:00:00")." and truetime<=".to_time($endday." 23:59:59"); } } $b=0; $sql=$empire->query("select id,classid,checked from {$dbtbpre}ecms_".$tbname."_index where id>$start".$add1." order by id limit ".$public_r[infolinknum]); while($r=$empire->fetch($sql)) { $b=1; $new_start=$r[id]; //手动相关链接 $pubid=ReturnInfoPubid($r['classid'],$r['id']); $infopr=$empire->fetch1("select diyotherlink from {$dbtbpre}enewsinfovote where pubid='$pubid' limit 1"); if($infopr['diyotherlink']) { continue; } //返回表 $infotb=ReturnInfoMainTbname($tbname,$r['checked']); $infor=$empire->fetch1("select stb,keyboard from ".$infotb." where id='$r[id]' limit 1"); //返回表信息 $infodatatb=ReturnInfoDataTbname($tbname,$r['checked'],$infor['stb']); $newkeyid=GetKeyid($infor[keyboard],$r[classid],$r[id],$class_r[$r[classid]][link_num]); $usql=$empire->query("update ".$infodatatb." set keyid='$newkeyid' where id='$r[id]' limit 1"); } if(empty($b)) { insert_dolog("");//操作日志 printerror("ChangeInfoLinkSuccess",$from); } echo $fun_r[OneChangeInfoLinkSuccess]."(ID:<font color=red><b>".$new_start."</b></font>)<script>self.location.href='ecmscom.php?enews=ChangeInfoOtherLink&tbname=$tbname&classid=$classid&start=$new_start&from=".urlencode($from)."&retype=$retype&startday=$startday&endday=$endday&startid=$startid&endid=$endid".hReturnEcmsHashStrHref(0)."';</script>"; exit(); }
function DoWfInfo($add, $userid, $username) { global $empire, $dbtbpre, $class_r, $emod_r, $lur; $id = (int) $add[id]; $classid = (int) $add[classid]; $doing = (int) $add['doing']; if (!$id || !$classid || !$doing) { printerror('EmptyDoWfInfo', ''); } $wfinfor = $empire->fetch1("select id,checknum,wfid,tid,groupid,userclass,username,checktno from {$dbtbpre}enewswfinfo where id='{$id}' and classid='{$classid}' limit 1"); if (!$wfinfor[id]) { printerror('ErrorUrl', ''); } if ($wfinfor[checktno] == '100' || $wfinfor[checktno] == '101' || $wfinfor[checktno] == '102') { printerror('DoWfInfoOver', ''); } $wfitemr = $empire->fetch1("select tid,wfid,tno,groupid,userclass,username,lztype,tbdo,tddo,tstatus from {$dbtbpre}enewsworkflowitem where tid='{$wfinfor['tid']}'"); if (!(strstr(',' . $wfitemr[groupid] . ',', ',' . $lur[groupid] . ',') || strstr(',' . $wfitemr[userclass] . ',', ',' . $lur[classid] . ',') || strstr(',' . $wfitemr[username] . ',', ',' . $lur[username] . ','))) { printerror("NotDoCheckUserLevel", "history.go(-1)"); } if (!(strstr(',' . $wfinfor[groupid] . ',', ',' . $lur[groupid] . ',') || strstr(',' . $wfinfor[userclass] . ',', ',' . $lur[classid] . ',') || strstr(',' . $wfinfor[username] . ',', ',' . $lur[username] . ','))) { printerror("HaveDoWfInfo", "history.go(-1)"); } $pubid = ReturnInfoPubid($classid, $id); //附加链接参数 $addecmscheck = empty($_POST['ecmscheck']) ? '&ecmscheck=1' : ''; $checktext = ehtmlspecialchars($add[checktext]); if ($doing == 1) { if ($wfitemr[lztype] == 0) { if ($wfitemr['tno'] == '100') { $empire->query("update {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_index set checked=1 where id='{$id}'"); $ar = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_check where id='{$id}'"); //未审核表转换 MoveCheckInfoData($class_r[$classid][tbname], 0, $ar['stb'], "id='{$id}'"); //更新栏目信息数 AddClassInfos($classid, '', '+1'); $empire->query("update {$dbtbpre}enewswfinfo set tstatus='',checktno='100' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $wfitemr[wfid], $wfitemr[tid], $username, $checktext, $wfinfor[checknum], 1); //生成 GetHtml($ar['classid'], $ar['id'], $ar, 1); ListHtml($classid, $fr, 0); } else { $newwfitemr = $empire->fetch1("select tid,wfid,tno,groupid,userclass,username,lztype,tbdo,tddo,tstatus from {$dbtbpre}enewsworkflowitem where wfid='{$wfitemr['wfid']}' and tno>{$wfitemr['tno']} order by tno limit 1"); $empire->query("update {$dbtbpre}enewswfinfo set tid='{$newwfitemr['tid']}',groupid='{$newwfitemr['groupid']}',userclass='{$newwfitemr['userclass']}',username='******'username']}',tstatus='{$newwfitemr['tstatus']}',checktno='0' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $newwfitemr[wfid], $newwfitemr[tid], $username, $checktext, $wfinfor[checknum], 1); } } else { $newgroupid = str_replace(',' . $lur[groupid] . ',', ',', $wfinfor[groupid]); $newuserclass = str_replace(',' . $lur[classid] . ',', ',', $wfinfor[userclass]); $newusername = str_replace(',' . $lur[username] . ',', ',', $wfinfor[username]); //下一个节点 if (($newgroupid == '' || $newgroupid == ',') && ($newuserclass == '' || $newuserclass == ',') && ($newusername == '' || $newusername == ',')) { if ($wfitemr['tno'] == '100') { $empire->query("update {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_index set checked=1 where id='{$id}'"); $ar = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_check where id='{$id}'"); //未审核表转换 MoveCheckInfoData($class_r[$classid][tbname], 0, $ar['stb'], "id='{$id}'"); //更新栏目信息数 AddClassInfos($classid, '', '+1'); $empire->query("update {$dbtbpre}enewswfinfo set tstatus='',checktno='100' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $wfitemr[wfid], $wfitemr[tid], $username, $checktext, $wfinfor[checknum], 1); //生成 GetHtml($ar['classid'], $ar['id'], $ar, 1); ListHtml($classid, $fr, 0); } else { $newwfitemr = $empire->fetch1("select tid,wfid,tno,groupid,userclass,username,lztype,tbdo,tddo,tstatus from {$dbtbpre}enewsworkflowitem where wfid='{$wfitemr['wfid']}' and tno>{$wfitemr['tno']} order by tno limit 1"); $empire->query("update {$dbtbpre}enewswfinfo set tid='{$newwfitemr['tid']}',groupid='{$newwfitemr['groupid']}',userclass='{$newwfitemr['userclass']}',username='******'username']}',tstatus='{$newwfitemr['tstatus']}',checktno='0' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $newwfitemr[wfid], $newwfitemr[tid], $username, $checktext, $wfinfor[checknum], 1); } } else { $empire->query("update {$dbtbpre}enewswfinfo set groupid='{$newgroupid}',userclass='{$newuserclass}',username='******' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $wfitemr[wfid], $wfitemr[tid], $username, $checktext, $wfinfor[checknum], 1); } } $mess = 'DoWfInfoCkSuccess'; } elseif ($doing == 2) { if (empty($checktext)) { printerror('EmptyChecktext', 'history.go(-1)'); } if ($wfitemr[tbdo] == 0) { $empire->query("update {$dbtbpre}enewswfinfo set tid=0,tstatus='',checktno='101' where id='{$id}' and classid='{$classid}' limit 1"); } else { $newwfitemr = $empire->fetch1("select tid,wfid,tno,groupid,userclass,username,lztype,tbdo,tddo,tstatus from {$dbtbpre}enewsworkflowitem where wfid='{$wfitemr['wfid']}' and tid='{$wfitemr['tbdo']}' limit 1"); $empire->query("update {$dbtbpre}enewswfinfo set tid='{$newwfitemr['tid']}',groupid='{$newwfitemr['groupid']}',userclass='{$newwfitemr['userclass']}',username='******'username']}',tstatus='{$newwfitemr['tstatus']}',checktno='101' where id='{$id}' and classid='{$classid}' limit 1"); } //日志 InsertWfLog($classid, $id, $wfitemr[wfid], $wfitemr[tid], $username, $checktext, $wfinfor[checknum], 2); $mess = 'DoWfInfoTbSuccess'; } else { if (empty($checktext)) { printerror('EmptyChecktext', 'history.go(-1)'); } $empire->query("update {$dbtbpre}enewswfinfo set tid=0,tstatus='',checktno='102' where id='{$id}' and classid='{$classid}' limit 1"); //日志 InsertWfLog($classid, $id, $wfitemr[wfid], $wfitemr[tid], $username, $checktext, $wfinfor[checknum], 3); if ($wfitemr[tddo]) { $index_r = $empire->fetch1("select checked from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . "_index where id='{$id}' limit 1"); //返回表 $infotb = ReturnInfoMainTbname($class_r[$classid][tbname], $index_r['checked']); $r = $empire->fetch1("select * from " . $infotb . " where id='{$id}' limit 1"); $mid = $class_r[$classid][modid]; $tbname = $class_r[$classid][tbname]; $pf = $emod_r[$mid]['pagef']; $stf = $emod_r[$mid]['savetxtf']; //返回表信息 $infotbr = ReturnInfoTbname($class_r[$classid][tbname], $index_r['checked'], $r['stb']); //分页字段 if ($pf) { if (strstr($emod_r[$mid]['tbdataf'], ',' . $pf . ',')) { $finfor = $empire->fetch1("select " . $pf . " from " . $infotbr['datatbname'] . " where id='{$id}' limit 1"); $r[$pf] = $finfor[$pf]; } } //存文本 if ($stf) { $newstextfile = $r[$stf]; $r[$stf] = GetTxtFieldText($r[$stf]); DelTxtFieldText($newstextfile); //删除文件 } DelNewsFile($r[filename], $r[newspath], $classid, $r[$pf], $r[groupid]); //删除信息文件 $empire->query("delete from {$dbtbpre}ecms_" . $tbname . "_index where id='{$id}'"); $sql = $empire->query("delete from " . $infotbr['tbname'] . " where id='{$id}'"); $fsql = $empire->query("delete from " . $infotbr['datatbname'] . " where id='{$id}'"); //更新栏目信息数 AddClassInfos($r[classid], '-1', '-1', $index_r['checked']); //删除其它表记录与附件 DelSingleInfoOtherData($r['classid'], $id, $r, 0, 0); } $mess = 'DoWfInfoTdSuccess'; $isclose = 1; } //操作日志 insert_dolog("classid={$classid}&id={$id}", $pubid); printerror($mess, "workflow/DoWfInfo.php?classid={$classid}&id={$id}&isclose={$isclose}" . hReturnEcmsHashStrHref2(0)); }
function DoForPl($add) { global $empire, $dbtbpre, $class_r; $classid = (int) $add['classid']; $id = (int) $add['id']; $plid = (int) $add['plid']; $dopl = (int) $add['dopl']; $doajax = (int) $add['doajax']; //专题 $doaction = $add['doaction']; if ($doaction == 'dozt') { if (!$classid || !$plid) { $doajax == 1 ? ajax_printerror('', '', 'ErrorUrl', 1) : printerror('ErrorUrl', '', 1); } $infor = $empire->fetch1("select ztid,restb from {$dbtbpre}enewszt where ztid='{$classid}'"); if (!$infor['ztid']) { $doajax == 1 ? ajax_printerror('', '', 'ErrorUrl', 1) : printerror('ErrorUrl', '', 1); } $pubid = '-' . $classid; } else { if (!$classid || !$id || !$plid || !$class_r[$classid][tbname]) { $doajax == 1 ? ajax_printerror('', '', 'ErrorUrl', 1) : printerror('ErrorUrl', '', 1); } $infor = $empire->fetch1("select classid,restb from {$dbtbpre}ecms_" . $class_r[$classid][tbname] . " where id='{$id}' limit 1"); if (!$infor['classid']) { $doajax == 1 ? ajax_printerror('', '', 'ErrorUrl', 1) : printerror('ErrorUrl', '', 1); } $pubid = ReturnInfoPubid($classid, $id); } //连续发表 if (getcvar('lastforplid' . $plid)) { $doajax == 1 ? ajax_printerror('', '', 'ReDoForPl', 1) : printerror('ReDoForPl', '', 1); } if ($dopl == 1) { $f = 'zcnum'; $msg = 'DoForPlGSuccess'; } else { $f = 'fdnum'; $msg = 'DoForPlBSuccess'; } $sql = $empire->query("update {$dbtbpre}enewspl_" . $infor['restb'] . " set " . $f . "=" . $f . "+1 where plid='{$plid}' and pubid='{$pubid}'"); if ($sql) { esetcookie('lastforplid' . $plid, $plid, time() + 30 * 24 * 3600); //最后发布 if ($doajax == 1) { $nr = $empire->fetch1("select " . $f . " from {$dbtbpre}enewspl_" . $infor['restb'] . " where plid='{$plid}' and pubid='{$pubid}'"); ajax_printerror($nr[$f], $add['ajaxarea'], $msg, 1); } else { printerror($msg, $_SERVER['HTTP_REFERER'], 1); } } else { $doajax == 1 ? ajax_printerror('', '', 'DbError', 1) : printerror('DbError', '', 1); } }
function GetMySmallImg($classid, $no, $insertfile, $filepath, $yname, $maxwidth, $maxheight, $name, $id, $cjid, $userid, $username, $modtype = 0, $fstb = 1) { global $empire, $dbtbpre, $public_r, $efileftp_fr; if (empty($yname)) { return ""; } $no = "[s]" . $no; $maxwidth = (int) $maxwidth; $maxheight = (int) $maxheight; $filer = ResizeImage($yname, $name, $maxwidth, $maxheight, $public_r['spickill']); if ($filer['file']) { $insertfile = "small" . $insertfile . $filer['filetype']; $filesize = @filesize($filer['file']); //写入数据库 $pubid = 0; if ($id && !$cjid) { $pubid = ReturnInfoPubid($classid, $id); } //变量处理 $filesize = (int) $filesize; $classid = (int) $classid; $id = (int) $id; $cjid = (int) $cjid; eInsertFileTable($insertfile, $filesize, $filepath, $username, $classid, $no, 1, $id, $cjid, $public_r[fpath], $pubid, $modtype, $fstb); //FileServer if ($public_r['openfileserver']) { $efileftp_fr[] = $name . $filer['filetype']; } } return $filer; }
function UpdateSingleInfoPlnum($classid, $id, $checked = 1) { global $empire, $dbtbpre, $class_r; $tbname = $class_r[$classid]['tbname']; if (empty($tbname)) { return ''; } $infotb = ReturnInfoMainTbname($tbname, $checked); $r = $empire->fetch1("select id,restb,plnum from " . $infotb . " where id='{$id}' limit 1"); if (empty($r['restb'])) { return ''; } $pubid = ReturnInfoPubid($classid, $id); $plnum = $empire->gettotal("select count(*) as total from {$dbtbpre}enewspl_" . $r['restb'] . " where pubid='{$pubid}' limit 1"); if ($plnum == $r['plnum']) { return ''; } $empire->query("update " . $infotb . " set plnum='{$plnum}' where id='{$id}' limit 1"); }
function DoAutoUpAndDownInfo() { global $empire, $dbtbpre, $class_r, $emod_r, $public_r; $todaytime = time(); $sql = $empire->query("select id,classid,infouptime,infodowntime from {$dbtbpre}enewsinfovote where infouptime>0 or infodowntime>0"); while ($r = $empire->fetch($sql)) { if (!$class_r[$r[classid]]['tbname']) { continue; } //上线 if ($r['infouptime'] && $r['infouptime'] <= $todaytime) { $infor = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$r[classid]][tbname] . "_check where id='{$r['id']}' limit 1"); if (!$infor['id']) { continue; } //签发 if ($infor['isqf']) { $qfr = $empire->fetch1("select checktno from {$dbtbpre}enewswfinfo where id='{$r['id']}' and classid='{$r['classid']}' limit 1"); if ($qfr['checktno'] != '100') { continue; } } $empire->query("update {$dbtbpre}ecms_" . $class_r[$r[classid]][tbname] . "_index set checked=1 where id='{$r['id']}' limit 1"); $pubid = ReturnInfoPubid($r['classid'], $r['id']); $empire->query("update {$dbtbpre}enewsinfovote set infouptime=0 where pubid='{$pubid}' limit 1"); //互转 MoveCheckInfoData($class_r[$r[classid]][tbname], 0, $infor['stb'], "id='{$r['id']}'"); AddClassInfos($r['classid'], '', '+1'); //刷新信息 GetHtml($infor['classid'], $infor['id'], $infor, 1); //刷新列表 ReListHtml($r[classid], 1); } //下线 if ($r['infodowntime'] && $r['infodowntime'] <= $todaytime) { $mid = $class_r[$r[classid]][modid]; $tbname = $class_r[$r[classid]][tbname]; $pf = $emod_r[$mid]['pagef']; $stf = $emod_r[$mid]['savetxtf']; //主表 $infor = $empire->fetch1("select * from {$dbtbpre}ecms_" . $class_r[$r[classid]][tbname] . " where id='" . $r[id] . "' limit 1"); if (!$infor['id']) { continue; } //签发 if ($infor['isqf']) { $qfr = $empire->fetch1("select checktno from {$dbtbpre}enewswfinfo where id='{$r['id']}' and classid='{$r['classid']}' limit 1"); if ($qfr['checktno'] != '100') { continue; } } //分页字段 if ($pf) { if (strstr($emod_r[$mid]['tbdataf'], ',' . $pf . ',')) { $finfor = $empire->fetch1("select " . $pf . " from {$dbtbpre}ecms_" . $tbname . "_data_" . $infor[stb] . " where id='{$r['id']}' limit 1"); $infor[$pf] = $finfor[$pf]; } if ($stf && $stf == $pf) { $infor[$pf] = GetTxtFieldText($infor[$pf]); } } DelNewsFile($infor[filename], $infor[newspath], $infor[classid], $infor[$pf], $infor[groupid]); $empire->query("update {$dbtbpre}ecms_" . $class_r[$r[classid]][tbname] . "_index set checked=0,havehtml=0 where id='{$r['id']}' limit 1"); $pubid = ReturnInfoPubid($r['classid'], $r['id']); $empire->query("update {$dbtbpre}enewsinfovote set infodowntime=0 where pubid='{$pubid}' limit 1"); //互转 MoveCheckInfoData($class_r[$r[classid]][tbname], 1, $infor['stb'], "id='{$r['id']}'"); AddClassInfos($r['classid'], '', '-1'); //刷新列表 ReListHtml($r[classid], 1); } } }