/[corp_html]/results.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 /results.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.4 by dpavlin, Sat Mar 3 12:56:33 2001 UTC
# Line 9  $smarty->assign( array ( Title=>"Pliva d Line 9  $smarty->assign( array ( Title=>"Pliva d
9  $section="investor";  $section="investor";
10    
11  $title="INVESTOR'S PAGE";  $title="INVESTOR'S PAGE";
12    if ($menu_item) $title.=" : $menu_item";
13  $lpic="investor"; $lext=".jpg";  $lpic="investor"; $lext=".jpg";
14  $mpic="investors.gif";  $mpic="investors.gif";
15    
16  $main_file="results";  if ($part && file_exists("templates/$part.tpl")) {
17            $main_file=$part;
18    } else {
19            $main_file="results";
20    }
21    
22  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
23    
24            $sql="select id,title,pdf from news where type='r' and visible order by priority desc,date desc";
25    #       print "$sql";
26            $sth = $dbh->prepare("$sql");
27            $sth->execute();
28            while ($row=$sth->fetchrow_hash()) {
29                    $results[]=$row;
30            }
31            $smarty->assign("results",$results);
32    
33  $main=$smarty->fetch("$main_file.tpl");  $main=$smarty->fetch("$main_file.tpl");
34    

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

  ViewVC Help
Powered by ViewVC 1.1.26