/[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.10 by dpavlin, Mon Apr 8 11:12:34 2002 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";  
   
 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    
# Line 30  if ($part == "analyst") { Line 26  if ($part == "analyst") {
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");
30            $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);  
31          $main=$smarty->fetch("investor.tpl");          $main=$smarty->fetch("investor.tpl");
32  }  }
33  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
34    
35    include("inc/newsletter.php");
36    
37  $smarty->display("index.tpl");  $smarty->display("index.tpl");
38  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26