* @copyright PrestaShop * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 * @version 1.3 * */ 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(); $obj = $this->loadObject(true); 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').'
'; } } ?>