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

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

revision 1.6 by dpavlin, Fri Sep 7 14:15:03 2001 UTC revision 1.9 by dpavlin, Mon Oct 1 14:05:16 2001 UTC
# Line 12  $smarty = new Smarty; Line 12  $smarty = new Smarty;
12  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
13    
14  $section="products";  $section="products";
15    include("section.inc");
 if ($menu_item) {  
         $title="Products : Fine Chemicals : $menu_item";  
 } else {  
         $title="Products : Fine Chemicals";  
 }  
 $lpic="products"; $lext=".jpg";  
 $mpic="products.gif";  
16  $back_url="products.php";  $back_url="products.php";
17    
 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  
   
   
18  $sub_part=substr($part,0,strpos($part,"-"));  $sub_part=substr($part,0,strpos($part,"-"));
19  if ($sub_part == "CustomManuf") {  if ($sub_part == "CustomManuf") {
20          $multi_page=array(          $multi_page=array(
# Line 52  if ($part=="ContactUs") { Line 42  if ($part=="ContactUs") {
42          $smarty->assign( array( person=>$person, office=>$office ) );          $smarty->assign( array( person=>$person, office=>$office ) );
43          $main=$smarty->fetch("fc_ContactUs.tpl");          $main=$smarty->fetch("fc_ContactUs.tpl");
44    
45            $title.=" : Contact Us";
46    
47  } elseif (file_exists($main_file.$part.".htm")) {  } elseif (file_exists($main_file.$part.".htm")) {
48          $main_file.=$part.".htm";          $main_file.=$part.".htm";
49          $main=join('',file($main_file));          $main=join('',file($main_file));
# Line 65  include("common.inc"); Line 57  include("common.inc");
57    
58  unset($menu);  unset($menu);
59    
60  $sth = $dbh->prepare("select item,url,file from menu where section='fine' and visible order by num");  $sth = $dbh->prepare("select item,url,file from menu where section='fine' and $visible_is_true order by num");
61  $sth->execute();  $sth->execute();
62  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
63          $menu[]=$row;          $menu[]=$row;
64  }  }
65  $smarty->assign("menu",$menu);  $smarty->assign("menu",$menu);
66    
67  $smarty->assign( array(back_url=>$back_url, MAIN=>$main,  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic,
68                  contact_url => 'fine_chemicals.php?part=ContactUs'));          Section_title=>$title, back_url=>$back_url, MAIN=>$main,
69            contact_url => 'fine_chemicals.php?part=ContactUs'));
70    
71  $smarty->display("index.tpl");  $smarty->display("index.tpl");
72  ?>  ?>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26