return; } elseif ($_pgR['act'] == model_Menu::ACT_CHANGE_PAGE) { $intPage = $_pgR['p']; $outPutHTML = $objMenu->getListMenu($intPage); echo global_common::convertToXML($strMessageHeader, array('rs', 'inf'), array(1, $outPutHTML), array(0, 1)); return; } elseif ($_pgR['act'] == model_Menu::ACT_SHOW_EDIT) { $strMenuID = $_pgR['id']; $arrMenu = $objMenu->getMenuByID($strMenuID); echo global_common::convertToXML($strMessageHeader, array('rs', 'MenuID', 'MenuName', 'Link', 'NumOrder', 'Level', 'ParentID'), array(1, 'MenuID', 'MenuName', 'Link', 'NumOrder', 'Level', 'ParentID'), array(0, 1, 1, 1, 0, 0, 1)); return; } elseif ($_pgR["act"] == model_Menu::ACT_GET) { $sectionID = $_pgR["sect"]; $arrSection = $objMenu->getAllMenuBySection($sectionID); if ($arrSection) { $strHTML = $objMenu->outputHTMLMenu($arrSection); echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, $strHTML), array(0, 1)); return; } else { echo global_common::convertToXML($arrHeader, array("rs", 'inf'), array(0, 'Kh?ng c? nh?m h?ng'), array(0, 0)); return; } } elseif ($_pgR['act'] == model_Menu::ACT_DELETE) { $IDName = "menu_id"; $contentID = $_pgR["id"]; $strTableName = user_menu::TBL_T_MENU; $result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection); if ($result) { $IDName = "content_id"; $strTableName = user_faq::TBL_T_FAQ; $result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection);