Videa"; echo ""; for($i=0;$i"; } echo "
!".$video[$i][1]."".$video[$i][2]."
"; echo "

Fotogalerie

"; echo ""; for($i=0;$i< sizeof($galerie) / POCET_SLOUPCU ;$i++ ) { echo ""; for($j= $i * POCET_SLOUPCU;$j < ($i+1) * POCET_SLOUPCU && $j < sizeof($galerie);$j++) echo ""; echo ""; for($j= $i * POCET_SLOUPCU;$j < ($i+1) * POCET_SLOUPCU && $j < sizeof($galerie);$j++) { list($w,$h) = getimagesize($galerie[$j][0]."/ikona.jpg"); echo ""; } echo ""; for($j= $i * POCET_SLOUPCU;$j < ($i+1) * POCET_SLOUPCU && $j < sizeof($galerie);$j++) echo ""; echo ""; } echo "

".$galerie[$j][1]."

".$galerie[$j][1]."
".$galerie[$j][2]."
"; } ?> "; echo "\n "; echo "\n "; echo "\n "; echo "\n "; echo "\n "; echo "\n "; echo "\n "; echo "\n "; echo "\n
<< předchozízpětdalší >>
"; echo "\n"; } function galery($titulek,$adr) { $rada = 5; $handle=opendir($adr); $obrazky = array(); $pocet = 0; while ($file = readdir($handle)) { if($file == '.' || $file == '..' || $file == 'ikona.jpg' || $file=='small') continue; $obrazky[$pocet++]= $file; } closedir($handle); sort($obrazky); echo "\n
\n"; if(isset($_GET["cislo"])) $cislo=$_GET["cislo"]; else $cislo=-1; if($cislo>=0 && $cislo< $pocet) { /* ----------- jedna fotka -------------- */ if(file_exists($adr."/".$obrazky[$cislo])) { list($w,$h) = getimagesize($adr."/".$obrazky[$cislo]); echo "

".$titulek."

"; tlacitka($adr,$titulek,$cislo); echo "\n
\n"; tlacitka($adr,$titulek,$cislo); } } else { /* ------------- vsechny fotky ---------- */ echo "

".$titulek."

"; echo "\n"; echo "\n"; for($i=0; $i<$pocet;$i++) { if(($i % $rada)==0) echo "\n"; if(file_exists($adr."/small/".$obrazky[$i])) { $w=0;$h=0; list($w,$h) = getimagesize($adr."/small/".$obrazky[$i]); echo "\n "; } else echo ""; if($i % $rada==$rada-1) echo "\n"; } echo "\n
neni ".$adr."/small/".$obrazky[$i]."
"; } echo"\n
"; } function video($titulek,$film) { echo "
"; echo "

$titulek

"; echo"
"; } ?>