* @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 AdminProfiles extends AdminTab { public function __construct() { $this->table = 'profile'; $this->className = 'Profile'; $this->lang = true; $this->edit = true; $this->delete = true; $this->fieldsDisplay = array( 'id_profile' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 200)); $this->identifier = 'id_profile'; parent::__construct(); } public function postProcess() { if (isset($_GET['delete'.$this->table]) AND $_GET[$this->identifier] === '1') $this->_errors[] = $this->l('For security reasons, you cannot delete the Administrator profile'); else parent::postProcess(); } public function displayForm($isMainTab = true) { global $currentIndex; parent::displayForm(); $obj = $this->loadObject(true); echo '
'; } } ?>