One Hat Cyber Team
  • Dir : ~/usr/local/psa/admin/htdocs/spaw/class/
  • View File Name : editor.class.php
    '; $js_res .= 'var '.$pname.'_page = new SpawEditorPage("'.$pname.'","'.htmlspecialchars($page->caption).'","'.$page->direction.'");'."\n"; //$js_res .= $pname.'_page.value = "'.htmlspecialchars($page->value).'";'."\n"; $js_res .= $objname.'.addPage('.$pname.'_page);'."\n"; $js_res .= $objname.'.getTab("'.$pname.'").template = "'.addslashes(str_replace("{SPAW TAB CAPTION}", $page->caption, $tabtpl)).'";'."\n"; $js_res .= $objname.'.getTab("'.$pname.'").active_template = "'.addslashes(str_replace("{SPAW TAB CAPTION}", $page->caption, $atabtpl)).'";'."\n"; if ($this->name == $pname) $js_res .= $objname.'.active_page ='.$pname.'_page;'."\n"; $pagetpl .= ''; $tabstpl .= ''.str_replace("{SPAW TAB CAPTION}", $page->caption, ($pname == $this->name)?$atabtpl:$tabtpl).''; } $tpl = str_replace('{SPAW EDITOR}', $pagetpl, $tpl); $tpl = str_replace('{SPAW TABS}',$tabstpl,$tpl); $html_res .= '
    '.$tpl.'
    '; $js_res .= $objname.'.onLoadHookup();'."\n"; $res = $head_res.''.$html_res; } else { // standard textarea fallback foreach($this->pages as $pname => $page) { if (sizeof($this->pages)>1) $res .= '
    '; $res .= '
    '; } } return $res; } /** * Outputs editor's HTML code to the client */ function show() { echo $this->getHtml(); } } /** * Wrapper for seamless upgrade from v.1.x * @package spaw2 * @subpackage Editor */ class SPAW_Wysiwyg extends SpawEditor { public function __construct($control_name='', $value='', $lang='', $mode = '', $theme='', $width='', $height='', $css_stylesheet='', $dropdown_data='') { // value translations switch($mode) { case 'default': $mode = 'standard'; break; case 'full': $mode = 'all'; break; case 'mini': $mode = 'mini'; break; default: $mode = ''; break; } parent::__construct($control_name, $value, $lang, $mode, '', $width, $height, $css_stylesheet); if ($mode == 'mini') $this->hideStatusBar(); } } ?>