unset($arrData['COUNT_ROWS']); // 取类别标题 if (is_array($arrMType) && !empty($arrMType)) { foreach ($arrData as $k => $data) { foreach ($arrMType as $k1 => $type) { if ($data['type_id'] == $k1) { $arrData[$k]['type_title'] = $type; } } } } else { $arrType = $objWebInit->getTypeList(); foreach ($arrData as $k => $data) { foreach ($arrType as $k1 => $type) { if ($data['type_id'] == $type['type_id']) { $arrData[$k]['type_title'] = $type['type_title']; } } } // 资讯类别 $arrMType = $objWebInit->formatTypeList(0, $arrType); } // 输出到模板 $arrMOutput["template_file"] = "admin.html"; $arrMOutput["smarty_assign"]['FileCallPath'] = $arrGPic['FileCallPath']; $arrMOutput["smarty_assign"]['arrType'] = $arrMType; $arrMOutput["smarty_assign"]['arrData'] = $arrData; $arrMOutput["smarty_assign"]['strPage'] = $strPage; $arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'index.htm'; $objWebInit->output($arrMOutput);