S::gp(array('step', 'oid')); $tids = array(); !S::isArray($tidarray) && ($tidarray = explode(',', $overprinttids)); foreach ($tidarray as $value) { $value = (int) $value; if ($value < 1) { continue; } $tids[] = $value; } !S::isArray($tids) && Showmsg('请选择要操作的帖子'); if ($step == 2) { $oid = intval($oid); $oid < 0 && defined('AJAX') && Showmsg('数据有误,请重试'); foreach ($tids as $tid) { overPrint(1, $tid, '', $oid); } Perf::gatherInfo('changeThreadWithThreadIds', array('tid' => $tids)); defined('AJAX') && Showmsg('operate_success'); refreshto("thread.php?fid={$fid}{$viewbbs}&search=all", 'operate_success'); } $overPrintService = L::loadclass("overprint", 'forum'); if (defined('AJAX')) { echo $overPrintService->getMultiUnRelatedsHTML($fid, $tids); footer(); } $overPrintContent = $overPrintService->getMultiUnRelatedsHTMLWithoutDiv($fid, $tids); require_once PrintEot($template); footer(); } function showOverPrint($overprint, $tid, $operate, $status = 1, $nextto = '', $message = '', $oid = '-1')
$t_typedb = array_unique($t_typedb); foreach ($t_typedb as $key => $value) { $value && ($tcoptions .= '<option value="' . $key . '">' . $value . '</option>'); } } echo $tcoptions; exit; } elseif ($action == 'overprint') { InitGP(array('step', 'oid')); if ($step == 2) { $oid = intval($oid); $seltid = intval($seltid); if ($oid < 0 || $seltid < 1) { defined('AJAX') && showOverPrint(1, $seltid, '', 0, '', "数据有误,请重试"); } overPrint(1, $seltid, '', $oid); $threads = L::loadClass('Threads'); $threads->delThreads($seltid); defined('AJAX') && showOverPrint(1, $seltid, '', 1, '', "恭喜,设置印戳完成", $oid); } $overPrintService = L::loadclass("overprint"); echo $overPrintService->getunRelatedsHTML($fid, $seltid); footer(); } function showOverPrint($overprint, $tid, $operate, $status = 1, $nextto = '', $message = '', $oid = '-1') { if (!in_array($overprint, array(1, 2))) { return false; } if (!$status) { Showmsg($message);