/[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.2 by dpavlin, Sat Mar 3 08:33:20 2001 UTC revision 1.9 by dpavlin, Mon Oct 1 14:05:16 2001 UTC
# Line 10  $section="investor"; Line 10  $section="investor";
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";  
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    
17  include("common.inc");  include("common.inc");
18    
19  $dbh->dbh_do("set datestyle='german'");  if ($part == "analyst") {
20            $sth = $dbh->prepare("select company,analyst,email from analysts order by company");
21  $sql="select date,type,current,change,high,low,open from stocks order by date desc limit 2";          $sth->execute();
22            while ($row=$sth->fetchrow_hash()) {
23  $sth = $dbh->prepare("$sql");                  $analysts[]=$row;
24  $sth->execute();          }
25  while ($row=$sth->fetchrow_hash()) {  
26          $stock[]=$row;          $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  }  }
   
 $smarty->assign("stock",$stock);  
   
 $main=$smarty->fetch("investor.tpl");  
33  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
34    
35  $smarty->display("index.tpl");  $smarty->display("index.tpl");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26