* @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 */ include_once(dirname(__FILE__).'/../../classes/AdminTab.php'); class AdminZones extends AdminTab { public function __construct() { $this->table = 'zone'; $this->className = 'Zone'; $this->lang = false; $this->edit = true; $this->delete = true; $this->fieldsDisplay = array( 'id_zone' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Zone'), 'width' => 150), 'active' => array('title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false) ); parent::__construct(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); if (!($obj = $this->loadObject(true))) return; echo '
'.($obj->id ? '' : '').'
'.$this->l('Zones').'
* '.$this->l('Allowed characters: letters, spaces and').' (-) 

'.$this->l('Zone name, e.g., Africa, West Coast, Neighboring Countries').'

id OR Tools::getValue('active', $obj->active)) ? 'checked="checked" ' : '').'/> active) AND $obj->id) ? 'checked="checked" ' : '').'/>

'.$this->l('Allow or disallow shipping to this zone').'

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