loadTemplatefile("page.html", true, true); $tpl->setVariable("TITLE", "Measurement Converter"); $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->setVariable("OFFICE_INFO", getOfficeInfo("..")); $tpl->parse(); $tpl->show(); function getMainContent() { $content = ""; if ($fp = @fopen("Content/measure.html", "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; } ?>