table = 'support_section'; $this->className = 'Section'; $this->lang = true; /*$this->edit = true; $this->view = true; $this->delete = true;*/ $this->_section = AdminSupport::getCurrentSection(); parent::__construct(); } public function displayForm($isMainTab=true) { global $currentIndex, $cookie; parent::displayForm(); $this->section = null; if($id = Tools::getValue('id')) { $this->section = new Section($id); if($this->section->id === null) { Tools::redirectAdmin($currentIndex.'&token='.Tools::getAdminTokenLite('AdminSupport')); } } $iso = Language::getIsoById((int)($cookie->id_lang)); $divLangName = 'title¤description'; echo '
'; } public function displayList($token = null) { global $currentIndex, $cookie; $sections = Section::getSections(); echo ''; } public function display($token=null) { echo ' '.$this->l('Add a new section').''; echo '