",
"");
$TOC_TEXT = new Block("".
"",
"");
/* Left and bottom outer margins of box. */
$BOX_OUTER_MARGINS = new Block("
".
blanker(5,1)."
",
"
".blanker(1,5)."
");
/* Horizontal side of the box. */
$BOX_HSIDE = "
".
blanker(1,4)."
";
/* Horizontal margin of the box (between the side and the content). */
$BOX_HMARGIN = "
".blanker(5,1)."
";
/* Vertical margin of the box (between the top/bottom and the
content). */
$BOX_VMARGIN = "
".$BOX_HSIDE."
".$BOX_HSIDE."
";
$BOX_HEAD_TEXT = new Block($BOX_OUTER_MARGINS->begin().
"
".
"
".
"
".
"
".
"".
"
".
// "".
"",
"".
"
".
"
".
$BOX_VMARGIN."
".$BOX_HSIDE.$BOX_HMARGIN);
$BOX_BODY_TEXT = new Block("
",
"
".
$BOX_HMARGIN.$BOX_HSIDE."
".
$BOX_VMARGIN.
"
".blanker(1,1)."
".$BOX_OUTER_MARGINS->end());
$LIST_BOX_TEXT = new Block("
".
"",
"
");
/* CLASSES */
/* Class that each section of the homepage will extend. */
class ToolSection extends Section {
/* Shows the table of contents (for the sidebar). */
function showTOC() {
global $sections, $THIS_URL;
global $TOC_TEXT, $TOC_LEVEL_INDENT;
reset($sections);
$numSections = count($sections);
for ($i = 0; $i < $numSections; $i++) {
list($currKey, $currSection) = each($sections);
if ($currSection->level == -1) break;
echo $TOC_TEXT->begin();
if ($currSection->level)
echo blanker($TOC_LEVEL_INDENT*$currSection->level,1);
else
echo "[ ";
if ($currSection->name != $this->name) {
echo "";
echo $currSection->name . "";
} else
echo "".$currSection->name . "";
echo $TOC_TEXT->end() . " ";
}
} // end ToolSection->showTOC()
/* Displays the sidebar (HTML). */
function showSidebar() {
?>
showTOC(); ?>
showSidebar()
/* Displays the section content (HTML). This is essentially an
abstract function for descendants of this class to implement, so
the function body is empty here. */
function showContent() { }
/* Displays the webpage (HTML). */
function display() {
?>
T o o l n e s s - name ?>
leftmargin="0" topmargin="0" rightmargin="15" bottommargin="0" marginheight="0" marginwidth="0">