/[corp_html]/vet_smpc.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /vet_smpc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Wed Nov 7 10:49:03 2001 UTC (17 years, 5 months ago) by dpavlin
Branch: MAIN
Changes since 1.2: +1 -0 lines
(r) fix

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="animal_health";
10 include("section.inc");
11 $title.=" : Animal Health";
12 $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 if ($row=$sth->fetchrow_hash()) $title.=" : $row[brand] $row[form]";
19 }
20
21 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
22
23 include("find_html_file.inc");
24 if (file_exists(find_html_file("vet",$smpc))) {
25 $main=join('',file(find_html_file("vet",$smpc)));
26 $main=str_replace("®","&reg;",$main);
27 }
28
29 include("common.inc");
30 $smarty->assign( array(back_url=>$back_url, contact_from=>"animal_health", MAIN=>$main));
31
32 $smarty->display("index.tpl");
33 ?>

  ViewVC Help
Powered by ViewVC 1.1.26