* @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 AdminOrderMessage extends AdminTab { public function __construct() { $this->table = 'order_message'; $this->className = 'OrderMessage'; $this->lang = true; $this->edit = true; $this->delete = true; $this->fieldsDisplay = array( 'id_order_message' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 140), 'message' => array('title' => $this->l('Message'), 'width' => 600, 'maxlength' => 300)); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); if (!($obj = $this->loadObject(true))) return; echo '
'.($obj->id ? '' : '').'
'.$this->l('Order messages').'
'; foreach ($this->_languages as $language) echo '
*
'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'nameĀ¤message', 'name'); echo '

'; foreach ($this->_languages as $language) echo '
*
'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'nameĀ¤message', 'message'); echo '

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