/[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

Annotation of /fine_chemicals.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations)
Mon Oct 1 14:05:16 2001 UTC (18 years, 1 month ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -8 lines
banner support, new multi-page support (with back-end)

1 dpavlin 1.1 <?php
2    
3     if ($QUERY_STRING == "") {
4     Header("Location: $PHP_SELF?part=Main");
5     }
6    
7     require("Smarty.class.php");
8     require("conn.inc");
9    
10     $smarty = new Smarty;
11    
12     $smarty->assign( array ( Title=>"Pliva d.d." ) );
13    
14     $section="products";
15 dpavlin 1.9 include("section.inc");
16 dpavlin 1.1 $back_url="products.php";
17    
18 dpavlin 1.2 $sub_part=substr($part,0,strpos($part,"-"));
19     if ($sub_part == "CustomManuf") {
20     $multi_page=array(
21     "fine_chemicals.php?part=CustomManuf-Page1",
22     "fine_chemicals.php?part=CustomManuf-Page2",
23     "fine_chemicals.php?part=CustomManuf-Page3",
24     "fine_chemicals.php?part=CustomManuf-Page4",
25     "fine_chemicals.php?part=CustomManuf-Page5",
26     );
27     }
28 dpavlin 1.1
29     $main_file="./fc/";
30 dpavlin 1.5 if ($part=="ContactUs") {
31 dpavlin 1.6 $sth = $dbh->prepare("select name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is not true order by num");
32 dpavlin 1.5 $sth->execute();
33     while ($row=$sth->fetchrow_hash()) {
34     $person[]=$row;
35     }
36    
37     $sth = $dbh->prepare("select office,name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is true order by num");
38     $sth->execute();
39     while ($row=$sth->fetchrow_hash()) {
40     $office[]=$row;
41     }
42     $smarty->assign( array( person=>$person, office=>$office ) );
43     $main=$smarty->fetch("fc_ContactUs.tpl");
44    
45 dpavlin 1.7 $title.=" : Contact Us";
46    
47 dpavlin 1.5 } elseif (file_exists($main_file.$part.".htm")) {
48 dpavlin 1.1 $main_file.=$part.".htm";
49 dpavlin 1.5 $main=join('',file($main_file));
50 dpavlin 1.1 } else {
51     $main_file.="Main.htm";
52 dpavlin 1.3 $title="Products : Fine Chemicals";
53 dpavlin 1.5 $main=join('',file($main_file));
54 dpavlin 1.1 }
55    
56     include("common.inc");
57 dpavlin 1.2
58     unset($menu);
59    
60 dpavlin 1.8 $sth = $dbh->prepare("select item,url,file from menu where section='fine' and $visible_is_true order by num");
61 dpavlin 1.2 $sth->execute();
62     while ($row=$sth->fetchrow_hash()) {
63     $menu[]=$row;
64     }
65     $smarty->assign("menu",$menu);
66    
67 dpavlin 1.7 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic,
68     Section_title=>$title, back_url=>$back_url, MAIN=>$main,
69     contact_url => 'fine_chemicals.php?part=ContactUs'));
70 dpavlin 1.1
71     $smarty->display("index.tpl");
72     ?>

  ViewVC Help
Powered by ViewVC 1.1.26