loadTemplatefile("page.html", true, true); $tpl->setVariable("TITLE", "Understanding Specific Gravity"); $tpl->setVariable("TIP", getPageTip()); $tpl->setVariable("ACTIVECALCS", ' class="activelink"'); $tpl->setVariable("MAINCONTENT", getMainContent()); $tpl->setVariable("LEFTNAVBOX", getLeftNavBox()); // $tpl->setVariable("RIGHTCONTENT", getRightContent()); // $tpl->setVariable("LEFTSPECIAL", getLeftSpecial()); $tpl->setVariable("COPYRIGHT", getCopyRightNotice("..")); $tpl->parse(); $tpl->show(); function getMainContent() { $content = ""; if ($fp = @fopen("Content/specificgravity.txt", "r")) { $content = fread($fp, 1000000); fclose($fp); } return $content; } function getLeftNavBox() { $content = << EOT; return $content; } function getLeftSpecial() { global $specials; $featuredProductsList = BuildFeaturedSet($specials, "Specials"); $content = buildContent($featuredProductsList, "Templates"); return $content; } function getRightContent() { global $features; $featuredProductsList = BuildFeaturedSet($features, "Featured"); $content = buildContent($featuredProductsList, "Templates"); return $content; } ?>