* @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 AdminQuickAccesses extends AdminTab { public function __construct() { $this->table = 'quick_access'; $this->className = 'QuickAccess'; $this->lang = true; $this->edit = true; $this->delete = true; $this->fieldsDisplay = array( 'id_quick_access' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 200), 'link' => array('title' => $this->l('Link'), 'width' => 300), 'new_window' => array('title' => $this->l('New window'), 'align' => 'center', 'type' => 'bool', 'activeVisu' => 'new_window')); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); if (!($obj = $this->loadObject(true))) return; $new_window = $this->getFieldValue($obj, 'new_window'); echo '
'.($obj->id ? '' : '').'
'.$this->l('Quick Access menu').'
'; foreach ($this->_languages as $language) echo '
* '.$this->l('Forbidden characters:').' <>;=#{} 
'; $this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'name', 'name'); echo '
*
* '.$this->l('required field').'
'; } }