/[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.6 by dpavlin, Fri Sep 7 14:15:03 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";
# Line 21  $back_url="products.php"; Line 25  $back_url="products.php";
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    
27    
28  $multi_page=array(  $sub_part=substr($part,0,strpos($part,"-"));
29          "fine_chemicals.php?part=Main",  if ($sub_part == "CustomManuf") {
30          "fine_chemicals.php?part=Profile",          $multi_page=array(
31          "fine_chemicals.php?part=Products",                  "fine_chemicals.php?part=CustomManuf-Page1",
32          "fine_chemicals.php?part=CustomManuf-Page1",                  "fine_chemicals.php?part=CustomManuf-Page2",
33          "fine_chemicals.php?part=CustomManuf-Page2",                  "fine_chemicals.php?part=CustomManuf-Page3",
34          "fine_chemicals.php?part=CustomManuf-Page3",                  "fine_chemicals.php?part=CustomManuf-Page4",
35          "fine_chemicals.php?part=CustomManuf-Page4",                  "fine_chemicals.php?part=CustomManuf-Page5",
36          "fine_chemicals.php?part=CustomManuf-Page5",          );
37          "fine_chemicals.php?part=ContactUs"  }
 );  
38    
39  $main_file="./fc/";  $main_file="./fc/";
40  if (file_exists($main_file.$part.".htm")) {  if ($part=="ContactUs") {
41            $sth = $dbh->prepare("select name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is not true order by num");
42            $sth->execute();
43            while ($row=$sth->fetchrow_hash()) {
44                    $person[]=$row;
45            }
46    
47            $sth = $dbh->prepare("select office,name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is true order by num");
48            $sth->execute();
49            while ($row=$sth->fetchrow_hash()) {
50                    $office[]=$row;
51            }
52            $smarty->assign( array( person=>$person, office=>$office ) );
53            $main=$smarty->fetch("fc_ContactUs.tpl");
54    
55    } elseif (file_exists($main_file.$part.".htm")) {
56          $main_file.=$part.".htm";          $main_file.=$part.".htm";
57            $main=join('',file($main_file));
58  } else {  } else {
59          $main_file.="Main.htm";          $main_file.="Main.htm";
60            $title="Products : Fine Chemicals";
61            $main=join('',file($main_file));
62  }  }
 $main=join('',file($main_file));  
63    
64  include("common.inc");  include("common.inc");
65  $smarty->assign( array(back_url=>$back_url, MAIN=>$main));  
66    unset($menu);
67    
68    $sth = $dbh->prepare("select item,url,file from menu where section='fine' and visible order by num");
69    $sth->execute();
70    while ($row=$sth->fetchrow_hash()) {
71            $menu[]=$row;
72    }
73    $smarty->assign("menu",$menu);
74    
75    $smarty->assign( array(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.6

  ViewVC Help
Powered by ViewVC 1.1.26