Ejemplo n.º 1
0
        return;
    } else {
        echo global_common::convertToXML($arrHeader, array("rs", 'inf'), array(0, 'Kh?ng c? nh?m h?ng'), array(0, 0));
        return;
    }
} elseif ($_pgR['act'] == model_AdType::ACT_DELETE) {
    $IDName = "menu_id";
    $contentID = $_pgR["id"];
    $strTableName = user_menu::TBL_T_MENU;
    $result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection);
    if ($result) {
        $IDName = "content_id";
        $strTableName = user_faq::TBL_T_FAQ;
        $result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection);
    }
    $arrHeader = global_common::getMessageHeaderArr($banCode = 0, 0);
    $arrKey = array("rs", "id");
    $arrValue = array($result ? 1 : 0, $contentID);
    $arrIsMetaData = array(0, 1);
    echo global_common::convertToXML($arrHeader, $arrKey, $arrValue, $arrIsMetaData);
    return;
}
?>

<?php 
include_once 'include/_admin_header.inc';
include_once 'include/_admin_menu.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('sela_AdType.js');
?>