\n"; ?>
Set("section",$section); $objListToolBar->Set("load_menu_func",""); $objListToolBar->Set("CheckClass",""); $listImages = array(); //$img, $alt, $link, $onMouseOver, $onMouseOut, $onClick $objListToolBar->Add("select", "la_ToolTip_Select","#","swap('select','toolbar/tool_select_f2.gif');", "swap('select', 'toolbar/tool_select.gif');", "document.frm.submit();","tool_select.gif"); $objListToolBar->Add("cancel", "la_ToolTip_Stop","#","swap('cancel','toolbar/tool_stop_f2.gif');", "swap('cancel', 'toolbar/tool_stop.gif');","window.close();","tool_stop.gif"); $title = "Online HTML Editor"; $objSections->SetCurrentSection($section); print $objSections->section_header($envar,NULL,$title); $TargetForm = $_GET["TargetForm"]; $TargetField = $_GET["TargetField"]; echo $objListToolBar->Build(); ?>
BasePath = 'cmseditor/' ; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '500' ; $oFCKeditor->ToolbarSet = 'Advanced' ; $oFCKeditor->Value = '' ; $oFCKeditor->Config = Array( //'UserFilesPath' => $pathtoroot.'kernel/user_files', 'ProjectPath' => $objConfig->Get("Site_Path"), 'CustomConfigurationsPath' => $rootURL.$admin.'/editor/inp_fckconfig.js', 'EditorAreaCSS' => GetThemeCSS(), //'StylesXmlPath' => '../../inp_styles.xml', //'Debug' => 1, ); function GetThemeCSS() { $query = 'SELECT LastCompiled, '.GetTablePrefix().'Stylesheets.Name as StyleName FROM '.GetTablePrefix().'Theme LEFT JOIN '.GetTablePrefix().'Stylesheets ON '.GetTablePrefix().'Theme.StylesheetId = '.GetTablePrefix().'Stylesheets.StylesheetId WHERE ThemeId = 4'; $conn =& GetADODBConnection(); $res = $conn->GetRow($query); $last_compiled = $res['LastCompiled']; $style_name = strtolower( $res['StyleName'] ); global $pathtoroot,$rootURL; $css_path = $pathtoroot.'kernel/stylesheets'; $css_url = $rootURL.'kernel/stylesheets'; if( file_exists($css_path.'/'.$style_name.'-'.$last_compiled.'.css') ) { $ret = $css_url.'/'.$style_name.'-'.$last_compiled.'.css'; } return $ret; } echo $oFCKeditor->CreateHtml() ; ?>