/[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.2 - (show annotations)
Wed Feb 28 14:12:56 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.1: +24 -49 lines
nova podjela

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 $lpic="about"; $lext=".gif";
14 $mpic="about.gif";
15
16 $title.=" : About Us";
17
18 $main_file="./html/AboutUs-";
19 if (file_exists($main_file.$part.".htm")) {
20 $main_file.=$part.".htm";
21 $main=join('',file($main_file));
22 } elseif (file_exists("./templates/AboutUs-".$part.".tpl")) {
23
24 # $sth = $dbh->prepare("select iso,name from countries order by iso");
25 # $sth->execute();
26 # while ($row=$sth->fetchrow_hash()) {
27 # $countries[]=$row;
28 # }
29 # $smarty->assign("countries",$countries);
30
31 $main=$smarty->fetch("AboutUs-".$part.".tpl");
32 } else {
33 $main_file.="Main.htm";
34 $main=join('',file($main_file));
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