"1"){ $line .= "<< "; $prevnr = $img-1; $line .= "< "; if ($img > "10"){ $line .= "... "; } } $start = $img-9; if ($start < 1){ $start = 1; } $stop = $img+9; if ($stop > $aantal){ $stop = $aantal; } for($i=$start;$i<=$stop;$i++){ if ($i == $img){ $line .= "$i \n"; } else { $line .= "$i \n"; } } if ($img < $aantal){ $nextnr = $img+1; if ($img < $aantal-9){ $line .= "... "; } $line .= "> "; $line .= ">>"; } return $line; } function indexline($aantalpag, $view, $map, $img){ for($nr=1;$nr<=$aantalpag;$nr++){ if ($nr == $img){ $pagregel .= "$nr "; } else { $pagregel .= "$nr "; } } return $pagregel; } function findpagenr($view, $lines, $maxoppag){ $nr = "1"; foreach($lines as $regel){ list($pic,$onderschrift) = explode("|", $regel); if ($view == $pic){ $plaats = $nr; } $nr++; } $img = ceil($plaats/$maxoppag); return $img; } function vulcel($colnr, $maxcoll){ return "