10 |
|
|
11 |
$smarty->assign("section",$section); |
$smarty->assign("section",$section); |
12 |
|
|
13 |
$title="INVESTOR'S PAGE"; |
include("section.inc"); |
|
$lpic="investor"; $lext=".jpg"; |
|
|
$mpic="investors.gif"; |
|
|
|
|
|
if ($menu_item) $title.=" : $menu_item"; |
|
14 |
|
|
15 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
16 |
|
|
26 |
$smarty->assign("analysts",$analysts); |
$smarty->assign("analysts",$analysts); |
27 |
$main=$smarty->fetch("analysts.tpl"); |
$main=$smarty->fetch("analysts.tpl"); |
28 |
} else { |
} else { |
29 |
$dbh->dbh_do("set datestyle='german'"); |
include("stocks.inc"); |
|
|
|
|
$sql="select date(date),time(date),type,current,change,high,low,open from stocks order by stocks.date desc limit 2"; |
|
|
$sth = $dbh->prepare("$sql"); |
|
|
$sth->execute(); |
|
|
while ($row=$sth->fetchrow_hash()) { |
|
|
$stock[]=$row; |
|
|
$time=$row[time]; |
|
|
$date=$row[date]; |
|
|
} |
|
|
|
|
|
if ($time == "23:23:23") $time="CLOSE"; |
|
|
|
|
30 |
$smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); |
$smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); |
31 |
$main=$smarty->fetch("investor.tpl"); |
$main=$smarty->fetch("investor.tpl"); |
32 |
} |
} |