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

Contents of /results.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations)
Fri Oct 12 07:39:37 2001 UTC (22 years, 5 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +11 -16 lines
Company profile

1 <?php
2 require("Smarty.class.php");
3
4 $smarty = new Smarty;
5
6 $smarty->assign( array ( Title=>"Pliva d.d." ) );
7
8 if (isset($from)) {
9 $section=$from;
10 } else {
11 $section="investor";
12 }
13
14 require("conn.inc");
15 include("section.inc");
16
17 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");
41
42 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));
47
48 $smarty->display("index.tpl");
49 ?>

  ViewVC Help
Powered by ViewVC 1.1.26