server['cgi_host'] = HOST; $sql->server['cgi_user'] = USER; $sql->server['cgi_pass'] = PASS; $sql->server['cgi_database'] = NAME; $sql->connect_to_db(); $m = array() ; require PATH."counter.php"; //global $library; //$library = new library_functions; //connect(0); global $db; $db = new connect_server(); $parent = new pubclass($sql, $parent_id, '', ''); require PATH."view/objects/parent_cat.class.php"; $parent_cat = new parent_cat(); //# Banner advertising require PATH."view/objects/banner.php"; $banner = new banner(); //header $showBannerHeader = $banner->getBannerByCatID("vietnam","header01",1,733,150); //menu left $showBannerLeft1 = $banner->getBannerByCatID("vietnam","left01",1,img_width_bannerLeft,img_height_bannerLeft); $showBannerLeft2 = $banner->getBannerByCatID("vietnam","left02",1,img_width_bannerLeft,img_height_bannerLeft); $showBannerLeft3 = $banner->getBannerByCatID("vietnam","left03",1,img_width_bannerLeft,img_height_bannerLeft); //menu right $showBannerRight1 = $banner->getBannerByCatID("vietnam","right01",1,img_width_bannerRight,img_height_bannerRight); $showBannerRight2 = $banner->getBannerByCatID("vietnam","right02",1,img_width_bannerRight,img_height_bannerRight); $showBannerRight3 = $banner->getBannerByCatID("vietnam","right03",1,img_width_bannerRight,img_height_bannerRight); $showBannerRight4 = $banner->getBannerByCatID("vietnam","right04",1,img_width_bannerRight,img_height_bannerRight); $showBannerRight5 = $banner->getBannerByCatID("vietnam","right05",1,img_width_bannerRight,img_height_bannerRight); //session_register('parent_cat'); $_SESSION['parent_cat'] = $parent_id; //# menu left $showMenuLeft = '
'; $display = ($parent_id=='gt0011') ? '' : 'none'; $showMenuLeft .='
'.$parent_cat->getCategoryByID('news_vn',$parent_id) : '';
//$titleCateegoryName .= ($parent_cat->getChildNameByID('news_vn',$parent_id,$child_id)) ? '
'.$parent_cat->getChildNameByID('news_vn',$parent_id,$child_id) : '';
$titleCateegoryName = '
'.$language[$_SESSION['lang']]['namhouse_trade'];
require PATH."view/objects/news.class.php";
$news = new news();
//# Show feature menu left
$cFeature = $parent->getChildCat("parent_id='gt0017'"); //Thiết kế kiến trúc
$arrFeatures= $sql->getListByColum('news_id,child_id,news_title,news_smallimg,news_bigimg,news_new',$news, "parent_id='gt0017' AND child_id='".$cFeature["child_id"][0]."' AND news_active=1 ORDER BY news_dateadd DESC LIMIT 2,6");
$showFeatures = '| '.$linkdetail.$l.$img.' | '.$linkdetail.$cutString.'';
if($f->news_new==1) $showFeatures .=' ';
$showFeatures .=''.$linkdetail.' ![]() |