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

Diff of /index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by dpavlin, Tue Feb 20 11:34:34 2001 UTC revision 1.4 by dpavlin, Thu Apr 25 12:16:41 2002 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  require("Smarty.class.php");  require("Smarty.class.php");
4  require("conn.inc");  require("conn.inc");
5    
# Line 6  $smarty = new Smarty; Line 7  $smarty = new Smarty;
7    
8  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
9    
 $section=str_replace(".php","",basename($PHP_SELF));  
 $smarty->assign("section",$section);  
   
10  $main_file=$section;  $main_file=$section;
11    
12  if ($section == "index") {  include("section.inc");
         $title="HOME";  
         $lpic="obitelj"; $lext=".jpg";  
         $tmp = time() % 3;  
         $mpic="welcome_".($tmp+1).".gif";  
         $main_file="main";  
 } elseif ($section == "about") {  
         $title="ABOUT US";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
 } elseif ($section == "products") {  
         $title="PRODUCTS";  
         $lpic="products"; $lext=".jpg";  
         $mpic="products.gif";  
 } elseif ($section == "investor") {  
         $title="INVESTOR'S PAGE";  
         $lpic="investor"; $lext=".jpg";  
         $mpic="investors.gif";  
 } elseif ($section == "rnd") {  
         $title="R&amp;D";  
         $lpic="rnd"; $lext=".gif";  
         $tmp = time() % 2;  
         $mpic="rnd_u".($tmp+1).".gif";  
 } elseif ($section == "careers") {  
         $title="CAREERS";  
         $lpic="careers"; $lext=".jpg";  
         $mpic="careers.gif";  
 } elseif ($section == "contact") {  
         $title="CONTACT US";  
         $lpic="cont"; $lext=".jpg";  
         $mpic="contactus.gif";  
 } elseif ($section == "coreval") {  
         $title="CORE VALUES";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
         $section="about";  
 } elseif ($section == "vision") {  
         $title="VISION";  
         $lpic="about"; $lext=".gif";  
         $mpic="about.gif";  
         $section="about";  
 }  
13    
14  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
15    
# Line 61  include("common.inc"); Line 18  include("common.inc");
18  $main=$smarty->fetch("$main_file.tpl");  $main=$smarty->fetch("$main_file.tpl");
19  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
20    
 $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  
         $url[0]);  
   
   
21  $smarty->display("index.tpl");  $smarty->display("index.tpl");
22  ?>  ?>

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26