public function getProductsSelectedProductsForm() { $projects = array(); $list_total = 0; $pagination = array(20, 50, 100, 300); $page = (int) Tools::getValue('submitFilterproject'); if (!$page) { $page = 1; } $total_pages = ceil($list_total / Tools::getValue('pagination', 50)); if (!$total_pages) { $total_pages = 1; } $selected_pagination = Tools::getValue('pagination', isset($this->context->cookie->{'project_pagination'}) ? $this->context->cookie->{'project_pagination'} : null); $textmaster_data_with_cookies_manager_obj = new TextMasterDataWithCookiesManager(); $this->context->smarty->assign(array('products' => $projects, 'list_total' => $list_total, 'page' => $page, 'menu' => 'new_project', 'selected_pagination' => $selected_pagination, 'pagination' => $pagination, 'total_pages' => $total_pages, 'selected_products_ids' => $textmaster_data_with_cookies_manager_obj->getSelectedProductsIds())); }
private function displayFlashMessagesIfIsset() { $textmaster_data_with_cookie_manage_obj = new TextMasterDataWithCookiesManager(); if ($success_message = $textmaster_data_with_cookie_manage_obj->getSuccessMessage()) { $this->_html .= $this->displayConfirmation($success_message); } if ($warning_message = $textmaster_data_with_cookie_manage_obj->getWarningMessage()) { $this->_html .= $this->displayWarnings($warning_message); } if ($error_message = $textmaster_data_with_cookie_manage_obj->getErrorMessage()) { $this->_html .= $this->displayError($error_message); } }