* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class AdminReturnStates extends AdminTab { public function __construct() { $this->table = 'order_return_state'; $this->className = 'OrderReturnState'; $this->lang = true; $this->edit = true; $this->noAdd = true; $this->delete = false; $this->colorOnBackground = true; $this->fieldsDisplay = array( 'id_order_return_state' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 130) ); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); if (!($obj = $this->loadObject(true))) return; echo '
'.($obj->id ? '' : '').'
'.$this->l('Order statuses').'
'; foreach ($this->_languages as $language) echo '
* '.$this->l('Invalid characters: numbers and').' !<>,;?=+()@#"�{}_$%: 
'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'name', 'name'); echo '

'.$this->l('Order return status name').'

* '.$this->l('Required field').'
'; } }