* @copyright PrestaShop * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 * @version 1.3 * */ include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminContacts extends AdminTab { public function __construct() { $this->table = 'contact'; $this->className = 'Contact'; $this->lang = true; $this->edit = true; $this->delete = true; $this->fieldsDisplay = array( 'id_contact' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Title'), 'width' => 130), 'email' => array('title' => $this->l('E-mail address'), 'width' => 130), 'description' => array('title' => $this->l('Description'), 'width' => 150)); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); $obj = $this->loadObject(true); echo '
'.($obj->id ? '' : '').'
'.$this->l('Contacts').'
'; foreach ($this->_languages as $language) echo '
*
'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'name¤description', 'name'); echo '

'.$this->l('Contact name, e.g., Technical Support').'

*

'.$this->l('E-mails will be sent to this address').'

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

'.$this->l('Additional information about this contact').'

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