/[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.1.1 by dpavlin, Mon Feb 19 16:22:20 2001 UTC revision 1.11 by dpavlin, Fri Oct 12 07:39:37 2001 UTC
# Line 1  Line 1 
1  <?php  <?php
2  require("Smarty.class.php");  require("Smarty.class.php");
 require("conn.inc");  
3    
4  $smarty = new Smarty;  $smarty = new Smarty;
5    
6  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
7    
8  $section="investor";  if (isset($from)) {
9            $section=$from;
10  $title="INVESTOR'S PAGE";  } else {
11  $lpic="investor"; $lext=".jpg";          $section="investor";
12  $mpic="investors.gif";  }
13    
14  $main_file="results";  require("conn.inc");
15    include("section.inc");
16    
17  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  if (! $type) $type="r";
18    
19    $sql="select id,town_date,title,body,pdf from news where type='$type' and $visible_is_true order by priority desc,date desc";
20    #       print "$sql";
21    $sth = $dbh->prepare("$sql");
22    $sth->execute();
23    while ($row=$sth->fetchrow_hash()) {
24            $results[]=$row;
25    }
26    
27    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(
36            results=>$results,
37            type=>$type
38            ));
39    
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.1.1.1  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.26