Пример #1
0
 public function add($sHtml)
 {
     if ($this->m_oTabs->GetCurrentTabContainer() != '' && $this->m_oTabs->GetCurrentTab() != '') {
         $this->m_oTabs->AddToCurrentTab($sHtml);
     } else {
         parent::add($sHtml);
     }
 }
Пример #2
0
\t\tif (oModules.length > 0)
\t\t{
\t\t\tsModules = oModules.val();
\t\t}
\t\t\$('#content_dictionary').html('<img title=\\"loading...\\" src=\\"../images/indicator.gif\\" /> Searching for missing dictionary items');
\t\tajax_request = \$.get(GetAbsoluteUrlAppRoot()+'toolkit/ajax.toolkit.php', { 'operation': 'check_dictionary', 'rebuild_toolkit_env': bRefresh, 'lang': sLang },
\t\t\t\tfunction(data)
\t\t\t\t{
\t\t\t\t\t\$('#content_dictionary').empty();
\t\t\t\t\t\$('#content_dictionary').append(data);
\t\t\t\t}
\t\t);\t\t
\t}
EOF
);
    $oP->add("<h1>Data Model Toolkit</h1>\n");
    define('TOOLKITENV', 'toolkit');
    // Compile the current code into the environment 'toolkit'
    // The environment will be rebuilt in case of refresh (if refreshing a view relying on this environment)
    //
    $oConfig = new Config(APPCONF . 'production/' . ITOP_CONFIG_FILE);
    if ($oConfig->Get('source_dir') == '') {
        throw new Exception('Missing entry source_dir from the config file');
    }
    $oToolkitConfig = clone $oConfig;
    $oToolkitConfig->ChangeModulesPath('production', TOOLKITENV);
    $oEnvironment = new RunTimeEnvironment(TOOLKITENV);
    $oEnvironment->WriteConfigFileSafe($oToolkitConfig);
    $oEnvironment->CompileFrom('production');
    $oP->add("<!-- tabs -->\n<div id=\"tabbedContent\" class=\"light\">\n");
    $oP->add("<ul>\n");