1 |
<?php |
2 |
require("Smarty.class.php"); |
3 |
require("conn.inc"); |
4 |
|
5 |
$smarty = new Smarty; |
6 |
|
7 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
8 |
|
9 |
$section="investor"; |
10 |
|
11 |
$smarty->assign("section",$section); |
12 |
|
13 |
include("section.inc"); |
14 |
|
15 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
16 |
|
17 |
include("common.inc"); |
18 |
|
19 |
if ($part == "analyst") { |
20 |
$sth = $dbh->prepare("select company,analyst,email from analysts order by company"); |
21 |
$sth->execute(); |
22 |
while ($row=$sth->fetchrow_hash()) { |
23 |
$analysts[]=$row; |
24 |
} |
25 |
|
26 |
$smarty->assign("analysts",$analysts); |
27 |
$main=$smarty->fetch("analysts.tpl"); |
28 |
} else { |
29 |
include("stocks.inc"); |
30 |
$smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); |
31 |
$main=$smarty->fetch("investor.tpl"); |
32 |
} |
33 |
$smarty->assign("MAIN",$main); |
34 |
|
35 |
$smarty->display("index.tpl"); |
36 |
?> |