12 |
} |
} |
13 |
$fname = "$section.tpl"; |
$fname = "$section.tpl"; |
14 |
$section_name = ""; |
$section_name = ""; |
15 |
|
$inc = ""; |
16 |
if ($section == "home") { |
if ($section == "home") { |
17 |
$section_name = "Home"; |
$section_name = "Home"; |
18 |
include_once("inc/menuHome.php"); |
include_once("inc/menuHome.php"); |
19 |
$f = "inc/pgHome".($section_menu?"-$section_menu":"").".php"; |
$inc = "inc/pgHome".($section_menu?"-$section_menu":"").".php"; |
|
@include_once($f); |
|
20 |
} else if ($section == "ds") { |
} else if ($section == "ds") { |
21 |
$section_name = "Disease & Symptomes"; |
$section_name = "Disease & Symptomes"; |
22 |
include_once("inc/menuDS.php"); |
include_once("inc/menuDS.php"); |
23 |
$f = "inc/pgDS".($section_menu?"-$section_menu":"").".php"; |
$inc = "inc/pgDS".($section_menu?"-$section_menu":"").".php"; |
|
@include_once($f); |
|
24 |
} else if ($section == "conditions") { |
} else if ($section == "conditions") { |
25 |
$section_name = "Conditions"; |
$section_name = "Conditions"; |
26 |
include_once("inc/menuConditions.php"); |
include_once("inc/menuConditions.php"); |
27 |
$f = "inc/pgConditions".($section_menu?"-$section_menu":"").".php"; |
$inc = "inc/pgConditions".($section_menu?"-$section_menu":"").".php"; |
|
@include_once($f); |
|
28 |
} else if ($section == "lifestyle") { |
} else if ($section == "lifestyle") { |
29 |
$section_name = "Lifestyle"; |
$section_name = "Lifestyle"; |
30 |
include_once("inc/menuLifestyle.php"); |
include_once("inc/menuLifestyle.php"); |
31 |
$f = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php"; |
$inc = "inc/pgLifestyle".($section_menu?"-$section_menu":"").".php"; |
|
@include_once($f); |
|
32 |
} else if ($section == "library") { |
} else if ($section == "library") { |
33 |
$section_name = "Library"; |
$section_name = "Library"; |
34 |
include_once("inc/menuLibrary.php"); |
include_once("inc/menuLibrary.php"); |
35 |
$f = "inc/pgLibrary".($section_menu?"-$section_menu":"").".php"; |
$inc = "inc/pgLibrary".($section_menu?"-$section_menu":"").".php"; |
|
@include_once($f); |
|
36 |
} |
} |
37 |
|
if ($inc && file_exists($inc)) include_once($inc); |
38 |
|
$tpl->assign("isedit", $isEdit); |
39 |
|
$tpl->assign("ismed", $isMed); |
40 |
$tpl->assign("newspicdir", "$picdir/"); |
$tpl->assign("newspicdir", "$picdir/"); |
41 |
$tpl->assign("section", $section); |
$tpl->assign("section", $section); |
42 |
$tpl->assign("section_name", strtoupper($section_name)); |
$tpl->assign("section_name", strtoupper($section_name)); |