public function Gift_ProductAllAction($id)
 {
     if (empty($id)) {
         return AddAlertMessage('danger', 'Категории не существует.', '/');
     }
     $cat = new Market($this->context);
     $cat_name = $cat->getCat($id[0]);
     $vMarket = new Market($this->context);
     $this->view->setVar('block_cat_comission', $vMarket->getCategoriesChangeTreeHTML());
     $this->view->setVar('block_gift_change_tovar', $vMarket->getGiftTovarHTML($id[0], $id[1]));
     //$this->view->setVar('block_count_tovar', $vMarket->GetCountTovar());
     $this->view->setVar('block_cat_option', $vMarket->getCategoriesOptHTML());
     $this->view->breadcrumbs = array(array('url' => '/', 'title' => 'Главная'), array('url' => '/market/', 'title' => 'Маркет'), array('url' => '../market/gift_product', 'title' => 'Дарю/Меняю'), array('url' => '../market/gift_product/cat-' . $id[0], 'title' => $cat_name['name_cat']));
     $this->view->generate();
 }