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

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

  ViewVC Help
Powered by ViewVC 1.1.26