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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Sat Mar 3 12:56:33 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.2: +2 -2 lines
bolji title-ovi stranica

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 $title="ABOUT US";
13 dpavlin 1.3 if ($menu_item) $title.=" : $menu_item";
14 dpavlin 1.2 $lpic="about"; $lext=".gif";
15     $mpic="about.gif";
16    
17     $main_file="./html/AboutUs-";
18     if (file_exists($main_file.$part.".htm")) {
19     $main_file.=$part.".htm";
20     $main=join('',file($main_file));
21     } elseif (file_exists("./templates/AboutUs-".$part.".tpl")) {
22    
23     # $sth = $dbh->prepare("select iso,name from countries order by iso");
24     # $sth->execute();
25     # while ($row=$sth->fetchrow_hash()) {
26     # $countries[]=$row;
27     # }
28     # $smarty->assign("countries",$countries);
29    
30     $main=$smarty->fetch("AboutUs-".$part.".tpl");
31     } else {
32     $main_file.="Main.htm";
33     $main=join('',file($main_file));
34 dpavlin 1.3 $title.=" : Welcome";
35 dpavlin 1.2 }
36 dpavlin 1.1
37    
38     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
39    
40     include("common.inc");
41     $smarty->assign("MAIN",$main);
42    
43     $smarty->display("index.tpl");
44     ?>

  ViewVC Help
Powered by ViewVC 1.1.26