/** * Print the message */ function text($indexName, $extra = FALSE) { include_once "MISC.php"; include_once "../UTF8.php"; $utf8 = new UTF8(); $arrays = $this->loadArrays(); $string = $arrays[$indexName]; $string = $extra ? preg_replace("/###/", $utf8->smartUtf8_decode($extra), $string) : preg_replace("/###/", "", $string); return MISC::p($utf8->encodeUtf8($string), "success", "center"); }
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; }