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

Contents of /about.php

Parent Directory Parent Directory | Revision Log Revision Log


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

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 $title="ABOUT US";
13 if ($menu_item) $title.=" : $menu_item";
14 $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 $title.=" : Welcome";
35 }
36
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