\n"; echo " \n"; } else { echo "
\n"; for ($i = 0; $i < $numrow; $i++) { $IDnews=mysql_result($result, $i, 'IDnews'); $datum=mysql_result($result, $i, 'datum'); $datum=strtotime($datum); $datum=date("j. ", $datum).$mesiace[$_SESSION["lang"]][date("m", $datum)-1].date(" Y", $datum); $a_datum=mysql_result($result, $i, 'a_datum'); $nadpis=mysql_result($result, $i, 'nadpis'); $news=mysql_result($result, $i, 'news'); $news = fmt_text($news, 1); } $strSQL_foto = "SELECT * FROM foto WHERE sec = '$sec' AND IDsec = $IDnews ORDER BY IDfoto ASC"; $result_foto=mysql_query($strSQL_foto); $numrow_foto=mysql_num_rows($result_foto); if($numrow_foto > 0) { ?>
3) echo "

$nadpis

"; if($a_datum == 1) echo "

$datum

"; echo "$news"; ?>
"; print_news($IDnews, $_SESSION["lang"]); echo "   |   "; mail_news($IDnews, $_SESSION["lang"]); echo "   |   "; mail_back($_SESSION["lang"]); echo "

"; echo "
"; } else { if(strlen($nadpis) > 3) echo "

$nadpis

"; if($a_datum == 1) echo "

$datum

"; echo "

$news

"; echo "
"; echo "

"; print_news($IDnews, $_SESSION["lang"]); echo "   |   "; mail_news($IDnews, $_SESSION["lang"]); echo "   |   "; mail_back($_SESSION["lang"]); echo "

"; echo "
"; } } ?>