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

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

  ViewVC Help
Powered by ViewVC 1.1.26