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_ArticleType::ACT_GET_ALL) { $types = $objArticleType->getAllArticleType(0); echo json_encode($types); 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) { $strArticleID = $_pgR['id']; $arrArticle = $objArticle->getArticleByID($strArticleID); echo global_common::convertToXML($strMessageHeader, array('rs', 'ArticleID', 'Prefix', 'Title', 'FileName', 'ArticleType', 'Content', 'NotificationType', 'Tags', 'CatalogueID', 'SectionID', 'NumView', 'NumComment', 'Status', 'comments', 'RenewedDate', 'RenewedNum'), array(1, 'ArticleID', 'Prefix', 'Title', 'FileName', 'ArticleType', 'Content', 'NotificationType', 'Tags', 'CatalogueID', 'SectionID', 'NumView', 'NumComment', 'Status', 'comments', 'RenewedDate', 'RenewedNum'), array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0)); return; } elseif ($_pgR["act"] == model_Article::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 {
</tr> </tbody> </table> </div> <div class="div_admin_group_content_inside" style="margin: 4px; display: block;" align="center"> <input type="checkbox" /> <input id="btnOK" value="OK" style="width: 50px;" onClick="_objArticle.btnSave_OnClick()" type="button" class="btn btn-oliver"> <input id="btnClose" value="Cancel" align="center" style="width: 65px;" onClick="_objArticle.showAddMode()" type="button" class="btn btn-oliver"> </div> </div> </center> <!--End Form Input --> <div id="content-admin" > <div align="center"> <h2>Danh s?ch</h2> </div> <div id="list-content" style="padding:10px"> <?php echo $objArticle->getListArticle(1); ?> </div> </div> <?php //footer include_once 'include/_admin_footer.inc';