. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ // G::LoadSystem('templatePower'); G::LoadClass('serverConfiguration'); $oServerConf =& serverConf::getSingleton(); $oHeadPublisher =& headPublisher::getSingleton(); $extSkin=$oServerConf->getProperty("extSkin"); if(isset($extSkin[SYS_SKIN])){ $oHeadPublisher->setExtSkin( $extSkin[SYS_SKIN]); } if( $oHeadPublisher->extJsInit === true){ $header = $oHeadPublisher->getExtJsVariablesScript(); $styles = $oHeadPublisher->getExtJsStylesheets(); $body = $oHeadPublisher->getExtJsScripts(); $templateFile = 'extJsInitLoad.html'; } else { $header = $oHeadPublisher->includeExtJs(); $styles = ''; $body = $oHeadPublisher->renderExtJs(); $templateFile = 'extJs.html'; } $template = new TemplatePower( PATH_SKINS . $templateFile ); $template->prepare(); $template->assign( 'header', $header ); $template->assign( 'styles', $styles ); $template->assign( 'bodyTemplate', $body); $content = $template->getOutputContent(); print $content;