/*团购*/ $fielddb = $postCate->getFieldData($pcid, 'one'); if (strpos("," . $foruminfo['pcid'] . ",", "," . $pcid . ",") === false || !$postCate->postcatedb[$pcid]['ifable']) { Showmsg('forum_pc_undefined'); } foreach ($fielddb as $key => $value) { if ($value['threadshow'] == 1) { $threadshowfield[$key] = $value; } } $colspannum = count($threadshowfield) + 2; $initSearchHtml = $postCate->initSearchHtml($pcid); $theSpecialSearchHtml = true; } elseif ($actmid > 0) { /*活动子分类*/ $fielddb = $postActForBbs->getFieldData($actmid, 1); if (strpos("," . $foruminfo['actmids'] . ",", "," . $actmid . ",") === false) { Showmsg('act_model_undefined'); } !$postActForBbs->activitymodeldb[$actmid]['ifable'] && Showmsg('act_model_disabled'); if (!$postActForBbs->activitycatedb[$postActForBbs->activitymodeldb[$actmid]['actid']]['ifable']) { Showmsg('act_cate_disabled'); } $i = $lastViewOrder = 0; $threadColumnName = $threadshowfield = array(); foreach ($fielddb as $key => $value) { if ($value['threadshow'] == 1) { if ($value['vieworder'] != $lastViewOrder || $value['vieworder'] == 0) { $i++; $threadColumnName[$i] = $postActForBbs->getFieldNameOneByName($value['name']); }