public function GetPropertiesSheet($tab_id) { parent::PreparePropertiesSheet($tab_id, 'ShipperId', 'NotificationJavaScript', 'notification_selected'); $query = sprintf("select count(variableid) as is_setup from [|PREFIX|]module_vars where modulename='%s' and variablename='is_setup' and variableval='1'", $GLOBALS['ISC_CLASS_DB']->Quote($this->GetId())); $result = $GLOBALS['ISC_CLASS_DB']->Query($query); $row = $GLOBALS['ISC_CLASS_DB']->Fetch($result); // Add the test notification link if($this->_showtestlink) { if($row['is_setup'] > 0) { $GLOBALS['PropertyBox'] = sprintf("<a href='javascript:void(0)' onclick='openwin(\"index.php?ToDo=testNotificationMethodSettings&module=%s\", \"%s\", 500, %s)'>%s</a>", $this->GetId(), $this->GetId(), $this->getheight(), GetLang('TestNotificationMethod')); } else { $GLOBALS['PropertyBox'] = sprintf("<a href='javascript:void(0)' onclick='alert(\"%s\")'>%s</a>", GetLang('NotificationProviderNotSetup'), GetLang('TestNotificationMethod')); } $help_id = rand(1000,100000); $GLOBALS['PropertyName'] = ""; $GLOBALS['Required'] = ""; $GLOBALS['PanelBottom'] = "PanelBottom"; $GLOBALS['HelpTip'] = sprintf("<img onmouseout=\"HideHelp('d%d')\" onmouseover=\"ShowHelp('d%d', '%s', '%s')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\"><div style=\"display:none\" id=\"d%d\"></div>", $help_id, $help_id, GetLang('TestNotificationMethod'), GetLang('TestNotificationProviderHelp'), $help_id); $GLOBALS['Properties'] .= Interspire_Template::getInstance('admin')->render('module.property.tpl'); } return Interspire_Template::getInstance('admin')->render('module.propertysheet.tpl'); }
public function __construct() { $this->settingsJS = array( "OnLoad" => array(), "OnSubmit" => array(), "Exec" => array() ); $this->type = "accounting"; parent::__construct(); }
public function __construct() { parent::__construct(); $this->spoolPath = ISC_BASE_PATH . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'spool'; }
/** * Addon module type specific wrapper for getting help text - includes a yellow highlight div * * @return string */ public function GetHelpText() { $text = parent::GetHelpText(); if ($text) { $text = '<div class="HelpInfo">' . $text . '</div>'; } return $text; }
public function __construct() { // set our default origin settings to the store location $this->SetOriginCountry(GetCountryIdByName(GetConfig('CompanyCountry'))); $this->SetOriginState(GetConfig('CompanyState')); $this->SetOriginZip(GetConfig('CompanyZip')); $this->SetOriginCity(GetConfig('CompanyCity')); parent::__construct(); }
public function GetPropertiesSheet($tab_id) { return parent::GetPropertiesSheet($tab_id, 'PackageId', 'AnalyticsJavaScript', 'package_selected'); }
public function __construct() { parent::__construct(); }
/** * usort() callback for sorting a list of ISC_MODULE objects by language name * * the ISC_MODULE type is not enforced, but a public GetName() method is assumed * * @param ISC_MODULE $a * @param ISC_MODULE $b * @return int */ protected static function moduleSortByNameCallback($a, $b) { return strcmp($a->GetName(), $b->GetName()); }
public function GetCustomVars() { $vars = parent::GetCustomVars(); // also include hidden/common vars used by each email integration module $vars['isconfigured'] = array( "name" => "", "type" => "", "help" => "", "default" => "", "format" => "boolean", ); $vars['last_list_update'] = array( "name" => "", "type" => "", "help" => "", "default" => "", ); return $vars; }