1 |
<?php |
2 |
include_once("inc/Smarty.class.php"); |
3 |
include_once("inc/Smarty.addons.php"); |
4 |
$tpl = new Smarty(); |
5 |
if (!$section) $section = "home"; |
6 |
if ($section == "home") { |
7 |
$section_name = "HOME"; |
8 |
} else if ($section == "d_s") { |
9 |
$section_name = "DISEASE & SYMPTOMES"; |
10 |
} else if ($section == "conditions") { |
11 |
$section_name = "CONDITIONS"; |
12 |
} else if ($section == "lifestyle") { |
13 |
$section_name = "LIFESTYLE"; |
14 |
} else if ($section == "library") { |
15 |
$section_name = "LIBRARY"; |
16 |
} |
17 |
$tpl->assign("section", $section); |
18 |
$tpl->assign("section_name", $section_name); |
19 |
$main = $tpl->fetch("$section.tpl"); |
20 |
$tpl->assign("MAIN", $main); |
21 |
$tpl->display("index.tpl"); |
22 |
?> |