/[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.10 by dpavlin, Tue Sep 18 10:26:46 2001 UTC revision 1.11 by dpavlin, Fri Oct 12 07:39:37 2001 UTC
# Line 12  if (isset($from)) { Line 12  if (isset($from)) {
12  }  }
13    
14  require("conn.inc");  require("conn.inc");
15    include("section.inc");
 if ($section == "new") {  
         $title="What's New";  
         $lpic="new"; $lext=".jpg";  
         $mpic="new.gif";  
 } else {  
         $title="INVESTOR'S PAGE";  
         $lpic="investor"; $lext=".jpg";  
         $mpic="investors.gif";  
 }  
 if ($menu_item) $title.=" : $menu_item";  
   
 $main_file="results";  
   
 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  
16    
17  if (! $type) $type="r";  if (! $type) $type="r";
18    
# Line 38  while ($row=$sth->fetchrow_hash()) { Line 24  while ($row=$sth->fetchrow_hash()) {
24          $results[]=$row;          $results[]=$row;
25  }  }
26    
27  if ($type == "p") $main_file="presentations";  if ($type == "p") {
28            $main_file="presentations";
29    } elseif ($type == "o") {
30            $main_file="comp_profile";
31    } else {
32            $main_file="results";
33    }
34    
35  $smarty->assign(array(  $smarty->assign(array(
36          results=>$results,          results=>$results,
# Line 48  $smarty->assign(array( Line 40  $smarty->assign(array(
40  $main=$smarty->fetch("$main_file.tpl");  $main=$smarty->fetch("$main_file.tpl");
41    
42  include("common.inc");  include("common.inc");
43    
44    $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
45    
46  $smarty->assign( array(back_url=>"$section.php", MAIN=>$main));  $smarty->assign( array(back_url=>"$section.php", MAIN=>$main));
47    
48  $smarty->display("index.tpl");  $smarty->display("index.tpl");

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.26