table = 'support_reason'; $this->className = 'Reason'; $this->lang = true; parent::__construct(); } public function displayForm($isMainTab=true) { global $currentIndex, $cookie; parent::displayForm(); $this->reason = null; if($id = Tools::getValue('id')) { $this->reason = new Reason($id); if($this->reason->id === null) { Tools::redirectAdmin($currentIndex.'&token='.Tools::getAdminTokenLite('AdminReasons')); } } $iso = Language::getIsoById((int)($cookie->id_lang)); $contacts = Contact::getContacts((int)($cookie->id_lang)); $divLangName = 'title'; echo '
'; } public function displayList($token = null) { global $currentIndex, $cookie; echo ' '; echo ''; $reasons = Reason::getReasons(); echo ''; } public function display($token=null) { if (((Tools::isSubmit('submitAddreason') OR Tools::isSubmit('submitAddreasonAndStay')) AND sizeof($this->_errors)) OR isset($_GET['updatereason']) OR isset($_GET['addreason'])) { $this->displayForm($this->token); echo '