/[corp_html]/investor.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /investor.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dpavlin, Mon Mar 12 16:01:22 2001 UTC revision 1.8 by dpavlin, Sat Mar 17 16:40:55 2001 UTC
# Line 30  if ($part == "analyst") { Line 30  if ($part == "analyst") {
30          $smarty->assign("analysts",$analysts);          $smarty->assign("analysts",$analysts);
31          $main=$smarty->fetch("analysts.tpl");          $main=$smarty->fetch("analysts.tpl");
32  } else {  } else {
33          $dbh->dbh_do("set datestyle='german'");          include("stocks.inc");
34            $smarty->assign(array(stock=>$stock, date=>$date, time=>$time));
         $sql="select date,type,current,change,high,low,open from stocks order by date desc limit 2";  
         $sth = $dbh->prepare("$sql");  
         $sth->execute();  
         while ($row=$sth->fetchrow_hash()) {  
                 $stock[]=$row;  
         }  
   
         $smarty->assign("stock",$stock);  
35          $main=$smarty->fetch("investor.tpl");          $main=$smarty->fetch("investor.tpl");
36  }  }
37  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26