public function index()
 {
     $this->tpl->assign('frontTenNav', $this->nav->getFrontTenNav());
     $this->tpl->assign('history', $this->goods->getHistory());
     $this->tpl->assign('url', Tool::getUrl(true));
     $this->tpl->assign('GoodsCompare', $this->goods->getGoodsCompare());
     $this->tpl->assign('cartGoodsCount', $this->cart->getCount());
     $this->tpl->display(FRONT_STYLE . 'public/compare.tpl');
 }
Пример #2
0
 public function index()
 {
     parent::page(15, $this->_goods);
     $this->_tpl->assign('ListGoods', $this->_goods->findListGoods());
     $this->_tpl->assign('FrontNav', $this->_nav->findFrontNav());
     $this->_tpl->assign('FrontTenNav', $this->_nav->findFrontTenNav());
     $this->_tpl->assign('FrontPrice', $this->_nav->findFrontPrice());
     $this->_tpl->assign('FrontBrand', $this->_nav->findFrontBrand());
     $this->_tpl->assign('FrontAttr', $this->_nav->findFrontAttr());
     $this->_tpl->assign('FrontRecord', $this->_goods->getRecord());
     $this->_tpl->assign('NavSort', $this->_goods->navSort());
     $this->_tpl->assign('url', Tool::getUrl());
     $this->_tpl->display(SMARTY_FRONT . 'public/list.tpl');
 }
Пример #3
0
 /**
  * Page en cours dans une liste ( ajout de la classe current )
  * @param array la liste de pages à comparer 
  */
 public static function getCurrentMenu($pages)
 {
     $current = Tool::getUrl();
     foreach ($pages as $page) {
         if (!is_numeric($page) && $current == $page) {
             return 'current';
         } else {
             $pageUrl = isset($_GET['page']) ? $_GET['page'] : '';
             if ($pageUrl == $page) {
                 return 'current';
             }
         }
     }
 }
Пример #4
0
 public function index($array = null)
 {
     $this->page(15, $this->goods);
     $this->tpl->assign('listGoods', $this->goods->getListGoods());
     $this->tpl->assign('oneFrontNav', $this->nav->getFrontNav());
     $this->tpl->assign('frontTenNav', $this->nav->getFrontTenNav());
     $this->tpl->assign('frontPrice', $this->nav->getFrontPrice());
     $this->tpl->assign('frontBrand', $this->nav->getFrontBrand());
     $this->tpl->assign('frontAttr', $this->nav->getFrontAttr());
     $this->tpl->assign('history', $this->goods->getHistory());
     $this->tpl->assign('hotSale', $this->goods->getHotSale());
     $this->tpl->assign('url', Tool::getUrl(true));
     $this->tpl->assign('brandUrl', Tool::getUrl(false, true, false));
     $this->tpl->assign('cartGoodsCount', $this->cart->getCount());
     $this->tpl->assign('priceUrl', Tool::getUrl(false, false, true));
     $this->tpl->display(FRONT_STYLE . 'public/list.tpl');
 }