/[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.7 by dpavlin, Sat Mar 17 16:27:06 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");
   
         $sql="select date(date),time(date),stocks.type as type,current,change,high,low,open,ordinal from stocks,stocks_order where stocks_order.type=stocks.type order by stocks.date desc,ordinal asc 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";  
   
34          $smarty->assign(array(stock=>$stock, date=>$date, time=>$time));          $smarty->assign(array(stock=>$stock, date=>$date, time=>$time));
35          $main=$smarty->fetch("investor.tpl");          $main=$smarty->fetch("investor.tpl");
36  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26