1 |
dpavlin |
1.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 |
dpavlin |
1.2 |
$section="investor"; |
10 |
|
|
|
11 |
dpavlin |
1.1 |
$smarty->assign("section",$section); |
12 |
|
|
|
13 |
dpavlin |
1.9 |
include("section.inc"); |
14 |
dpavlin |
1.3 |
|
15 |
dpavlin |
1.1 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
16 |
|
|
|
17 |
|
|
include("common.inc"); |
18 |
|
|
|
19 |
dpavlin |
1.3 |
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 |
dpavlin |
1.8 |
include("stocks.inc"); |
30 |
dpavlin |
1.4 |
$smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); |
31 |
dpavlin |
1.3 |
$main=$smarty->fetch("investor.tpl"); |
32 |
dpavlin |
1.2 |
} |
33 |
|
|
$smarty->assign("MAIN",$main); |
34 |
dpavlin |
1.1 |
|
35 |
|
|
$smarty->display("index.tpl"); |
36 |
|
|
?> |