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 |
dpavlin |
1.2 |
$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 |
dpavlin |
1.4 |
} elseif ($sub_part == "Profile") { |
22 |
|
|
$multi_page=array( |
23 |
|
|
"rnd.php?part=Profile-antiinfectives1", |
24 |
|
|
"rnd.php?part=Profile-antiinfectives2" |
25 |
|
|
); |
26 |
dpavlin |
1.7 |
} else { |
27 |
|
|
$multi_page=array( |
28 |
|
|
"rnd.php?part=Azithromycin1", |
29 |
|
|
"rnd.php?part=Azithromycin2", |
30 |
|
|
"rnd.php?part=Azithromycin3" |
31 |
|
|
); |
32 |
dpavlin |
1.2 |
} |
33 |
dpavlin |
1.1 |
|
34 |
|
|
$section=str_replace(".php","",basename($PHP_SELF)); |
35 |
|
|
$smarty->assign("section",$section); |
36 |
|
|
|
37 |
dpavlin |
1.9 |
include("section.inc"); |
38 |
|
|
|
39 |
dpavlin |
1.1 |
$main_file="./html/"; |
40 |
|
|
if (file_exists($main_file.$part.".htm")) { |
41 |
|
|
$main_file.=$part.".htm"; |
42 |
|
|
$main=join('',file($main_file)); |
43 |
|
|
} else { |
44 |
dpavlin |
1.5 |
$main=join('',file("./html/RnD-Main.htm")); |
45 |
dpavlin |
1.1 |
} |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
49 |
|
|
|
50 |
|
|
include("common.inc"); |
51 |
|
|
$smarty->assign("MAIN",$main); |
52 |
|
|
|
53 |
|
|
$smarty->display("index.tpl"); |
54 |
|
|
|
55 |
|
|
?> |