, 'direction' =>, 'charset' =>) * @var array */ private $language = array('langcode' => 'en_US', 'direction' => 'ltr', 'charset' => 'utf-8'); /** * The CSS stylesheet * @var string */ private $stylesheet; // ################################################################### /** * Constructor * * @param string Page title */ function __construct($title) { $this->title = $title; } // ################################################################### /** * Sets the language array information * * @param array Language array */ public function setLanguageInformation($lang) { $this->language = $lang; } // ################################################################### /** * Sets the path to the CSS style sheet * * @param string Path */ public function setStylesheet($stylesheet) { $this->stylesheet = $stylesheet; } // ################################################################### /** * Returns the HTML for all printed children elements * * @return string Printed HTML */ protected function _paintChildren() { $builder = ''; foreach ($this->children AS $child) { $this->builder .= "\n" . $child->paint() . "\n"; } return $this->builder; } // ################################################################### /** * Tells the element to paint itself (and any children) */ public function paint() { echo "\n"; echo "language['langcode'] . "\" lang=\"" . $this->language['langcode'] . "\" dir=\"" . $this->language['direction'] . "\">\n"; echo "\n\t" . sprintf(_('%1$s - %2$s'), BSRegister::GetApplication(), $this->title) . ""; echo "\n\t"; echo "\n\tstylesheet . "\" />"; echo "\n\n\n"; if (BSRegister::GetType('PrinterNavigation') AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION'))) { echo BSRegister::GetType('PrinterNavigation')->generate_header_html(); } echo $this->_paintChildren(); if (BSRegister::GetType('PrinterNavigation') AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR !constant('ISSO_PRINTER_NO_NAVIGATION'))) { echo BSRegister::GetType('PrinterNavigation')->generate_footer_html(); } $copyright = "\n
\n

\n\t" . BSRegister::GetApplication() . ' ' . BSRegister::GetAppVersion() . ", ©2002 - " . gmdate('Y') . " Blue Static\n

"; if (!defined('ISSO_PRINTER_HIDE_SETUP')) { echo "\n$copyright"; echo "\n\n\n"; if (BSRegister::GetDebug()) { if (defined('SVN') AND preg_match('#^\$Id:?#', constant('SVN'))) { echo preg_replace('#\$' . 'Id: (.+?) ([0-9].+?) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.+?) (.+?) \$#', "\n
\n" . '
\1 — r\2
', constant('SVN')); } if (defined('ISSO_MT_START')) { echo "\n
Executed in " . round(BSFunctions::FetchMicrotimeDiff(ISSO_MT_START), 10) . ' seconds
'; } echo "\n
" . BSRegister::GetDebugList() . "
\n"; if (BSRegister::GetType('Db')) { $queries = BSRegister::GetType('Db')->getHistory(); $table = new BSPrinterRootElementTable(); $head = new BSPrinterTableElement(); $head->addChild(new BSPrinterLabelElement('Query Debug')); $head->setCssClass('thead'); $table->addHeadingChild($head); foreach ($queries AS $query) { $tr = new BSPrinterTableElement(); $tr->addChild(new BSPrinterLabelElement("\n\t\t\t" . $query['query'] . "\n\n\t\t\t
(" . $query['time'] . ")
\n\n\t\t")); $table->addChild($tr); } $table->setWidth('30%'); echo $table->paint(); } } } echo("\n\n\n"); } } /*=====================================================================* || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>