--- new.php 2001/02/23 16:36:56 1.7 +++ new.php 2001/03/19 16:53:48 1.12 @@ -13,11 +13,21 @@ $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"; + $mpic="about.gif"; } else { $title="What's New"; $lpic="new"; $lext=".jpg"; @@ -27,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"; @@ -49,11 +58,14 @@ 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'"; $title.=" : Events"; + } elseif ($type == "c") { + $sql_where .= " and type='c'"; + $title.=" : Community"; } } @@ -99,6 +111,10 @@ $title.=" : Community : ".$data[0][title_lc]; } elseif ($data[0][type] == "r") { $title.=" : Result : ".$data[0][title_lc]; + } elseif ($data[0][type] == "i") { + $title.=" : Investors News : ".$data[0][title_lc]; + } elseif ($data[0][type] == "a") { + $title.=" : Annual Report : ".$data[0][title_lc]; } }