session_start();
$oGiohang=new XTemplate('components/giohang/giohang.tpl');
$max=count($_SESSION['cart']);
//$total=get_order_total(); //echo $total;
if($max!=0)
{
$tongtien=0;
$soluong=0;
for($i=0;$i<$max;$i++)
{
$iPid=$_SESSION['cart'][$i]['productid']; //echo $iPid;
$iQty=$_SESSION['cart'][$i]['qty'];
$sSize=explode(',',$_SESSION['cart'][$i]['size']); //echo $sSize[0];
$size='';
$tongsl=0;
for($j=0;$jassign('TONGTIEN',sPriceFormat($total1).' Vnđ');
$oGiohang->assign('SOLUONG',$soluong);
$oGiohang->parse('MAIN');
$HTMLGiohang=$oGiohang->text('MAIN');
?>
@session_start();
$oDangnhap=new XTemplate('components/dangnhap/dangnhap.tpl');
$dta_thanhvien= new clsTable('dta_thanhvien');
if($_SESSION['ThanhvienId']=="" or $_SESSION['ThanhvienId']==0)
{
$dangnhap='Đăng ký / Đăng nhập';
}
else
{
$iId=$_SESSION['ThanhvienId'];
$aDta_thanhvien=$dta_thanhvien->select('','','','Id='.$iId);
$dangnhap='';
}
$oDangnhap->assign('DANGNHAP',$dangnhap);
$oDangnhap->parse('MAIN');
$HTMLDangnhap=$oDangnhap->text('MAIN');
?>
$oLogothuonghieu=new XTemplate('components/logothuonghieu/logothuonghieu.tpl');
$dta_loaisp= new clsTable('dta_loaisp');
$aDta_loaisp=$dta_loaisp->select('','','','Trangthai=1 and Phanloai=4','Vitri asc');
$iLine=count($aDta_loaisp);
for($i=0 ; $i < $iLine ; $i++)
{
$aArray=array(
'ID'=>$aDta_loaisp[$i]['Id'],
'TEN'=>$aDta_loaisp[$i]['Ten'],
'HINHANH'=>$aDta_loaisp[$i]['Banner'],
//'URL'=>strtolower(khongdau($aDta_loaisp[$i]['Ten'])),
'URL'=>$aDta_loaisp[$i]['Url'],
'SELECTED'=>$sSelected
);
$oLogothuonghieu->assign('LOGOTHUONGHIEU',$aArray);
$oLogothuonghieu->parse('MAIN.LOGOTHUONGHIEU');
}
//end cboCategory
$oLogothuonghieu->parse('MAIN');
$HTMLLogothuonghieu=$oLogothuonghieu->text('MAIN');
?>
$oMenubottom=new XTemplate('components/menubottom/menubottom.tpl');
$dta_tintuc=new clsTable('dta_tintuc');
$aCap1=$dta_loaisp->select('','','','Trangthai=1 and Phanloai=3 and RootId=0 and Danhmuchot =0','');
$iLine=count($aCap1);
for($i=0 ; $i < $iLine; $i++)
{
$aArray=array(
'ID'=>$aCap1[$i]['Id'],
'TEN'=>$aCap1[$i]['Ten'],
'URL'=>$aCap1[$i]['Url'],
'ICON'=>$aCap1[$i]['Icon']
);
$oMenubottom->assign('THONGTIN',$aArray);
$oMenubottom->parse('MAIN.THONGTIN');
}
$aCap2=$dta_loaisp->select('','','','Trangthai=1 and Phanloai=2 and RootId=0','');
$jLine=count($aCap2);
for($i=0 ; $i < $jLine; $i++)
{
$aArray=array(
'ID'=>$aCap2[$i]['Id'],
'TEN'=>$aCap2[$i]['Ten'],
'URL'=>$aCap2[$i]['Url'],
'ICON'=>$aCap2[$i]['Icon']
);
$oMenubottom->assign('TINTUC',$aArray);
$oMenubottom->parse('MAIN.TINTUC');
}
$oMenubottom->parse('MAIN');
$HTMLMenubottom=$oMenubottom->text('MAIN');
?>
$oLinemenu=new XTemplate('components/linemenu/linemenu.tpl');
$aCap1=$dta_loaisp->select('','','','Trangthai=1 and Phanloai=3 and RootId=0 and Danhmuchot =1','');
$iLine=count($aCap1);
for($i=0 ; $i < $iLine; $i++)
{
$aArray=array(
'ID'=>$aCap1[$i]['Id'],
'TEN'=>$aCap1[$i]['Ten'],
'URL'=>$aCap1[$i]['Url'],
'ICON'=>$aCap1[$i]['Icon']
);
$oLinemenu->assign('THONGTIN',$aArray);
$oLinemenu->parse('MAIN.THONGTIN');
}
$oLinemenu->parse('MAIN');
$HTMLLinemenu=$oLinemenu->text('MAIN');
?>
$oBanchay=new XTemplate('components/banchay/banchay.tpl');
$dta_sanpham=new clsTable('dta_sanpham');
$aBanchay=$dta_sanpham->select('','','','Banchay=1 and Trangthai=1','Vitri asc','0,15');
$iLine=count($aBanchay);
for($i=0 ; $i < $iLine ; $i++)
{
$gia=Discount($aBanchay[$i]['Giacty'],$aBanchay[$i]['Giaban'],$donvi);
$aArray=array(
'ID'=>$aBanchay[$i]['Id'],
'TEN'=>Catchuoi($aBanchay[$i]['Ten'],60),
'CODE'=>$aBanchay[$i]['Code'],
'LINK'=>getlink($aBanchay[$i]['Id'],$aBanchay[$i]['Url'],$aBanchay[$i]['Ten']),
'GIACTY'=>$gia[0],
'GIABAN'=>$gia[1],
'PHANTRAM'=>$gia[2],
'HINHANH'=>getanhthumb($aBanchay[$i]['Hinhanh1'])
);
$oBanchay->assign('BANCHAY',$aArray);
$oBanchay->parse('MAIN.BANCHAY');
}
$oBanchay->parse('MAIN');
$HTMLBanchay=$oBanchay->text('MAIN');
?>
$oSupport=new XTemplate('components/supportright/supportright.tpl');
$dta_support=new clsTable('dta_support');
$aDta_support=$dta_support->select('','','','Trangthai=1','Vitri asc');
$iLine=count($aDta_support);
$i=0;
for($i ; $i < $iLine ; $i++)
{
$id = $aDta_support[$i]['Yahoo'];
//$status = @file_get_contents("http://opi.yahoo.com/online?u=$id&m=a&t=1");
if ($status == '00')
$img='
';
elseif($status == '01')
$img='
';
$aArray=array(
'ID'=>$aDta_support[$i]['Id'],
'TEN'=>$aDta_support[$i]['Ten'],
'DIENTHOAI'=>$aDta_support[$i]['Dienthoai'],
'YAHOO'=>$aDta_support[$i]['Yahoo'],
'IMAGE'=>$img,
'SKYPE'=>$aDta_support[$i]['Skype'],
'DETAIL'=>$aDta_support[$i]['Detail']
);
$oSupport->assign('SUPPORT',$aArray);
$oSupport->parse('MAIN.SUPPORT');
}
$oSupport->assign('SUPPORTINFO',$aDta_config[0]['Toptim']);
$oSupport->parse('MAIN');
$HTMLSupportright=$oSupport->text('MAIN');
?>
$oPlugin=new XTemplate('components/plugin/plugin.tpl');
$oPlugin->parse('MAIN');
$HTMLPlugin=$oPlugin->text('MAIN');
?>
Hainamapple
HOTLINE: 0926.080808_0936.080808
Địa chỉ: Lô U48 Nguyễn Hữu Hào, P8, Q4, TPHCM
HảiNamApple - Kính Chúc Quý Khách - Tuần Mới Vui Vẻ ...
Ngày đăng: 06:47:42 30-12-2016 / Lượt xem: 3362
Hainamapple
Tiêu điểm: 12 PRM - 13 PRM ĐÃ CÓ MẶT TẠI CỬA HÀNG HAINAMAPPLE
trên
Bình chọn