Esempio n. 1
0
 public function __construct($title = '')
 {
     parent::__construct($title);
     $furniture_slider = Db_Sliders::getSliderByKey('furniture-slider');
     $furniture_v1_banner = Db_Banners::getBannerByKey('home_page_sidebar_top');
     $furniture_v2_banner = Db_Banners::getBannerByKey('home_page_sidebar_bottom');
     $furniture_banner_left = Db_Banners::getBannerByKey('banner_left');
     $furniture_banner_middle = Db_Banners::getBannerByKey('banner_middle');
     $furniture_banner_right = Db_Banners::getBannerByKey('banner_right');
     $furniture_banner_mimi_left = Db_Banners::getBannerByKey('banner_mimi_left');
     $furniture_banner_mimi_right = Db_Banners::getBannerByKey('banner_mimi_right');
     $headphones['new'] = Db_Products::getProductsByOptionsKey('new', 1, 'headphone');
     $headphones['color'] = Db_Products::getProductsByOptionsKey('color', '', 'headphone');
     $ebooks['new'] = Db_Products::getProductsByOptionsKey('new', 1, 'ebook');
     $ebooks['color'] = Db_Products::getProductsByOptionsKey('color', '', 'ebook');
     $brands = Db_Brand::getAllWithTransFiltered();
     $this->TPL->assign('furniture_v1_banner', $furniture_v1_banner);
     $this->TPL->assign('furniture_v2_banner', $furniture_v2_banner);
     $this->TPL->assign('furniture_banner_left', $furniture_banner_left);
     $this->TPL->assign('furniture_banner_middle', $furniture_banner_middle);
     $this->TPL->assign('furniture_banner_right', $furniture_banner_right);
     $this->TPL->assign('furniture_banner_mimi_left', $furniture_banner_mimi_left);
     $this->TPL->assign('furniture_banner_mimi_right', $furniture_banner_mimi_right);
     $this->TPL->assign('furniture_slider', $furniture_slider);
     $this->TPL->assign('headphones', $headphones);
     $this->TPL->assign('ebooks', $ebooks);
     $this->TPL->assign('ebooks', $ebooks);
     $this->TPL->assign('brands', $brands);
 }
Esempio n. 2
0
 private function CheckIdExist()
 {
     if (!Db_Products::checkExists($this->Id, 'id')) {
         $this->Msg->SetMsg($this->_T('error_id_not_exist') . ' ' . $this->Id);
         $this->Msg->SetError(true);
         $this->Redirect($this->PageUrl);
     }
 }