1 |
<? |
2 |
|
3 |
if (!isset($section)) { |
4 |
$section=str_replace(".php","",basename($PHP_SELF)); |
5 |
} |
6 |
|
7 |
if ($section == "index") { |
8 |
$title="HOME $title"; |
9 |
$lpic="obitelj"; $lext=".jpg"; |
10 |
$tmp = time() % 3; |
11 |
$mpic="welcome_".($tmp+1).".gif"; |
12 |
$main_file="main"; |
13 |
} elseif ($section == "about") { |
14 |
$title="ABOUT US $title"; |
15 |
$lpic="about"; $lext=".gif"; |
16 |
$mpic="about.gif"; |
17 |
} elseif ($section == "products" || $section == "animal_health" || $section == "human_health") { |
18 |
$title="PRODUCTS $title"; |
19 |
$lpic="products"; $lext=".jpg"; |
20 |
$mpic="products.gif"; |
21 |
$section="products"; |
22 |
} elseif ($section == "investor") { |
23 |
$title="INVESTOR'S PAGE $title"; |
24 |
$lpic="investor"; $lext=".jpg"; |
25 |
$mpic="investors.gif"; |
26 |
} elseif ($section == "rnd") { |
27 |
$title="R&D $title"; |
28 |
$lpic="rnd"; $lext=".gif"; |
29 |
$tmp = time() % 2; |
30 |
$mpic="rnd_u".($tmp+1).".gif"; |
31 |
} elseif ($section == "careers") { |
32 |
$title="CAREERS $title"; |
33 |
$lpic="careers"; $lext=".jpg"; |
34 |
$mpic="careers.gif"; |
35 |
} elseif ($section == "contact") { |
36 |
$title="CONTACT US $title"; |
37 |
$lpic="cont"; $lext=".jpg"; |
38 |
$mpic="contactus.gif"; |
39 |
} elseif ($section == "coreval") { |
40 |
$title="CORE VALUES $title"; |
41 |
$lpic="about"; $lext=".gif"; |
42 |
$mpic="about.gif"; |
43 |
$section="about"; |
44 |
} elseif ($section == "vision") { |
45 |
$title="VISION $title"; |
46 |
$lpic="about"; $lext=".gif"; |
47 |
$mpic="about.gif"; |
48 |
$section="about"; |
49 |
} elseif ($section == "new") { |
50 |
$title="What's New"; |
51 |
$lpic="new"; $lext=".jpg"; |
52 |
$mpic="new.gif"; |
53 |
} |
54 |
|
55 |
if ($menu_item) $title.=" : $menu_item"; |
56 |
|
57 |
$smarty->assign("section",$section); |
58 |
|
59 |
?> |