/[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.2 - (hide annotations)
Wed Feb 28 14:14:34 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.1: +3 -4 lines
novi history iz baze

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

  ViewVC Help
Powered by ViewVC 1.1.26