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 |
|
|
$section="search"; |
10 |
|
|
|
11 |
|
|
$title=""; |
12 |
|
|
$lpic="search"; $lext=".jpg"; |
13 |
|
|
$mpic="search.gif"; |
14 |
|
|
|
15 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
16 |
|
|
|
17 |
|
|
if ($HTTP_REFERER) { |
18 |
|
|
$back_url=$HTTP_REFERER; |
19 |
|
|
} else { |
20 |
|
|
$back_url="index.php"; |
21 |
|
|
} |
22 |
|
|
|
23 |
|
|
$main=$smarty->fetch("search.tpl"); |
24 |
|
|
|
25 |
|
|
include("common.inc"); |
26 |
dpavlin |
1.2 |
$smarty->assign( array(back_url=>"$section.php", MAIN=>$main) ); |
27 |
|
|
|
28 |
|
|
global $q; |
29 |
dpavlin |
1.1 |
|
30 |
|
|
$smarty->display("index.tpl"); |
31 |
|
|
?> |