//} $menuID = $_pgR['MenuID']; $menuID = global_editor::rteSafe(html_entity_decode($menuID, ENT_COMPAT, 'UTF-8')); $menuName = $_pgR['MenuName']; $menuName = global_editor::rteSafe(html_entity_decode($menuName, ENT_COMPAT, 'UTF-8')); $link = $_pgR['Link']; $link = global_editor::rteSafe(html_entity_decode($link, ENT_COMPAT, 'UTF-8')); $numOrder = $_pgR['NumOrder']; $numOrder = global_editor::rteSafe(html_entity_decode($numOrder, ENT_COMPAT, 'UTF-8')); $level = $_pgR['Level']; $level = global_editor::rteSafe(html_entity_decode($level, ENT_COMPAT, 'UTF-8')); $parentID = $_pgR['ParentID']; $parentID = global_editor::rteSafe(html_entity_decode($parentID, ENT_COMPAT, 'UTF-8')); //$strName = $_pgR['name']; //$strName = global_editor::rteSafe(html_entity_decode($strName,ENT_COMPAT ,'UTF-8' )); $resultID = $objMenu->insert($menuID, $menuName, $link, $numOrder, $level, $parentID); if ($resultID) { $arrHeader = global_common::getMessageHeaderArr($banCode); //$banCode echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, $result), array(0, 1)); return; } else { echo global_common::convertToXML($arrHeader, array("rs", "info"), array(0, "Input data is invalid"), array(0, 1)); return; } } else { echo global_common::convertToXML($arrHeader, array("rs", 'info'), array(0, global_common::STRING_REQUIRE_LOGIN), array(0, 1)); } return; } elseif ($_pgR['act'] == model_Menu::ACT_UPDATE) { if (global_common::isCLogin()) {