/** * */ class ux_template extends template { /***************************************** * * PAGE BUILDING FUNCTIONS. * Use this to build the HTML of your backend modules * *****************************************/ /** * Returns page start * This includes the proper header with charset, title, meta tag and beginning body-tag. * * @param string HTML Page title for the header * @return string Returns the whole header section of a HTML-document based on settings in internal variables (like styles, javascript code, charset, generator and docType) * @see endPage() */ function startPage($title) { // Get META tag containing the currently selected charset for backend output. The function sets $this->charSet. $charSet = $this->initCharset(); $generator = $this->generator(); // For debugging: If this outputs "QuirksMode"/"BackCompat" (IE) the browser runs in quirks-mode. Otherwise the value is "CSS1Compat" # $this->JScodeArray[]='alert(document.compatMode);'; // Send HTTP header for selected charset. Added by Robert Lemke 23.10.2003 header ('Content-Type:text/html;charset='.$this->charset); switch($this->docType) { case 'xhtml_strict': $headerStart= ' charset.'"?> '; break; case 'xhtml_trans': $headerStart= ' charset.'"?> '; break; case 'xhtml_frames': $headerStart= ' charset.'"?> '; break; default: $headerStart=''; break; } $tabJScode = ''; if (!$GLOBALS['BE_USER']->uc['disableTabInTextarea']) { // This loads the tabulator-in-textarea feature. It automatically modifies every textarea which is found. $tabJScode = ''; $tabJScode.= ''; } // Construct page header. $str = $headerStart.'
'.$charSet.' '.$generator.'