/[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.2 by dpavlin, Mon Oct 1 14:05:16 2001 UTC revision 1.5 by dpavlin, Thu Jan 17 10:14:13 2002 UTC
# Line 15  if (isset($smpc)) { Line 15  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 23  $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.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26