add_linked_script("../js/jquery.blockUI.js"); $this->add_linked_script("../setup/setup.js"); $this->add_saas("css/setup.scss"); } /** * Overriden because the application is not fully loaded when the setup is being run */ public function GetAbsoluteUrlAppRoot() { return '../'; } /** * Overriden because the application is not fully loaded when the setup is being run */ public function GetAbsoluteUrlModulesRoot() { return $this->GetAbsoluteUrlAppRoot().utils::GetCurrentEnvironment(); } /** * Overriden because the application is not fully loaded when the setup is being run */ function GetApplicationContext() { return ''; } public function info($sText) { $this->add("

$sText

\n"); $this->log_info($sText); } public function ok($sText) { $this->add("
Success:$sText
"); $this->log_ok($sText); } public function warning($sText) { $this->add("
Warning:$sText
"); $this->log_warning($sText); } public function error($sText) { $this->add("
$sText
"); $this->log_error($sText); } public function form($aData) { $this->add("\n"); foreach ($aData as $aRow) { $this->add("\n"); if (isset($aRow['label']) && isset($aRow['input']) && isset($aRow['help'])) { $this->add("\n"); $this->add("\n"); $this->add("\n"); } else { if (isset($aRow['label']) && isset($aRow['help'])) { $this->add("\n"); $this->add("\n"); } else { if (isset($aRow['label']) && isset($aRow['input'])) { $this->add("\n"); $this->add("\n"); } else { if (isset($aRow['label'])) { $this->add("\n"); } } } } $this->add("\n"); } $this->add("
{$aRow['label']}{$aRow['input']}{$aRow['help']}{$aRow['label']}{$aRow['help']}{$aRow['label']}{$aRow['input']}{$aRow['label']}
\n"); } public function collapsible($sId, $sTitle, $aItems, $bOpen = true) { $this->add("

$sTitle

"); $this->p(''); $this->add_ready_script("$('#{$sId}').click( function() { $(this).toggleClass('open'); $('#{$sId}_list').toggle();} );\n"); if (!$bOpen) { $this->add_ready_script("$('#{$sId}').toggleClass('open'); $('#{$sId}_list').toggle();\n"); } } public function output() { $sLogo = utils::GetAbsoluteUrlAppRoot(true).'/images/itop-logo.png'; $this->s_content = "

\" ".htmlentities($this->s_title, ENT_QUOTES, self::PAGES_CHARSET)."

\n
{$this->s_content}\n
\n"; return parent::output(); } //@deprecated since 3.0.0 use SetupLog::Error public static function log_error($sText) { SetupLog::Error($sText); } //@deprecated since 3.0.0 use SetupLog::Warning public static function log_warning($sText) { SetupLog::Warning($sText); } //@deprecated since 3.0.0 use SetupLog::Info public static function log_info($sText) { SetupLog::Info($sText); } //@deprecated since 3.0.0 use SetupLog::Ok public static function log_ok($sText) { SetupLog::Ok($sText); } //@deprecated since 3.0.0 use SetupLog::Ok public static function log($sText) { SetupLog::Ok($sText); } /** * @inheritDoc */ protected function LoadTheme() { // Do nothing } }