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