コード例 #1
0
 public function indexAction()
 {
     //Zend_Debug::dump($this->_categories_list);
     if (empty($this->_id_category)) {
         $this->view->categories_list = $this->_categories_list;
     } else {
         if (!empty($this->_categories_list[$this->_id_category]['children'])) {
             $this->view->categories_list = $this->_categories_list[$this->_id_category]['children'];
         } else {
             $this->view->categories_list = array();
         }
     }
     $form_add_categories = new Stores_Form_Categories(array('name' => 'form_add_categories'));
     $form_edit_category = new Stores_Form_Categories(array('name' => 'form_edit_category'));
     $this->view->form_add_categories = $form_add_categories;
     $this->view->form_edit_category = $form_edit_category;
     $this->_main_menu->addPage(array('params' => array('id_store' => $this->_id_store, 'id_page' => $this->_id_page), 'action' => 'index', 'controller' => 'categories', 'module' => 'stores', 'label' => sprintf(HTS_Util::translate('MENU_MANAGE_CATEGORIES'), substr($this->_store_row->name, 0, 100)), 'active' => true));
 }
コード例 #2
0
 public static function getBaseCurrencyList()
 {
     $currency = HTS_Util::translate('CURRENCY');
     return $base_currency = array("1" => "1 " . $currency, "10" => "10 " . $currency, "100" => "100 " . $currency, "1000" => "1000 " . $currency, "10000" => "10.000 " . $currency, "100000" => "100.000 " . $currency);
 }