--- new.php 2001/09/18 10:26:46 1.17 +++ new.php 2001/10/31 13:29:15 1.19 @@ -6,7 +6,6 @@ $smarty->assign( array ( Title=>"Pliva d.d." ) ); - if (isset($from)) { $section=$from; } else { @@ -15,24 +14,20 @@ $sql_where="where $visible_is_true"; +include("section.inc"); + if ($section == "investor") { - $title="INVESTOR'S PAGE"; - $lpic="investor"; $lext=".jpg"; - $mpic="investors.gif"; $back_url="investor.php"; if (! isset($type)) { $sql_where .= " and type='i'"; } $title.=" : Investors News"; -} elseif ($section == "about") { - $title="ABOUT US"; - $lpic="about"; $lext=".gif"; - $mpic="about.gif"; } else { $title="What's New"; $lpic="new"; $lext=".jpg"; $mpic="new.gif"; $back_url="index.php"; + $sql_where.=" and (type='a' or type='c' or type='e' or type='i' or type='n' or type='p' or type='r')"; // don't show company profile } $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );