/[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.3 by dpavlin, Sat Mar 3 12:56:33 2001 UTC revision 1.7 by dpavlin, Fri Sep 7 14:27:37 2001 UTC
# Line 22  $lpic="products"; $lext=".jpg"; Line 22  $lpic="products"; $lext=".jpg";
22  $mpic="products.gif";  $mpic="products.gif";
23  $back_url="products.php";  $back_url="products.php";
24    
 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  
   
   
25  $sub_part=substr($part,0,strpos($part,"-"));  $sub_part=substr($part,0,strpos($part,"-"));
26  if ($sub_part == "CustomManuf") {  if ($sub_part == "CustomManuf") {
27          $multi_page=array(          $multi_page=array(
# Line 37  if ($sub_part == "CustomManuf") { Line 34  if ($sub_part == "CustomManuf") {
34  }  }
35    
36  $main_file="./fc/";  $main_file="./fc/";
37  if (file_exists($main_file.$part.".htm")) {  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            $title.=" : Contact Us";
53    
54    } elseif (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";          $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    
65  unset($menu);  unset($menu);
66    
67  $sth = $dbh->prepare("select item,url,file from menu where section='fine' order by num");  $sth = $dbh->prepare("select item,url,file from menu where section='fine' and visible order by num");
68  $sth->execute();  $sth->execute();
69  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
70          $menu[]=$row;          $menu[]=$row;
71  }  }
72  $smarty->assign("menu",$menu);  $smarty->assign("menu",$menu);
73    
74  $smarty->assign( array(back_url=>$back_url, MAIN=>$main,  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic,
75                  contact_url => 'fine_chemicals.php?part=ContactUs'));          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.3  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26