--- new.php 2001/02/28 09:48:31 1.8 +++ new.php 2001/03/05 12:34:12 1.10 @@ -13,11 +13,17 @@ $section="new"; } +$sql_where="where visible is true"; + 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"; @@ -31,7 +37,6 @@ $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); -$sql_where="where visible is true"; function find_html_file($dir,$file) { $file="./$dir/$file"; @@ -53,7 +58,7 @@ if (isset($type)) { if ($type == "n") { - $sql_where .= " and type='n'"; + $sql_where .= " and (type='n' or type='i')"; $title.=" : News"; } elseif ($type == "e") { $sql_where .= " and type='e'";