1 |
<?php |
<?php |
2 |
|
if ($redir) { |
3 |
|
if ($redir == "harrison") include_once("inc/harrison.php"); |
4 |
|
else { |
5 |
|
include_once("inc/banneri.php"); |
6 |
|
// Sad tu neki brojac klikova ili nesto... |
7 |
|
Header("Location: ".$banneri[$redir - 1]["url"]); |
8 |
|
} |
9 |
|
exit; |
10 |
|
} |
11 |
include_once("inc/global.php"); |
include_once("inc/global.php"); |
12 |
include_once("inc/util.php"); |
include_once("inc/util.php"); |
13 |
$picdir = str_replace("//", "/", dirname($PHP_SELF)); |
$picdir = str_replace("//", "/", dirname($PHP_SELF)); |
68 |
$section_name = "Lista lijekova"; |
$section_name = "Lista lijekova"; |
69 |
$inc = "pgKnjiznica-lijekovi"; |
$inc = "pgKnjiznica-lijekovi"; |
70 |
$fname = "lijekovi.tpl"; |
$fname = "lijekovi.tpl"; |
71 |
|
} else if ($section == "harrison") { |
72 |
|
$section_name = "Harrison's Online"; |
73 |
|
$inc = ""; |
74 |
|
$fname = "harrisons.tpl"; |
75 |
|
} else if ($section == "qa") { |
76 |
|
$section_name = "Pitanja i odgovori"; |
77 |
|
$inc = "pgQA"; |
78 |
|
} else if ($section == "zanimljivo") { |
79 |
|
$section_name = "Zanimljivosti"; |
80 |
|
$inc = "pgZanimljivosti"; |
81 |
} |
} |
82 |
} else { |
} else { |
83 |
if ($section == "home") { |
if ($section == "home") { |
124 |
$section_name = "Nova ustanova"; |
$section_name = "Nova ustanova"; |
125 |
$mnu = ""; |
$mnu = ""; |
126 |
$inc = "pgNovaUstanova"; |
$inc = "pgNovaUstanova"; |
127 |
|
} else if ($section == "qa") { |
128 |
|
$section_name = "Pitanja i odgovori"; |
129 |
|
$inc = "pgQA"; |
130 |
|
} else if ($section == "duk") { |
131 |
|
$section_name = "Doktor u kući"; |
132 |
|
$mnu = $inc = ""; |
133 |
} |
} |
134 |
} |
} |
135 |
if ($mnu && file_exists("inc/$mnu")) { |
if ($mnu && file_exists("inc/$mnu")) { |
158 |
array("sec" => "home", "alt" => "home", "w" => 56, "h" => 23), |
array("sec" => "home", "alt" => "home", "w" => 56, "h" => 23), |
159 |
array("sec" => "linkovi", "alt" => "linkovi", "w" => 60, "h" => 23), |
array("sec" => "linkovi", "alt" => "linkovi", "w" => 60, "h" => 23), |
160 |
array("sec" => "knjiznica", "alt" => "knjižnica", "w" => 74, "h" => 23), |
array("sec" => "knjiznica", "alt" => "knjižnica", "w" => 74, "h" => 23), |
161 |
array("sec" => "pretrazivanje", "alt" => "pretraživanje", "w" => 101, "h" => 23) |
array("sec" => "lijekovi", "alt" => "Lista HZZO lijekova", "w" => 134, "h" => 23) |
162 |
)); |
)); |
163 |
} else { |
} else { |
164 |
$tpl->assign("mainmenu", array( |
$tpl->assign("mainmenu", array( |
187 |
$tpl->assign("onload", $onload); |
$tpl->assign("onload", $onload); |
188 |
$tpl->assign("refresh", $refresh); |
$tpl->assign("refresh", $refresh); |
189 |
$tpl->assign("query", $query); |
$tpl->assign("query", $query); |
190 |
$banner = $banner_url = ""; |
include_once("inc/banneri.php"); |
191 |
if ($isMed && $isReg) { |
$idx = rand(0, count($banneri) - 1); |
192 |
$banneri = array( |
$tpl->assign("banner", $banneri[$idx]["slika"]); |
193 |
array("slika" => "gastal.gif", "alt" => "Gastal", "url" => "http://www.gastal.com/"), |
$tpl->assign("banner_alt", $banneri[$idx]["alt"]); |
194 |
array("slika" => "plivitc.gif", "alt" => "Plivit C", "url" => "http://www.plivitc.com/"), |
$tpl->assign("banner_url", "?redir=".($idx + 1)); |
195 |
array("slika" => "bisolex.gif", "alt" => "Bisolex", "url" => "http://www.bisolex.com/"), |
$tpl->assign("show", $show ? true : false); |
|
array("slika" => "andolc.gif", "alt" => "Andol C", "url" => "http://www.andolc.com/"), |
|
|
); |
|
|
} else { |
|
|
$banneri = array( |
|
|
array("slika" => "gastal.gif", "alt" => "Gastal", "url" => "http://www.gastal.com/"), |
|
|
array("slika" => "plivitc.gif", "alt" => "Plivit C", "url" => "http://www.plivitc.com/"), |
|
|
array("slika" => "bisolex.gif", "alt" => "Bisolex", "url" => "http://www.bisolex.com/"), |
|
|
array("slika" => "andolc.gif", "alt" => "Andol C", "url" => "http://www.andolc.com/") |
|
|
// array("slika" => "viponline.gif", "alt" => "VIPonline", "url" => "http://www.vip.hr/"), |
|
|
// array("slika" => "globalnet.gif", "alt" => "GlobalNET", "url" => "http://www.globalnet.hr/") |
|
|
); |
|
|
} |
|
|
$bnr = $banneri[rand(0, count($banneri) - 1)]; |
|
|
$tpl->assign("banner", $bnr["slika"]); |
|
|
$tpl->assign("banner_alt", $bnr["alt"]); |
|
|
$tpl->assign("banner_url", $bnr["url"]); |
|
196 |
$tpl->display($main_template); |
$tpl->display($main_template); |
197 |
include_once("inc/tracker.php"); |
include_once("inc/tracker.php"); |
198 |
?> |
?> |