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_Product::ACT_CHANGE_PAGE) { $intPage = $_pgR['p']; $outPutHTML = $objProduct->getListProduct($intPage); echo global_common::convertToXML($strMessageHeader, array('rs', 'inf'), array(1, $outPutHTML), array(0, 1)); return; } elseif ($_pgR['act'] == model_Product::ACT_SHOW_EDIT) { $strProductID = $_pgR['id']; $arrProduct = $objProduct->getProductByID($strProductID); echo global_common::convertToXML($strMessageHeader, array('rs', 'ProductID', 'ProductName', 'CatalogueID', 'ImageLink', 'ManufactoryID', 'PaymentModeID', 'NumberaireID', 'StorageDate', 'Price', 'Amount', 'Description', 'Status'), array(1, 'ProductID', 'ProductName', 'CatalogueID', 'ImageLink', 'ManufactoryID', 'PaymentModeID', 'NumberaireID', 'StorageDate', 'Price', 'Amount', 'Description', 'Status'), array(0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1)); return; } elseif ($_pgR["act"] == model_Product::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 {