/[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.8 - (hide annotations)
Mon Mar 19 16:47:46 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Changes since 1.7: +1 -1 lines
Annual reports show also a body

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

  ViewVC Help
Powered by ViewVC 1.1.26