assign('URL', $Likelink); $xtpl->assign('TIEUDE', $title); $xtpl->assign('KEYWORD', $keyword); $xtpl->assign('DESCRIPTION', $description); $xtpl->assign('WEBLINK', $weblink); $xtpl->assign('LOGO', $logo); $xtpl->assign('THEH1', $theh1); $xtpl->assign('RATING', $rating); $xtpl->assign('NUM', $num); $xtpl->assign('FACEBOOKID', $aDta_config[0]['FacebookId']); $xtpl->assign('FACEBOOKAPP', $aDta_config[0]['FacebookApp']); //$xtpl->assign('HOTRO', $aDta_config[0]['Hotro']); $xtpl->assign('GIOLAM', $aDta_config[0]['Giolam']); //$xtpl->assign('CODE', $aDta_config[0]['Code']); //$xtpl->assign('BOTTOM', $aDta_config[0]['Bottom']); $xtpl->assign('FOOTER', $aDta_config[0]['Footer' . $_SESSION['lang']]); $xtpl->assign('HOTLINE', $aDta_config[0]['Hotline']); $xtpl->assign('HOTLINECALL',layso($aDta_config[0]['Hotline'])); $xtpl->assign('TUKHOA', '

Tag từ khoá

' . $aDta_config[0]['Tukhoa'] . '
'); $email = explode(',', $aDta_config[0]['Email']); $xtpl->assign('EMAIL', $email[0]); $xtpl->assign('DIACHI', removedir($aDta_config[0]['Home'])); //$xtpl->assign('SOCIAL', removedir($aDta_config[0]['Social'])); $xtpl->assign('SLOGAN', removedir($aDta_config[0]['Slogan'])); $xtpl->assign('WEBSITE', $weblink); $xtpl->assign('COPYRIGHT', $aDta_config[0]['Copyright']); $xtpl->assign('THANHTOAN', removedir($aDta_config[0]['Thanhtoan'])); $xtpl->assign('FACEBOOKBOX', getfacebox($aDta_config[0]['Facebook'])); //echo $aDta_config[0]['Facebook']; $xtpl->assign('CHUNGNHAN', $lang_chungnhan); ($aDta_config[0]['Youtube'] != "") ? $xtpl->assign('YOUTUBE', '') : $xtpl->assign('YOUTUBE', ''); $xtpl->assign('VIEWPORT', $viewport); $xtpl->assign('SIZEHTML', $sizehtml); $xtpl->assign('MWIDTH', $mwidth); $xtpl->assign('MOBILECSS', $mobilecss); // Gán biến $sosphome = $aDta_config[0]['Sosphome']; $sosp = $aDta_config[0]['Sosp']; $sosptin = $aDta_config[0]['Sosptin']; //unset($_SESSION['cartsave']); //$aDta_sanpham=$dta_sanpham->select('','dta_mcat','ProId',"Trangthai=1 and Kieu=1 and CatId IN ('2','3','4','64','70','71')",'Vitri desc','0,100','F.Id'); //echo count($aDta_sanpham); die; //$aDta_sanpham=$dta_sanpham->select('',$listtable,'ProId','Trangthai=1 and Kieu=1'.$keyLoaisp,$dksort,'0,'.testslsp($aDta_loaisp[$a]['Count']),'F.Id'); // Mobile include "include/mobile.php"; if ($mobile_browser > 0 and $mobileshow == 1) { // mobile $menumobile = '' . $lang_titmenu . ''; $xtpl->assign('MOBILEICON', '
' . $menumobile . '
'); include "components/menumobile/menumobile.php"; $xtpl->assign('MENUMOBILE', $HTMLMenumobile); /* include "components/menutop/menutop.php"; $xtpl->assign('MENUTOP', $HTMLMenutop);*/ include "components/menubot/menubot.php"; $xtpl->assign('MENUBOT', $HTMLMenubot); include "components/linemenu/linemenu.php"; $xtpl->assign('LINEMENU', $HTMLLinemenu); include "components/timkiem/timkiem.php"; $xtpl->assign('TIMKIEM', $HTMLTimkiem); include "components/giohang/giohang.php"; $xtpl->assign('GIOHANG', $HTMLGiohang); include "components/leftmenu/leftmenu.php"; $xtpl->assign('LEFTMENU', $HTMLLeftmenu); //include "components/spnoibat/spnoibat.php"; //$xtpl->assign('SPNOIBAT', $HTMLSpnoibat); include "components/logothuonghieu/logothuonghieu.php"; $xtpl->assign('LOGOTHUONGHIEU', '
' . $HTMLLogothuonghieu . '
'); //$xtpl->assign('CSSMOBILE', ' '); //$xtpl->assign('JSMOBILE', ''); include "components/menutuchon/menutuchon.php"; $xtpl->assign('MENUTUCHON',$HTMLMenutuchon); } else { //include "components/menubottom/menubottom.php"; $xtpl->assign('MENUBOTTOM',$HTMLMenubottom); include "components/menutuchon/menutuchon.php"; $xtpl->assign('MENUTUCHON',$HTMLMenutuchon); include "components/giohang/giohang.php"; $xtpl->assign('GIOHANG', $HTMLGiohang); include "components/thuonghieu/thuonghieu.php"; $xtpl->assign('THUONGHIEU', $HTMLThuonghieu); //$xtpl->assign('CSSMOBILE', ' '); //$xtpl->assign('JSMOBILE', ''); //include "components/dangnhap/dangnhap.php"; $xtpl->assign('DANGNHAP',$HTMLDangnhap); include "components/menutop/menutop.php"; $xtpl->assign('MENUTOP', $HTMLMenutop); include "components/menumobile/menumobile.php"; $xtpl->assign('MENUMOBILE', $HTMLMenumobile); //include "components/menuvip/menuvip.php"; $xtpl->assign('MENUVIP',$HTMLMenuvip); //include "components/mailletter/mailletter.php"; $xtpl->assign('MAILLERTTER', $HTMLMailletter); include "components/timkiem/timkiem.php"; $xtpl->assign('TIMKIEM', $HTMLTimkiem); include "components/linemenu/linemenu.php"; $xtpl->assign('LINEMENU', $HTMLLinemenu); include "components/support/support.php"; $xtpl->assign('SUPPORT', $HTMLSupport); include "components/leftmenu/leftmenu.php"; $xtpl->assign('LEFTMENU', $HTMLLeftmenu); include "components/menubot/menubot.php"; $xtpl->assign('MENUBOT', $HTMLMenubot); //include "components/spnoibat/spnoibat.php"; //$xtpl->assign('SPNOIBAT', $HTMLSpnoibat); include "components/logothuonghieu/logothuonghieu.php"; $xtpl->assign('LOGOTHUONGHIEU', '
' . $HTMLLogothuonghieu . '
'); //include "components/thongtincon/thongtincon.php"; //$xtpl->assign('THONGTINCON', $HTMLThongtincon); include "components/middleadv/middleadv.php"; $xtpl->assign('MIDDLEADV', $HTMLMiddleadv); include "components/tinnoibat/tinnoibat.php"; $xtpl->assign('TINNOIBAT',$HTMLTinnoibat); } if (!isset($_GET['page']) || $_GET['page'] == "") // NOI DUNG O TRANG CHU { include "components/home/home.php"; $xtpl->assign('HOME', $HTMLHome); include "components/slide/slide.php"; $xtpl->assign('SLIDE', $HTMLSlide); include "components/tinkhac/tinkhac.php"; $xtpl->assign('TINKHAC', '
' . $HTMLTinkhac . '
'); include "components/danhmuc/danhmuc.php"; $xtpl->assign('DANHMUC', $HTMLDanhmuc); include "components/spbanchay/spbanchay.php"; $xtpl->assign('SPBANCHAY', $HTMLSpbanchay); include "components/leftadv/leftadv.php"; $xtpl->assign('LEFTADV', $HTMLLeftadv); $xtpl->assign('JSMENULEFT', ''); if($aDta_config[0]['Hotro']!=''){ $chuky = '
'.$aDta_config[0]['Hotro'].'
'; $xtpl->assign('CHUKYTOP', $chuky); } if($aDta_config[0]['Social']!=''){ $chuky = '
'.$aDta_config[0]['Social'].'
'; $xtpl->assign('CHUKYBOT', $chuky); } } else { $page = "modules/" . $aFolderName[$_GET['page']] . "/" . $_GET['page'] . ".php"; if (is_file($page)) { include "$page"; $xtpl->assign('CONTENT', '
' . $HTMLContent . '
'); } $xtpl->assign('HIDEMENU', 'hidemenu'); $xtpl->assign('MGTOP10', 'mt10'); $xtpl->assign('JSMENULEFT', ' '); } if ($_SESSION['ThanhvienId'] != "") { } if (isset($_GET['page']) and $_GET['page'] == "dta_chitietsanpham") { $idsp = $_GET['id']; $hinhcon = testhinhcon($idsp); $xtpl->assign('JAVASP', $hinhcon); } /*$aDta_sanpham = $dta_sanpham->select("", "", "", "", "Vitri desc"); $iLine = count($aDta_sanpham); for ($i = 0; $i < $iLine; $i++) { $idsp = $aDta_sanpham[$i]['Id']; $dta_sanpham->update("Item=".$idsp." ", "Id=" . $aDta_sanpham[$i]['Id']); }*/ /*ini_set('memory_limit', '-1'); $aCap2 = $dta_sanpham->select('', '', '', 'Kieu=1', 'Vitri asc'); for ($i = 0; $i < count($aCap2); $i++) { $loaisp = $aCap2[$i]['LoaispId']; $sId = $aCap2[$i]['Id']; $dta_mcat->insert("CatId,ProId","'$loaisp','$sId'"); }*/ $xtpl->parse('MAIN'); $xtpl->out('MAIN');