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

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

revision 1.1 by dpavlin, Tue Feb 20 11:36:15 2001 UTC revision 1.2 by dpavlin, Tue Feb 20 15:35:00 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    $multi_page=array(
13            "products.php?part=Azithromycin1",
14            "products.php?part=Azithromycin2",
15            "products.php?part=Azithromycin3"
16            );
17    
18  $main_file=$section;  $main_file=$section;
19    
20  if ($section == "index") {  $title="PRODUCTS";
21          $title="HOME";  $lpic="products"; $lext=".jpg";
22          $lpic="obitelj"; $lext=".jpg";  $mpic="products.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";  
 }  
23    
24  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
25    
 include("common.inc");  
   
 $main=$smarty->fetch("$main_file.tpl");  
 $smarty->assign("MAIN",$main);  
26    
27  $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  if (file_exists("html/$part.htm")) {
28          $url[0]);          $main=join('',file("html/$part.htm"));
29    } else {
30            $main=$smarty->fetch("$main_file.tpl");
31    }
32    
33    include("common.inc");
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