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 |
$section="animal_health"; |
10 |
|
|
include("section.inc"); |
11 |
|
|
$title.=" : Animal Health"; |
12 |
dpavlin |
1.1 |
$back_url="animal_health.php"; |
13 |
|
|
|
14 |
|
|
if (isset($smpc)) { |
15 |
|
|
|
16 |
|
|
$sth = $dbh->prepare("select brand,form from vet_products where smpc=$smpc"); |
17 |
|
|
$sth->execute(); |
18 |
dpavlin |
1.4 |
if ($row=$sth->fetchrow_hash()) { |
19 |
|
|
$title.=" : $row[brand] $row[form]"; |
20 |
|
|
$title=str_replace("®","®",$title); |
21 |
|
|
} |
22 |
dpavlin |
1.1 |
} |
23 |
|
|
|
24 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
25 |
|
|
|
26 |
|
|
include("find_html_file.inc"); |
27 |
|
|
if (file_exists(find_html_file("vet",$smpc))) { |
28 |
|
|
$main=join('',file(find_html_file("vet",$smpc))); |
29 |
dpavlin |
1.4 |
# $main=str_replace("Â","",$main); // hm? |
30 |
dpavlin |
1.3 |
$main=str_replace("®","®",$main); |
31 |
dpavlin |
1.6 |
$main=str_replace("µ","µ",$main); |
32 |
|
|
$main=str_replace("â
","≅",$main); |
33 |
dpavlin |
1.1 |
} |
34 |
|
|
|
35 |
|
|
include("common.inc"); |
36 |
|
|
$smarty->assign( array(back_url=>$back_url, contact_from=>"animal_health", MAIN=>$main)); |
37 |
|
|
|
38 |
|
|
$smarty->display("index.tpl"); |
39 |
|
|
?> |