Exemple #1
0
        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_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 {