/[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.4 by dpavlin, Mon Mar 5 15:36:16 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";  if ($menu_item) $title.=" : $menu_item";
22          $lpic="obitelj"; $lext=".jpg";  $lpic="products"; $lext=".jpg";
23          $tmp = time() % 3;  $mpic="products.gif";
         $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";  
 }  
24    
25  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
26    
 include("common.inc");  
27    
28  $main=$smarty->fetch("$main_file.tpl");  if (file_exists("html/$part.htm")) {
29  $smarty->assign("MAIN",$main);          $main=join('',file("html/$part.htm"));
30    } else {
31            $main=$smarty->fetch("$main_file.tpl");
32    }
33    
34  $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  include("common.inc");
         $url[0]);  
35    
36    $smarty->assign("MAIN",$main);
37    
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