/[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

Annotation of /results.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations)
Mon Mar 5 15:06:53 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Changes since 1.4: +13 -12 lines
annual report iz baze, isti template kao i results

1 dpavlin 1.1 <?php
2     require("Smarty.class.php");
3     require("conn.inc");
4    
5     $smarty = new Smarty;
6    
7     $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9     $section="investor";
10    
11     $title="INVESTOR'S PAGE";
12 dpavlin 1.4 if ($menu_item) $title.=" : $menu_item";
13 dpavlin 1.1 $lpic="investor"; $lext=".jpg";
14     $mpic="investors.gif";
15    
16 dpavlin 1.5 $main_file="results";
17 dpavlin 1.1
18     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
19    
20 dpavlin 1.5 if (! $type) $type="r";
21    
22     $sql="select id,title,pdf from news where type='$type' and visible order by priority desc,date desc";
23 dpavlin 1.3 # print "$sql";
24 dpavlin 1.5 $sth = $dbh->prepare("$sql");
25     $sth->execute();
26     while ($row=$sth->fetchrow_hash()) {
27     $results[]=$row;
28     }
29     $smarty->assign(array(
30     results=>$results,
31     type=>$type
32     ));
33 dpavlin 1.1
34     $main=$smarty->fetch("$main_file.tpl");
35    
36     include("common.inc");
37     $smarty->assign( array(back_url=>"$section.php", MAIN=>$main));
38    
39     $smarty->display("index.tpl");
40     ?>

  ViewVC Help
Powered by ViewVC 1.1.26