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