/[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

Annotation of /vet_smpc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Apr 5 12:26:33 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
smpc for veterina

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="products";
10    
11     $title="Products : Animal Health";
12     $lpic="products"; $lext=".jpg";
13     $mpic="products.gif";
14     $back_url="animal_health.php";
15    
16     if (isset($smpc)) {
17    
18     $sth = $dbh->prepare("select brand,form from vet_products where smpc=$smpc");
19     $sth->execute();
20     if ($row=$sth->fetchrow_hash()) $title.=" : $row[brand] $row[form]";
21     }
22    
23     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
24    
25     include("find_html_file.inc");
26     if (file_exists(find_html_file("vet",$smpc))) {
27     $main=join('',file(find_html_file("vet",$smpc)));
28     }
29    
30     include("common.inc");
31     $smarty->assign( array(back_url=>$back_url, contact_from=>"animal_health", MAIN=>$main));
32    
33     $smarty->display("index.tpl");
34     ?>

  ViewVC Help
Powered by ViewVC 1.1.26