sorry, no article asociated with this ID"; exit; } for ($i = 0; $i < $numrow; $i++) { $IDcentrum=mysql_result($result, $i, 'IDcentrum'); $nadpis=mysql_result($result, $i, 'nadpis'); $detail=mysql_result($result, $i, 'detail'); $detail = fmt_text($detail, 1); $sec=mysql_result($result, $i, 'sec'); $datum=mysql_result($result, $i, 'datum'); $datum=strtotime($datum); $datum=date("j. ", $datum).$mesiace["sk"][date("m", $datum)-1].date(" Y", $datum); $a_datum=mysql_result($result, $i, 'a_datum'); } if(array_key_exists($sec, $dokusec_pole)) echo "

$dokusec_pole[$sec]

"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; $strSQL_foto = "SELECT * FROM foto WHERE sec = 'centrum' AND IDsec = $IDcentrum ORDER BY IDfoto ASC"; $result_foto=mysql_query($strSQL_foto); $numrow_foto=mysql_num_rows($result_foto); for ($j = 0; $j < $numrow_foto; $j++) { $IDfoto=mysql_result($result_foto, $j, 'IDfoto'); $alttext=mysql_result($result_foto, $j, 'popis'); $alttext = htmlspecialchars($alttext); pisFoto($IDfoto, $alttext); echo "

"; } echo "
 \n"; if($a_datum == 1) echo "$datum
"; if(strlen($nadpis) > 3) echo "$nadpis

"; echo $detail; echo "

"; if(true==isset($page)){ echo "[návrat]"; } else { echo "[návrat]"; } echo "
\n"; ?>