/[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.1 by dpavlin, Tue Feb 20 11:35:07 2001 UTC revision 1.2 by dpavlin, Sat Mar 3 08:33:20 2001 UTC
# Line 6  $smarty = new Smarty; Line 6  $smarty = new Smarty;
6    
7  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9  $section=str_replace(".php","",basename($PHP_SELF));  $section="investor";
 $smarty->assign("section",$section);  
10    
11  $main_file=$section;  $smarty->assign("section",$section);
12    
13  if ($section == "index") {  $title="INVESTOR'S PAGE";
14          $title="HOME";  $lpic="investor"; $lext=".jpg";
15          $lpic="obitelj"; $lext=".jpg";  $mpic="investors.gif";
         $tmp = time() % 3;  
         $mpic="welcome_".($tmp+1).".gif";  
         $main_file="main";  
 } elseif ($section == "about") {  
         $title="ABOUT US";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
 } elseif ($section == "products") {  
         $title="PRODUCTS";  
         $lpic="products"; $lext=".jpg";  
         $mpic="products.gif";  
 } elseif ($section == "investor") {  
         $title="INVESTOR'S PAGE";  
         $lpic="investor"; $lext=".jpg";  
         $mpic="investors.gif";  
 } elseif ($section == "rnd") {  
         $title="R&D";  
         $lpic="rnd"; $lext=".gif";  
         $tmp = time() % 2;  
         $mpic="rnd_u".($tmp+1).".gif";  
 } elseif ($section == "careers") {  
         $title="CAREERS";  
         $lpic="careers"; $lext=".jpg";  
         $mpic="careers.gif";  
 } elseif ($section == "contact") {  
         $title="CONTACT US";  
         $lpic="cont"; $lext=".jpg";  
         $mpic="contactus.gif";  
 } elseif ($section == "coreval") {  
         $title="CORE VALUES";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
         $section="about";  
 } elseif ($section == "vision") {  
         $title="VISION";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
         $section="about";  
 }  
16    
17  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
18    
19  include("common.inc");  include("common.inc");
20    
21  $main=$smarty->fetch("$main_file.tpl");  $dbh->dbh_do("set datestyle='german'");
 $smarty->assign("MAIN",$main);  
22    
23  $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  $sql="select date,type,current,change,high,low,open from stocks order by date desc limit 2";
         $url[0]);  
24    
25    $sth = $dbh->prepare("$sql");
26    $sth->execute();
27    while ($row=$sth->fetchrow_hash()) {
28            $stock[]=$row;
29    }
30    
31    $smarty->assign("stock",$stock);
32    
33    $main=$smarty->fetch("investor.tpl");
34    $smarty->assign("MAIN",$main);
35    
36  $smarty->display("index.tpl");  $smarty->display("index.tpl");
37  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26