} $arrTypeList = $objWebInit->formatTypeList(0, $arrTypeList); $arrMOutput["smarty_assign"]['type_id'] = $id; $arrMOutput["smarty_assign"]['arrType'] = $arrType; $arrMOutput["smarty_assign"]['arrData'] = $arrTypeList; $arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'edit_category.htm'; $objWebInit->output($arrMOutput); break; // 更新课程培训类别 // 更新课程培训类别 case 'update': if (empty($_POST['type_title'])) { check::AlertExit("错误:提交数据为空!", -1); } if (!empty($_POST['type_link'])) { $_POST['type_link'] = str_replace("http://", "", strtolower($_POST['type_link'])); } $objWebInit->makeUpdateType($_POST); unset($_GET['action']); break; } } if (!isset($_GET['action'])) { // 课程培训类型列表 $arrTypeList = $objWebInit->getTypeList(); $arrTypeList = $objWebInit->formatTypeList(0, $arrTypeList); // 输出到模板 $arrMOutput["smarty_assign"]['arrData'] = $arrTypeList; $arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'category.htm'; $objWebInit->output($arrMOutput); }