/[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.1 by dpavlin, Thu Feb 22 20:47:10 2001 UTC revision 1.8 by dpavlin, Tue Sep 18 10:26:46 2001 UTC
# Line 13  $smarty->assign( array ( Title=>"Pliva d Line 13  $smarty->assign( array ( Title=>"Pliva d
13    
14  $section="products";  $section="products";
15    
16  $title="Products : Fine Chemicals";  if ($menu_item) {
17            $title="Products : Fine Chemicals : $menu_item";
18    } else {
19            $title="Products : Fine Chemicals";
20    }
21  $lpic="products"; $lext=".jpg";  $lpic="products"; $lext=".jpg";
22  $mpic="products.gif";  $mpic="products.gif";
23  $back_url="products.php";  $back_url="products.php";
24    
25  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $sub_part=substr($part,0,strpos($part,"-"));
26    if ($sub_part == "CustomManuf") {
27            $multi_page=array(
28                    "fine_chemicals.php?part=CustomManuf-Page1",
29                    "fine_chemicals.php?part=CustomManuf-Page2",
30                    "fine_chemicals.php?part=CustomManuf-Page3",
31                    "fine_chemicals.php?part=CustomManuf-Page4",
32                    "fine_chemicals.php?part=CustomManuf-Page5",
33            );
34    }
35    
36    $main_file="./fc/";
37    if ($part=="ContactUs") {
38            $sth = $dbh->prepare("select name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is not true order by num");
39            $sth->execute();
40            while ($row=$sth->fetchrow_hash()) {
41                    $person[]=$row;
42            }
43    
44            $sth = $dbh->prepare("select office,name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is true order by num");
45            $sth->execute();
46            while ($row=$sth->fetchrow_hash()) {
47                    $office[]=$row;
48            }
49            $smarty->assign( array( person=>$person, office=>$office ) );
50            $main=$smarty->fetch("fc_ContactUs.tpl");
51    
52  $multi_page=array(          $title.=" : Contact Us";
         "fine_chemicals.php?part=Main",  
         "fine_chemicals.php?part=Profile",  
         "fine_chemicals.php?part=Products",  
         "fine_chemicals.php?part=CustomManuf-Page1",  
         "fine_chemicals.php?part=CustomManuf-Page2",  
         "fine_chemicals.php?part=CustomManuf-Page3",  
         "fine_chemicals.php?part=CustomManuf-Page4",  
         "fine_chemicals.php?part=CustomManuf-Page5",  
         "fine_chemicals.php?part=ContactUs"  
 );  
53    
54  $main_file="./fc/";  } elseif (file_exists($main_file.$part.".htm")) {
 if (file_exists($main_file.$part.".htm")) {  
55          $main_file.=$part.".htm";          $main_file.=$part.".htm";
56            $main=join('',file($main_file));
57  } else {  } else {
58          $main_file.="Main.htm";          $main_file.="Main.htm";
59            $title="Products : Fine Chemicals";
60            $main=join('',file($main_file));
61  }  }
 $main=join('',file($main_file));  
62    
63  include("common.inc");  include("common.inc");
64  $smarty->assign( array(back_url=>$back_url, MAIN=>$main));  
65    unset($menu);
66    
67    $sth = $dbh->prepare("select item,url,file from menu where section='fine' and $visible_is_true order by num");
68    $sth->execute();
69    while ($row=$sth->fetchrow_hash()) {
70            $menu[]=$row;
71    }
72    $smarty->assign("menu",$menu);
73    
74    $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic,
75            Section_title=>$title, back_url=>$back_url, MAIN=>$main,
76            contact_url => 'fine_chemicals.php?part=ContactUs'));
77    
78  $smarty->display("index.tpl");  $smarty->display("index.tpl");
79  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26