[+] BO : Tracking page header toolbar

This commit is contained in:
Jerome Nadaud
2013-08-27 18:22:54 +02:00
parent 6e46d718f7
commit f60fe74336
2 changed files with 11 additions and 14 deletions
@@ -24,7 +24,3 @@
*} *}
{extends file="helpers/list/list_header.tpl"} {extends file="helpers/list/list_header.tpl"}
{block name="override_header"}
<h3>{$sub_title}</h3>
{/block}
+10 -9
View File
@@ -75,6 +75,12 @@ class AdminTrackingControllerCore extends AdminController
)); ));
} }
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Monitoring');
parent::initPageHeaderToolbar();
}
public function getCustomListCategoriesEmpty() public function getCustomListCategoriesEmpty()
{ {
$this->table = 'category'; $this->table = 'category';
@@ -107,9 +113,7 @@ class AdminTrackingControllerCore extends AdminController
FROM `'._DB_PREFIX_.'category_product` cp FROM `'._DB_PREFIX_.'category_product` cp
) )
AND a.`id_category` != '.(int)Category::getTopCategory()->id; AND a.`id_category` != '.(int)Category::getTopCategory()->id;
$this->toolbar_title = $this->l('List of empty categories:');
$this->tpl_list_vars = array('sub_title' => $this->l('List of empty categories:'));
return $this->renderList(); return $this->renderList();
} }
@@ -152,9 +156,7 @@ class AdminTrackingControllerCore extends AdminController
) )
AND IFNULL(stock.quantity, 0) <= 0 AND IFNULL(stock.quantity, 0) <= 0
)'; )';
$this->toolbar_title = $this->l('List of products with attributes but without available quantities for sale:');
$this->tpl_list_vars = array('sub_title' => $this->l('List of products with attributes but without available quantities for sale:'));
return $this->renderList(); return $this->renderList();
} }
@@ -197,8 +199,7 @@ class AdminTrackingControllerCore extends AdminController
AND IFNULL(stock.quantity, 0) <= 0 AND IFNULL(stock.quantity, 0) <= 0
)'; )';
$this->tpl_list_vars = array('sub_title' => $this->l('List of products without attributes and without available quantities for sale:')); $this->toolbar_title = $this->l('List of products without attributes and without available quantities for sale:');
return $this->renderList(); return $this->renderList();
} }
@@ -212,7 +213,6 @@ class AdminTrackingControllerCore extends AdminController
$this->_orderBy = 'id_product'; $this->_orderBy = 'id_product';
$this->_orderWay = 'DESC'; $this->_orderWay = 'DESC';
$this->_filter = 'AND product_shop.`active` = 0'; $this->_filter = 'AND product_shop.`active` = 0';
$this->tpl_list_vars = array('sub_title' => $this->l('List of disabled products:'));
$this->show_toolbar = false; $this->show_toolbar = false;
$this->_list_index = 'index.php?controller=AdminProducts'; $this->_list_index = 'index.php?controller=AdminProducts';
$this->_list_token = Tools::getAdminTokenLite('AdminProducts'); $this->_list_token = Tools::getAdminTokenLite('AdminProducts');
@@ -229,6 +229,7 @@ class AdminTrackingControllerCore extends AdminController
$this->clearFilters(); $this->clearFilters();
$this->_join = Shop::addSqlAssociation('product', 'a'); $this->_join = Shop::addSqlAssociation('product', 'a');
$this->toolbar_title = $this->l('List of disabled products:');
return $this->renderList(); return $this->renderList();
} }