/[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.11 - (hide annotations)
Fri Oct 12 07:39:37 2001 UTC (17 years, 6 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +11 -16 lines
Company profile

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.11 include("section.inc");
16 dpavlin 1.1
17 dpavlin 1.5 if (! $type) $type="r";
18    
19 dpavlin 1.10 $sql="select id,town_date,title,body,pdf from news where type='$type' and $visible_is_true order by priority desc,date desc";
20 dpavlin 1.3 # print "$sql";
21 dpavlin 1.5 $sth = $dbh->prepare("$sql");
22     $sth->execute();
23     while ($row=$sth->fetchrow_hash()) {
24     $results[]=$row;
25     }
26 dpavlin 1.9
27 dpavlin 1.11 if ($type == "p") {
28     $main_file="presentations";
29     } elseif ($type == "o") {
30     $main_file="comp_profile";
31     } else {
32     $main_file="results";
33     }
34 dpavlin 1.9
35 dpavlin 1.5 $smarty->assign(array(
36     results=>$results,
37     type=>$type
38     ));
39 dpavlin 1.1
40     $main=$smarty->fetch("$main_file.tpl");
41    
42     include("common.inc");
43 dpavlin 1.11
44     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
45    
46 dpavlin 1.1 $smarty->assign( array(back_url=>"$section.php", MAIN=>$main));
47    
48     $smarty->display("index.tpl");
49     ?>

  ViewVC Help
Powered by ViewVC 1.1.26