//l?y th?ng tin user //$c_userInfo = $_SESSION[consts::SES_C_USERINFO]; $cityID = $_pgR['CityID']; $cityID = global_editor::rteSafe(html_entity_decode($cityID, ENT_COMPAT, 'UTF-8')); $cityName = $_pgR['CityName']; $cityName = global_editor::rteSafe(html_entity_decode($cityName, ENT_COMPAT, 'UTF-8')); $status = $_pgR['Status']; $status = global_editor::rteSafe(html_entity_decode($status, ENT_COMPAT, 'UTF-8')); //$checkProduct = $objMenu->getMenuByName($_pgR['name']); //if ($checkProduct && $checkProduct['menu_id']!= $strID) { // echo global_common::convertToXML($arrHeader, array("rs",'info'), array(0,global_common::STRING_NAME_EXIST), array(0,1)); // return; //} //$strName = $_pgR['name']; //$strDetail= $_pgR['detail']; $resultID = $objCity->update($cityID, $cityName, $status); 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"), array(0), array(0)); 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_City::ACT_CHANGE_PAGE) { $intPage = $_pgR['p'];