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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Mon Mar 5 15:36:16 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Changes since 1.3: +1 -0 lines
nuke debug

1 dpavlin 1.1 <?php
2     require("Smarty.class.php");
3     require("conn.inc");
4    
5     $smarty = new Smarty;
6    
7     $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9     $section=str_replace(".php","",basename($PHP_SELF));
10     $smarty->assign("section",$section);
11    
12 dpavlin 1.2 $multi_page=array(
13     "products.php?part=Azithromycin1",
14     "products.php?part=Azithromycin2",
15     "products.php?part=Azithromycin3"
16     );
17    
18 dpavlin 1.1 $main_file=$section;
19    
20 dpavlin 1.2 $title="PRODUCTS";
21 dpavlin 1.4 if ($menu_item) $title.=" : $menu_item";
22 dpavlin 1.2 $lpic="products"; $lext=".jpg";
23     $mpic="products.gif";
24 dpavlin 1.1
25     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
26    
27 dpavlin 1.2
28     if (file_exists("html/$part.htm")) {
29     $main=join('',file("html/$part.htm"));
30     } else {
31     $main=$smarty->fetch("$main_file.tpl");
32     }
33    
34 dpavlin 1.1 include("common.inc");
35 dpavlin 1.3
36 dpavlin 1.1 $smarty->assign("MAIN",$main);
37    
38     $smarty->display("index.tpl");
39     ?>

  ViewVC Help
Powered by ViewVC 1.1.26