/[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.3 by dpavlin, Wed Nov 7 10:49:03 2001 UTC revision 1.4 by dpavlin, Thu Jan 10 16:48:24 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            }
22  }  }
23    
24  $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 26  $smarty->assign( array ( lpic=>$lpic, le
26  include("find_html_file.inc");  include("find_html_file.inc");
27  if (file_exists(find_html_file("vet",$smpc))) {  if (file_exists(find_html_file("vet",$smpc))) {
28          $main=join('',file(find_html_file("vet",$smpc)));          $main=join('',file(find_html_file("vet",$smpc)));
29    #       $main=str_replace("","",$main);        // hm?
30          $main=str_replace("","®",$main);          $main=str_replace("","®",$main);
31  }  }
32    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26