/[corp_html]/history.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 /history.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Mon Oct 1 14:05:16 2001 UTC (17 years, 8 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -3 lines
banner support, new multi-page support (with back-end)

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="about";
10    
11 dpavlin 1.4 include("section.inc");
12 dpavlin 1.1
13     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
14    
15 dpavlin 1.2 $sth = $dbh->prepare("select year,description from history order by num asc");
16 dpavlin 1.1 $sth->execute();
17     while ($row=$sth->fetchrow_hash()) {
18 dpavlin 1.2 $history[]=$row;
19 dpavlin 1.1 }
20    
21 dpavlin 1.2 $smarty->assign("history",$history);
22 dpavlin 1.1 $main=$smarty->fetch("history.tpl");
23    
24     include("common.inc");
25     $smarty->assign( array(back_url=>"$section.php", MAIN=>$main));
26    
27     $smarty->display("index.tpl");
28     ?>

  ViewVC Help
Powered by ViewVC 1.1.26