--- sections/novosti.inc 2001/06/29 12:57:06 1.1 +++ sections/novosti.inc 2001/09/12 11:02:10 1.4 @@ -21,6 +21,8 @@ } elseif ($type == "e") { $sql_where .= " and substr(type,1,1)='e'"; $title.=" : Dogotki"; + } elseif (strlen($type) == 3) { + $sql_where .= " and type='$type'"; } } @@ -88,10 +90,16 @@ warning=>$warning )); - $main=$smarty->fetch("novosti.tpl"); if (isset($id) && find_html_file("more",$data[0][more])) { $main=join('',file(find_html_file("more",$data[0][more]))); + } else { + if (! isset($p)) $p="novosti"; + $logo="p/${p}_".$data[0][type].".jpg"; + if (file_exists($logo)) { + $smarty->assign("logo",$logo); + } + $main=$smarty->fetch("$p.tpl"); } @@ -99,4 +107,5 @@ $smarty->assign( array(back_url=>$back_url) ); + ?>