--- new.php 2002/04/11 12:53:48 1.22 +++ new.php 2002/04/29 13:25:27 1.25 @@ -27,7 +27,7 @@ $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 + $sql_where.=" and (type='a' or type='c' or type='e' or type='f' 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, ) ); @@ -48,8 +48,10 @@ if (isset($type)) { if ($type == "n") { $sql_where .= " and (type='n' or type='i')"; - } elseif ($type == "e" || $type == "c") { - $sql_where .= " and type='".$type."'"; + } elseif ($type == "e") { + $sql_where .= " and (type='e' or type='f')"; + } elseif ($type == "c") { + $sql_where .= " and type='c'"; } $title.=" : ".$news_type[$type]; }