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

Diff of /vet_smpc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dpavlin, Thu Apr 5 12:26:33 2001 UTC revision 1.5 by dpavlin, Thu Jan 17 10:14:13 2002 UTC
# Line 6  $smarty = new Smarty; Line 6  $smarty = new Smarty;
6    
7  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9  $section="products";  $section="animal_health";
10    include("section.inc");
11  $title="Products : Animal Health";  $title.=" : Animal Health";
 $lpic="products"; $lext=".jpg";  
 $mpic="products.gif";  
12  $back_url="animal_health.php";  $back_url="animal_health.php";
13    
14  if (isset($smpc)) {  if (isset($smpc)) {
15    
16          $sth = $dbh->prepare("select brand,form from vet_products where smpc=$smpc");          $sth = $dbh->prepare("select brand,form from vet_products where smpc=$smpc");
17          $sth->execute();          $sth->execute();
18          if ($row=$sth->fetchrow_hash()) $title.=" : $row[brand] $row[form]";          if ($row=$sth->fetchrow_hash()) {
19                    $title.=" : $row[brand] $row[form]";
20                    $title=str_replace("®","®",$title);
21                    $main=str_replace("µ","µ",$main);
22                    $main=str_replace("≅","≅",$main);
23            }
24  }  }
25    
26  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
# Line 25  $smarty->assign( array ( lpic=>$lpic, le Line 28  $smarty->assign( array ( lpic=>$lpic, le
28  include("find_html_file.inc");  include("find_html_file.inc");
29  if (file_exists(find_html_file("vet",$smpc))) {  if (file_exists(find_html_file("vet",$smpc))) {
30          $main=join('',file(find_html_file("vet",$smpc)));          $main=join('',file(find_html_file("vet",$smpc)));
31    #       $main=str_replace("Â","",$main);        // hm?
32            $main=str_replace("®","®",$main);
33  }  }
34    
35  include("common.inc");  include("common.inc");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26