/** * display * * @author Mark Grimshaw */ function display() { include_once "ADMINSTYLE.php"; include_once "../STYLEMAP.php"; $map = new STYLEMAP(); $templateNameArray = split("_", stripslashes($this->vars['templateName']), 2); $type = $templateNameArray[1]; $templateString = preg_replace("/%u(\\d+)/", "&#x\$1;", stripslashes(urldecode($this->vars['templateString']))); if (!$templateString) { return $this->errors->text("inputError", "missing"); } $templateArray = ADMINSTYLE::parseStringToArray($type, $templateString, $map, TRUE); if (!$templateArray) { return $this->errors->text("inputError", "invalid"); } $style = unserialize(stripslashes(urldecode($this->vars['style']))); foreach ($style as $key => $value) { // Convert javascript unicode e.g. %u2014 to HTML entities $value = preg_replace("/%u(\\d+)/", "&#x\$1;", str_replace('__WIKINDX__SPACE__', ' ', $value)); $this->bibformat->style[str_replace("style_", "", $key)] = $value; } $this->bibformat->loadArrays(); if (array_key_exists('independent', $templateArray)) { $temp = $templateArray['independent']; foreach ($temp as $key => $value) { $split = split("_", $key); $independent[$split[1]] = $value; } $templateArray['independent'] = $independent; } $this->bibformat->{$type} = $templateArray; $rewriteCreator = unserialize(stripslashes(urldecode($this->vars['rewriteCreator']))); foreach ($rewriteCreator as $key => $value) { // Convert javascript unicode e.g. %u2014 to HTML entities $value = preg_replace("/%u(\\d+)/", "&#x\$1;", str_replace('__WIKINDX__SPACE__', ' ', $value)); $this->bibformat->{$type}[$key] = $value; } $this->loadArrays($type); $pString = $this->process($type); return MISC::b($this->messages->text("resourceType", $type) . ":") . MISC::br() . $pString; }
function display() { $this->pString = MISC::h($this->messages->text("heading", "helpStyles"), FALSE, 3); $this->pString .= MISC::aName("top"); $this->pString .= MISC::p(TEXT4); $this->pString .= MISC::p(TEXT5); $this->pString .= MISC::p(TEXT10); $this->pString .= MISC::p(TEXT6); $this->pString .= MISC::p(TEXT7); $this->pString .= MISC::p(MISC::hr()); $this->pString .= MISC::h(SYNTAX_HEADING); $this->pString .= MISC::p(SYNTAX1); $this->pString .= MISC::ol(MISC::li(SYNTAX2) . MISC::li(SYNTAX3) . MISC::li(MISC::b(SYNTAX4) . ' ' . SYNTAX5) . MISC::li(SYNTAX6) . MISC::li(SYNTAX7) . MISC::li(SYNTAX8) . MISC::li(SYNTAX9) . MISC::li(SYNTAX10) . MISC::li(SYNTAX11) . MISC::li(SYNTAX12) . MISC::li(SYNTAX13)); $this->pString .= MISC::p(TEXT11); $this->pString .= MISC::p(MISC::hr()); $this->pString .= MISC::h(EXAMPLE_HEADING); $this->pString .= MISC::p("<code>" . EXAMPLE1 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE3 . "</code>"); $this->pString .= MISC::p(EXAMPLE4 . MISC::BR() . "<code>" . EXAMPLE5 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p("<code>" . EXAMPLE7 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE8 . "</code>"); $this->pString .= MISC::p(EXAMPLE9 . MISC::BR() . "<code>" . EXAMPLE10 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p("<code>" . EXAMPLE11 . "</code>" . MISC::BR() . EXAMPLE2 . "</code>" . MISC::BR() . "<code>" . EXAMPLE12 . "</code>"); $this->pString .= MISC::p(EXAMPLE13 . MISC::BR() . "<code>" . EXAMPLE14 . "</code>"); $this->pString .= MISC::hr(); $this->pString .= MISC::p(EXAMPLE15 . MISC::BR() . "<code>" . EXAMPLE16 . "</code>" . MISC::BR() . EXAMPLE2 . MISC::BR() . "<code>" . EXAMPLE17 . "</code>" . MISC::br() . EXAMPLE18 . MISC::br() . "<code>" . EXAMPLE19 . "</code>"); $this->pString .= MISC::p(EXAMPLE20 . MISC::BR() . "<code>" . EXAMPLE21 . "</code>" . MISC::BR() . EXAMPLE2 . MISC::BR() . "<code>" . EXAMPLE22 . "</code>" . MISC::br() . EXAMPLE23 . MISC::br() . "<code>" . EXAMPLE24 . "</code>"); $this->pString .= MISC::p(EXAMPLE25); $this->pString .= MISC::hr(); $this->pString .= MISC::p(TEXT8); $this->pString .= MISC::p(TEXT9); $this->pString .= MISC::p(MISC::a("link", $this->utf8->decodeUtf8($this->messages->text("misc", "top")), "#top"), "small", "right"); return $this->pString; }