$currentPartner = $objPartner->getPartnerByUserID($_SESSION[global_common::SES_C_USERINFO][global_mapping::UserID]); if ($_pgR["aid"]) { //reset partner info $currentPartner = null; $articleID = $_pgR["aid"]; $article = $objArticle->getArticleByID($articleID); $intMode = 1; //edit mode $createBy = $article[global_mapping::CreatedBy]; $currentUserID = $_SESSION[global_common::SES_C_USERINFO][global_mapping::UserID]; if ($createBy != $currentUserID) { global_common::redirectByScript("index.php"); return; } //print_r($article[global_mapping::ArticleID]); $currentTypes = $objArticle->getArticleTypesByID($article[global_mapping::ArticleID]); //print_r($currentTypes); $type = $objArticleType->getArticleTypeByID($currentTypes[0]); $currentParentType = $type[global_mapping::ParentID]; //print_r($currentParentType); $parentTypes = $objArticleType->getAllArticleType(0, null, 'ParentID=0', 'Level'); $allTypes = $objArticleType->getAllArticleType(0, null, 'ParentID=' . $currentParentType, 'Level'); //print_r($allTypes); $addresses = global_common::splitString($article[global_mapping::Addresses], ';'); $districts = global_common::splitString($article[global_mapping::Dictricts], ';'); $cities = global_common::splitString($article[global_mapping::Cities], ';'); //print_r($parentTypes); //$intPage = 1; //$total = 0; //$comments = $objComment->getCommentByArticle($intPage,$total,$articleID,'*','',' CreatedDate DESC'); //print_r($article);