klik een foto voor een vergroting!
$fotos[$j]){ $t = $fotos[$i]; $fotos[$i] = $fotos[$j]; $fotos[$j] = $t; } $x = 0; if(file_exists($text)){ // maak table als er tekst is echo ''; for ($i = 0; $i < $tel; $i++){ if($x==0)echo ''; echo ''; for($j = 0; $j<4; $j++) echo ''; for($j = 0; $j<$x; $j++)echo '
'; echo ''; echo ''; // als tekst/naam.txt bestaat, stop die in tkstn[], anders spatie $tkst = $text.substr_replace($fotos[$i],'txt',-3); if(file_exists($tkst)){ $fp = fopen($tkst,"r"); $tkstn[$x] = fgets($fp); fclose($fp); } else $tkstn[$x] =" "; if(++$x==4){ echo '
'.$tkstn[$j]; $x = 0; } } if($x>0){ // als laatste regel <4 echo '
'.$tkstn[$j]; } echo '
'; } else{ // maak geen table als er geen tekst is for ($i = 0; $i < $tel; $i++){ echo ''; echo ''; } } ?>