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="about"; |
10 |
|
11 |
$title="ABOUT US"; |
12 |
$lpic="about"; $lext=".gif"; |
13 |
$mpic="about.gif"; |
14 |
|
15 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
16 |
|
17 |
$sth = $dbh->prepare("select year,description from history order by num asc"); |
18 |
$sth->execute(); |
19 |
while ($row=$sth->fetchrow_hash()) { |
20 |
$history[]=$row; |
21 |
} |
22 |
|
23 |
$smarty->assign("history",$history); |
24 |
$main=$smarty->fetch("history.tpl"); |
25 |
|
26 |
include("common.inc"); |
27 |
$smarty->assign( array(back_url=>"$section.php", MAIN=>$main)); |
28 |
|
29 |
$smarty->display("index.tpl"); |
30 |
?> |