$articleID = $_pgR['id']; $isActivate = $_pgR['isactivate']; $result = $objArticle->activeArticle($articleID, $isActivate); if ($result) { $arrHeader = global_common::getMessageHeaderArr($banCode); //$banCode echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, ($isActivate ? 'Xóa' : 'Deactivate') . ' thành công'), array(0, 1)); return; } else { echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, ($isActivate ? 'Xóa' : 'Deactivate') . ' unsuccessfully'), array(0, 1)); return; } } elseif ($_pgR['act'] == Model_Article::ACT_REFRESH) { $articleID = $_pgR['id']; $c_userInfo = $_SESSION[global_common::SES_C_USERINFO]; $result = $objArticle->refreshArticle($articleID, $c_userInfo); if ($result >= 0) { $arrHeader = global_common::getMessageHeaderArr($banCode); //$banCode echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, 'Bạn còn ' . $result . ' lần làm mới trong ngày'), array(0, 1)); return; } else { echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, 'Bạn đã sử dụng hết ' . Model_Article::NUM_REFRESH . ' lần làm mới trong ngày'), array(0, 1)); return; } } elseif ($_pgR['act'] == model_Article::ACT_CHANGE_PAGE) { $intPage = $_pgR['p']; $outPutHTML = $objArticle->getListArticle($intPage); echo global_common::convertToXML($strMessageHeader, array('rs', 'inf'), array(1, $outPutHTML), array(0, 1)); return; } elseif ($_pgR['act'] == model_Article::ACT_SHOW_EDIT) {