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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Feb 21 11:47:52 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.1: +14 -4 lines
update content

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 $sub_part=substr($part,0,strpos($part,"-"));
10 print "$sub_part";
11
12 if ($sub_part == "MIXIS") {
13 $multi_page=array(
14 "rnd.php?part=MIXIS-HomePR",
15 "rnd.php?part=MIXIS-Sci-TechPR"
16 );
17 } elseif ($sub_part == "Technology") {
18 $multi_page=array(
19 "rnd.php?part=Technology-HighThroughput",
20 "rnd.php?part=Technology-Microarrays"
21 );
22 }
23
24 $section=str_replace(".php","",basename($PHP_SELF));
25 $smarty->assign("section",$section);
26
27 $title="R&amp;D";
28 $lpic="rnd"; $lext=".gif";
29 $tmp = time() % 2;
30 $mpic="rnd_u".($tmp+1).".gif";
31 $main_file="./html/";
32 if (file_exists($main_file.$part.".htm")) {
33 $main_file.=$part.".htm";
34 $main=join('',file($main_file));
35 } else {
36 $main=$smarty->fetch("rnd.tpl");
37 }
38
39
40 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
41
42 include("common.inc");
43 $smarty->assign("MAIN",$main);
44
45 $smarty->display("index.tpl");
46
47 ?>

  ViewVC Help
Powered by ViewVC 1.1.26