/[corp_html]/about.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 /about.php

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

revision 1.1.1.1 by dpavlin, Tue Feb 20 11:36:01 2001 UTC revision 1.4 by dpavlin, Mon Oct 1 14:05:16 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));  include("section.inc");
10  $smarty->assign("section",$section);  $smarty->assign("section",$section);
11    
12  $main_file=$section;  $main_file="./html/AboutUs-";
13    if (file_exists($main_file.$part.".htm")) {
14  if ($section == "index") {          $main_file.=$part.".htm";
15          $title="HOME";          $main=join('',file($main_file));
16          $lpic="obitelj"; $lext=".jpg";  } elseif (file_exists("./templates/AboutUs-".$part.".tpl")) {
17          $tmp = time() % 3;  
18          $mpic="welcome_".($tmp+1).".gif";  #       $sth = $dbh->prepare("select iso,name from countries order by iso");
19          $main_file="main";  #       $sth->execute();
20  } elseif ($section == "about") {  #       while ($row=$sth->fetchrow_hash()) {
21          $title="ABOUT US";  #               $countries[]=$row;
22          $lpic="about"; $lext=".gif";  #       }
23          $mpic="about.gif";  #       $smarty->assign("countries",$countries);
24  } elseif ($section == "products") {  
25          $title="PRODUCTS";          $main=$smarty->fetch("AboutUs-".$part.".tpl");
26          $lpic="products"; $lext=".jpg";  } else {
27          $mpic="products.gif";          $main_file.="Main.htm";
28  } elseif ($section == "investor") {          $main=join('',file($main_file));
29          $title="INVESTOR'S PAGE";          $title.=" : Welcome";
         $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";  
30  }  }
31    
32    
33  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
34    
35  include("common.inc");  include("common.inc");
   
 $main=$smarty->fetch("$main_file.tpl");  
36  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
37    
 $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  
         $url[0]);  
   
   
38  $smarty->display("index.tpl");  $smarty->display("index.tpl");
39  ?>  ?>

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26