--- history.php 2001/02/19 16:22:20 1.1.1.1 +++ history.php 2001/10/01 14:05:16 1.4 @@ -8,20 +8,17 @@ $section="about"; -$title="ABOUT US"; -$lpic="about"; $lext=".gif"; -$mpic="about.gif"; +include("section.inc"); $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); - -$sth = $dbh->prepare("select num,name,type,note,street,town,country,phone,fax,email,website from worldwide where type='Subsidiary' order by num"); +$sth = $dbh->prepare("select year,description from history order by num asc"); $sth->execute(); -$menu=""; while ($row=$sth->fetchrow_hash()) { - $data[]=$row; + $history[]=$row; } +$smarty->assign("history",$history); $main=$smarty->fetch("history.tpl"); include("common.inc");