/[corp_html]/human_health.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 /human_health.php

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

revision 1.5 by dpavlin, Tue Mar 6 07:38:45 2001 UTC revision 1.8 by dpavlin, Mon Oct 1 14:05:16 2001 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";  include("section.inc");
   
 $title="Products : Human Health";  
 $lpic="products"; $lext=".jpg";  
 $mpic="products.gif";  
10  $back_url="products.php";  $back_url="products.php";
11    
12  $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 51  if ($sql_where != "") { Line 47  if ($sql_where != "") {
47    
48  if (isset($search)) {  if (isset($search)) {
49    
50          $sql="select distinct brand,form,generic,description,type,atc,town,smpc,have_smpc from products $sql_where order by brand asc";          $sql="select distinct brand,form,generic,description,type,atc,town,smpc,have_smpc,tm from products $sql_where order by brand asc";
51          $sth = $dbh->prepare("$sql");          $sth = $dbh->prepare("$sql");
52          $sth->execute();          $sth->execute();
53          while ($row=$sth->fetchrow_hash()) {          while ($row=$sth->fetchrow_hash()) {
# Line 75  $smarty->assign( array(type=>"$type", Line 71  $smarty->assign( array(type=>"$type",
71  $main=$smarty->fetch("human_health.tpl");  $main=$smarty->fetch("human_health.tpl");
72    
73  include("common.inc");  include("common.inc");
74  $smarty->assign( array(back_url=>$back_url, MAIN=>$main));  $smarty->assign( array(back_url=>$back_url, MAIN=>$main, self=>$PHP_SELF));
75    
76  $smarty->display("index.tpl");  $smarty->display("index.tpl");
77  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26