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

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

revision 1.1 by dpavlin, Mon Feb 19 16:22:20 2001 UTC revision 1.2 by dpavlin, Sat Mar 3 12:56:33 2001 UTC
# Line 13  $lpic="products"; $lext=".jpg"; Line 13  $lpic="products"; $lext=".jpg";
13  $mpic="products.gif";  $mpic="products.gif";
14  $back_url="products.php";  $back_url="products.php";
15    
 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  
   
16  if (isset($smpc)) {  if (isset($smpc)) {
17    
18            $sth = $dbh->prepare("select brand,form from products where smpc=$smpc");
19            $sth->execute();
20            if ($row=$sth->fetchrow_hash()) $title.=" : $row[brand] $row[form]";
21    
22          $sth = $dbh->prepare("select section,title,body          $sth = $dbh->prepare("select section,title,body
23                  from sections,paragraphs                  from sections,paragraphs
24                  where smpc=$smpc and sections.id=section_id and section<=5.2                  where smpc=$smpc and sections.id=section_id and section<=5.2
# Line 29  if (isset($smpc)) { Line 31  if (isset($smpc)) {
31          $smarty->assign("smpc",$data);          $smarty->assign("smpc",$data);
32  }  }
33    
34    $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
35    
36  $main=$smarty->fetch("smpc.tpl");  $main=$smarty->fetch("smpc.tpl");
37    
38  include("common.inc");  include("common.inc");

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

  ViewVC Help
Powered by ViewVC 1.1.26