function __construct()
 {
     parent::__construct();
     if (!empty($_POST)) {
         $this->executeSave();
     }
 }
 function __construct()
 {
     parent::__construct();
     // check mode
     if (isset($_GET['edit']) && is_numeric($_GET['edit'])) {
         // edit mode or insert mode
         $this->mode = 'update';
     } else {
         $this->mode = 'list';
         if (!empty($_POST)) {
             $this->executeSave();
         }
         if (isset($_GET['delete']) && is_numeric($_GET['delete'])) {
             $this->executeDelete();
         }
     }
 }
 function __construct()
 {
     parent::__construct();
     // check mode
     if (isset($_GET['edit']) && is_numeric($_GET['edit'])) {
         // edit mode or insert mode
         $this->mode = 'update';
     } else {
         $this->mode = 'list';
         if (!empty($_POST)) {
             $this->executeSave();
         }
         if (isset($_GET['delete']) && is_numeric($_GET['delete'])) {
             $this->executeDelete();
         }
     }
     $this->servers = $this->db->select(SM_DB_PREFIX . 'servers', null, array('server_id', 'label'));
 }
 function __construct()
 {
     parent::__construct();
 }