/[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.1.1.1 - (hide annotations) (vendor branch)
Tue Feb 20 11:36:01 2001 UTC (18 years, 2 months ago) by dpavlin
Branch: dbp
CVS Tags: alpha
Changes since 1.1: +0 -0 lines
alpha

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     $main_file=$section;
13    
14     if ($section == "index") {
15     $title="HOME";
16     $lpic="obitelj"; $lext=".jpg";
17     $tmp = time() % 3;
18     $mpic="welcome_".($tmp+1).".gif";
19     $main_file="main";
20     } elseif ($section == "about") {
21     $title="ABOUT US";
22     $lpic="about"; $lext=".gif";
23     $mpic="about.gif";
24     } elseif ($section == "products") {
25     $title="PRODUCTS";
26     $lpic="products"; $lext=".jpg";
27     $mpic="products.gif";
28     } elseif ($section == "investor") {
29     $title="INVESTOR'S PAGE";
30     $lpic="investor"; $lext=".jpg";
31     $mpic="investors.gif";
32     } elseif ($section == "rnd") {
33     $title="R&amp;D";
34     $lpic="rnd"; $lext=".gif";
35     $tmp = time() % 2;
36     $mpic="rnd_u".($tmp+1).".gif";
37     } elseif ($section == "careers") {
38     $title="CAREERS";
39     $lpic="careers"; $lext=".jpg";
40     $mpic="careers.gif";
41     } elseif ($section == "contact") {
42     $title="CONTACT US";
43     $lpic="cont"; $lext=".jpg";
44     $mpic="contactus.gif";
45     } elseif ($section == "coreval") {
46     $title="CORE VALUES";
47     $lpic="about"; $lext=".gif";
48     $mpic="about.gif";
49     $section="about";
50     } elseif ($section == "vision") {
51     $title="VISION";
52     $lpic="about"; $lext=".gif";
53     $mpic="about.gif";
54     $section="about";
55     }
56    
57     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
58    
59     include("common.inc");
60    
61     $main=$smarty->fetch("$main_file.tpl");
62     $smarty->assign("MAIN",$main);
63    
64     $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".
65     $url[0]);
66    
67    
68     $smarty->display("index.tpl");
69     ?>

  ViewVC Help
Powered by ViewVC 1.1.26