6 |
|
|
7 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
8 |
|
|
9 |
$section=str_replace(".php","",basename($PHP_SELF)); |
$section="investor"; |
10 |
|
|
11 |
$smarty->assign("section",$section); |
$smarty->assign("section",$section); |
12 |
|
|
13 |
$main_file=$section; |
$title="INVESTOR'S PAGE"; |
14 |
|
$lpic="investor"; $lext=".jpg"; |
15 |
|
$mpic="investors.gif"; |
16 |
|
|
17 |
if ($section == "index") { |
if ($menu_item) $title.=" : $menu_item"; |
|
$title="HOME"; |
|
|
$lpic="obitelj"; $lext=".jpg"; |
|
|
$tmp = time() % 3; |
|
|
$mpic="welcome_".($tmp+1).".gif"; |
|
|
$main_file="main"; |
|
|
} elseif ($section == "about") { |
|
|
$title="ABOUT US"; |
|
|
$lpic="about"; $lext=".gif"; |
|
|
$mpic="about.gif"; |
|
|
} elseif ($section == "products") { |
|
|
$title="PRODUCTS"; |
|
|
$lpic="products"; $lext=".jpg"; |
|
|
$mpic="products.gif"; |
|
|
} elseif ($section == "investor") { |
|
|
$title="INVESTOR'S PAGE"; |
|
|
$lpic="investor"; $lext=".jpg"; |
|
|
$mpic="investors.gif"; |
|
|
} elseif ($section == "rnd") { |
|
|
$title="R&D"; |
|
|
$lpic="rnd"; $lext=".gif"; |
|
|
$tmp = time() % 2; |
|
|
$mpic="rnd_u".($tmp+1).".gif"; |
|
|
} elseif ($section == "careers") { |
|
|
$title="CAREERS"; |
|
|
$lpic="careers"; $lext=".jpg"; |
|
|
$mpic="careers.gif"; |
|
|
} elseif ($section == "contact") { |
|
|
$title="CONTACT US"; |
|
|
$lpic="cont"; $lext=".jpg"; |
|
|
$mpic="contactus.gif"; |
|
|
} elseif ($section == "coreval") { |
|
|
$title="CORE VALUES"; |
|
|
$lpic="about"; $lext=".gif"; |
|
|
$mpic="about.gif"; |
|
|
$section="about"; |
|
|
} elseif ($section == "vision") { |
|
|
$title="VISION"; |
|
|
$lpic="about"; $lext=".gif"; |
|
|
$mpic="about.gif"; |
|
|
$section="about"; |
|
|
} |
|
18 |
|
|
19 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
20 |
|
|
21 |
include("common.inc"); |
include("common.inc"); |
22 |
|
|
23 |
$main=$smarty->fetch("$main_file.tpl"); |
if ($part == "analyst") { |
24 |
|
$sth = $dbh->prepare("select company,analyst,email from analysts order by company"); |
25 |
|
$sth->execute(); |
26 |
|
while ($row=$sth->fetchrow_hash()) { |
27 |
|
$analysts[]=$row; |
28 |
|
} |
29 |
|
|
30 |
|
$smarty->assign("analysts",$analysts); |
31 |
|
$main=$smarty->fetch("analysts.tpl"); |
32 |
|
} else { |
33 |
|
include("stocks.inc"); |
34 |
|
$smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); |
35 |
|
$main=$smarty->fetch("investor.tpl"); |
36 |
|
} |
37 |
$smarty->assign("MAIN",$main); |
$smarty->assign("MAIN",$main); |
38 |
|
|
|
$smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --". |
|
|
$url[0]); |
|
|
|
|
|
|
|
39 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
40 |
?> |
?> |