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 |
|
|
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 |
dpavlin |
1.1 |
|
24 |
|
|
$section=str_replace(".php","",basename($PHP_SELF)); |
25 |
|
|
$smarty->assign("section",$section); |
26 |
|
|
|
27 |
|
|
$title="R&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 |
|
|
?> |